Class AbstractPaginationDataBinder
java.lang.Object
io.jmix.ui.component.pagination.data.AbstractPaginationDataBinder
- All Implemented Interfaces:
PaginationDataBinder
- Direct Known Subclasses:
PaginationContainerBinder,PaginationDataUnitBinder,PaginationLoaderBinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionContainerprotected DataManagerprotected BaseCollectionLoaderprotected Consumer<CollectionChangeType>protected WeakCollectionChangeListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintgetCount()intintvoidrefresh()Reloads instances.voidRemoves collection change listener.voidSets collection change listener.voidsetDataManager(DataManager dataManager) voidsetFirstResult(int startPosition) Sets the position of the first instance to load.voidsetMaxResults(int maxResults) Sets maximum number of instances to load.intsize()
-
Field Details
-
dataManager
-
container
-
refreshListener
-
containerCollectionChangeListener
-
weakContainerCollectionChangeListener
-
loader
-
-
Constructor Details
-
AbstractPaginationDataBinder
public AbstractPaginationDataBinder()
-
-
Method Details
-
attachCollectionChangeListener
protected void attachCollectionChangeListener() -
setDataManager
-
removeCollectionChangeListener
public void removeCollectionChangeListener()Description copied from interface:PaginationDataBinderRemoves collection change listener.- Specified by:
removeCollectionChangeListenerin interfacePaginationDataBinder
-
getFirstResult
public int getFirstResult()- Specified by:
getFirstResultin interfacePaginationDataBinder- Returns:
- first position to load
-
getMaxResults
public int getMaxResults()- Specified by:
getMaxResultsin interfacePaginationDataBinder- Returns:
- maximum number of instances to load
-
setFirstResult
public void setFirstResult(int startPosition) Description copied from interface:PaginationDataBinderSets the position of the first instance to load.- Specified by:
setFirstResultin interfacePaginationDataBinder
-
setMaxResults
public void setMaxResults(int maxResults) Description copied from interface:PaginationDataBinderSets maximum number of instances to load.- Specified by:
setMaxResultsin interfacePaginationDataBinder
-
getCount
public int getCount()- Specified by:
getCountin interfacePaginationDataBinder- Returns:
- number of instances in the data store
-
getEntityMetaClass
- Specified by:
getEntityMetaClassin interfacePaginationDataBinder- Returns:
- meta class of entity
-
size
public int size()- Specified by:
sizein interfacePaginationDataBinder- Returns:
- number of instances are currently loaded
-
refresh
public void refresh()Description copied from interface:PaginationDataBinderReloads instances.- Specified by:
refreshin interfacePaginationDataBinder
-
setCollectionChangeListener
Description copied from interface:PaginationDataBinderSets collection change listener.- Specified by:
setCollectionChangeListenerin interfacePaginationDataBinder
-