Example #1
0
class StoreTable(StoreTableMeta):

    def __init__(self):
        super(StoreTable, self).__init__()
        self._storeTableDataProvider = None
        return

    def _populate(self):
        super(StoreTable, self)._populate()
        self._storeTableDataProvider = StoreTableDataProvider()
        self._storeTableDataProvider.setFlashObject(self.as_getTableDataProviderS())

    def _dispose(self):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.clearList()
            self._storeTableDataProvider.destroy()
            self._storeTableDataProvider = None
        super(StoreTable, self)._dispose()
        return

    def setDataProviderValues(self, dpList):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.buildList(dpList)
        return

    def refreshStoreTableDataProvider(self):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.refresh()
        return

    def clearStoreTableDataProvider(self):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.clearList()
        return

    def setItemWrapper(self, itemWrapper):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.setItemWrapper(itemWrapper)
        return
Example #2
0
class StoreTable(StoreTableMeta):

    def __init__(self):
        super(StoreTable, self).__init__()
        self._storeTableDataProvider = None
        return

    def _populate(self):
        super(StoreTable, self)._populate()
        self._storeTableDataProvider = StoreTableDataProvider()
        self._storeTableDataProvider.setFlashObject(self.as_getTableDataProviderS())

    def _dispose(self):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.clearList()
            self._storeTableDataProvider._dispose()
            self._storeTableDataProvider = None
        super(StoreTable, self)._dispose()
        return

    def setDataProviderValues(self, dpList):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.buildList(dpList)
        return

    def refreshStoreTableDataProvider(self):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.refresh()
        return

    def clearStoreTableDataProvider(self):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.clearList()
        return

    def setItemWrapper(self, itemWrapper):
        if self._storeTableDataProvider is not None:
            self._storeTableDataProvider.setItemWrapper(itemWrapper)
        return
Example #3
0
 def _populate(self):
     super(StoreTable, self)._populate()
     self._storeTableDataProvider = StoreTableDataProvider()
     self._storeTableDataProvider.setFlashObject(self.as_getTableDataProviderS())
Example #4
0
 def _populate(self):
     super(StoreTable, self)._populate()
     self._storeTableDataProvider = StoreTableDataProvider()
     self._storeTableDataProvider.setFlashObject(self.as_getTableDataProviderS())