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()
PaginationDataBinder
removeCollectionChangeListener
in interface PaginationDataBinder
public int getFirstResult()
getFirstResult
in interface PaginationDataBinder
public int getMaxResults()
getMaxResults
in interface PaginationDataBinder
public void setFirstResult(int startPosition)
PaginationDataBinder
setFirstResult
in interface PaginationDataBinder
public void setMaxResults(int maxResults)
PaginationDataBinder
setMaxResults
in interface PaginationDataBinder
public int getCount()
getCount
in interface PaginationDataBinder
public io.jmix.core.metamodel.model.MetaClass getEntityMetaClass()
getEntityMetaClass
in interface PaginationDataBinder
public int size()
size
in interface PaginationDataBinder
public void refresh()
PaginationDataBinder
refresh
in interface PaginationDataBinder
public void setCollectionChangeListener(java.util.function.Consumer<CollectionChangeType> listener)
PaginationDataBinder
setCollectionChangeListener
in interface PaginationDataBinder