protected class WebRowsCount.LoaderAdapter extends java.lang.Object implements WebRowsCount.Adapter
Modifier and Type | Field and Description |
---|---|
protected io.jmix.ui.model.CollectionContainer |
container |
protected java.util.function.Consumer<io.jmix.ui.model.CollectionContainer.CollectionChangeEvent> |
containerCollectionChangeListener |
protected io.jmix.ui.model.BaseCollectionLoader |
loader |
protected io.jmix.ui.model.impl.WeakCollectionChangeListener |
weakContainerCollectionChangeListener |
Constructor and Description |
---|
LoaderAdapter(io.jmix.ui.model.CollectionContainer container,
io.jmix.ui.model.BaseCollectionLoader loader) |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
int |
getFirstResult() |
int |
getMaxResults() |
void |
refresh() |
void |
setFirstResult(int startPosition) |
void |
setMaxResults(int maxResults) |
int |
size() |
void |
unbind() |
protected io.jmix.ui.model.CollectionContainer container
protected java.util.function.Consumer<io.jmix.ui.model.CollectionContainer.CollectionChangeEvent> containerCollectionChangeListener
protected io.jmix.ui.model.impl.WeakCollectionChangeListener weakContainerCollectionChangeListener
@Nullable protected io.jmix.ui.model.BaseCollectionLoader loader
public LoaderAdapter(io.jmix.ui.model.CollectionContainer container, @Nullable io.jmix.ui.model.BaseCollectionLoader loader)
public void unbind()
unbind
in interface WebRowsCount.Adapter
public int getFirstResult()
getFirstResult
in interface WebRowsCount.Adapter
public int getMaxResults()
getMaxResults
in interface WebRowsCount.Adapter
public void setFirstResult(int startPosition)
setFirstResult
in interface WebRowsCount.Adapter
public void setMaxResults(int maxResults)
setMaxResults
in interface WebRowsCount.Adapter
public int getCount()
getCount
in interface WebRowsCount.Adapter
public int size()
size
in interface WebRowsCount.Adapter
public void refresh()
refresh
in interface WebRowsCount.Adapter