public abstract class AbstractPaginationDataBinder extends java.lang.Object implements PaginationDataBinder
| Modifier and Type | Field and Description |
|---|---|
protected CollectionContainer |
container |
protected java.util.function.Consumer<CollectionContainer.CollectionChangeEvent> |
containerCollectionChangeListener |
protected io.jmix.core.DataManager |
dataManager |
protected BaseCollectionLoader |
loader |
protected java.util.function.Consumer<CollectionChangeType> |
refreshListener |
protected WeakCollectionChangeListener |
weakContainerCollectionChangeListener |
| Constructor and Description |
|---|
AbstractPaginationDataBinder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachCollectionChangeListener() |
int |
getCount() |
io.jmix.core.metamodel.model.MetaClass |
getEntityMetaClass() |
int |
getFirstResult() |
int |
getMaxResults() |
void |
refresh()
Reloads instances.
|
void |
removeCollectionChangeListener()
Removes collection change listener.
|
void |
setCollectionChangeListener(java.util.function.Consumer<CollectionChangeType> listener)
Sets collection change listener.
|
void |
setDataManager(io.jmix.core.DataManager dataManager) |
void |
setFirstResult(int startPosition)
Sets the position of the first instance to load.
|
void |
setMaxResults(int maxResults)
Sets maximum number of instances to load.
|
int |
size() |
protected io.jmix.core.DataManager dataManager
protected CollectionContainer container
protected java.util.function.Consumer<CollectionChangeType> refreshListener
protected java.util.function.Consumer<CollectionContainer.CollectionChangeEvent> containerCollectionChangeListener
protected WeakCollectionChangeListener weakContainerCollectionChangeListener
protected BaseCollectionLoader loader
protected void attachCollectionChangeListener()
@Autowired public void setDataManager(io.jmix.core.DataManager dataManager)
public void removeCollectionChangeListener()
PaginationDataBinderremoveCollectionChangeListener in interface PaginationDataBinderpublic int getFirstResult()
getFirstResult in interface PaginationDataBinderpublic int getMaxResults()
getMaxResults in interface PaginationDataBinderpublic void setFirstResult(int startPosition)
PaginationDataBindersetFirstResult in interface PaginationDataBinderpublic void setMaxResults(int maxResults)
PaginationDataBindersetMaxResults in interface PaginationDataBinderpublic int getCount()
getCount in interface PaginationDataBinderpublic io.jmix.core.metamodel.model.MetaClass getEntityMetaClass()
getEntityMetaClass in interface PaginationDataBinderpublic int size()
size in interface PaginationDataBinderpublic void refresh()
PaginationDataBinderrefresh in interface PaginationDataBinderpublic void setCollectionChangeListener(java.util.function.Consumer<CollectionChangeType> listener)
PaginationDataBindersetCollectionChangeListener in interface PaginationDataBinder