public abstract class VirtualContainerBase<C extends Control,I extends IndexedCell>
extends <any>
Modifier and Type | Field and Description |
---|---|
private VirtualFlow<I> |
flow
The virtualized container which handles the layout and scrolling of
all the cells.
|
private boolean |
itemCountDirty
*
Private fields *
*
|
Constructor and Description |
---|
VirtualContainerBase(C control) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
checkState() |
protected VirtualFlow<I> |
createVirtualFlow()
Create the virtualized container that handles the layout and scrolling of
all the cells.
|
protected abstract int |
getItemCount()
Returns the total number of items in this container, including those
that are currently hidden because they are out of view.
|
(package private) double |
getMaxCellWidth(int rowsToCount)
*
Private methods *
*
|
protected VirtualFlow<I> |
getVirtualFlow()
Get the virtualized container.
|
(package private) double |
getVirtualFlowPreferredHeight(int rows) |
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
protected void |
markItemCountDirty()
Call this method to indicate that the item count should be updated on the next pulse.
|
(package private) void |
requestRebuildCells() |
protected abstract void |
updateItemCount()
This method is called when it is possible that the item count has changed (i.e.
|
private boolean itemCountDirty
private final VirtualFlow<I extends IndexedCell> flow
public VirtualContainerBase(C control)
control
- the controlprotected abstract int getItemCount()
protected abstract void updateItemCount()
getItemCount()
method.protected VirtualFlow<I> createVirtualFlow()
VirtualFlow
implementation.
If not overridden, this method intantiates a default VirtualFlow instance.protected final VirtualFlow<I> getVirtualFlow()
protected final void markItemCountDirty()
protected void layoutChildren(double x, double y, double w, double h)
double getMaxCellWidth(int rowsToCount)
double getVirtualFlowPreferredHeight(int rows)
void checkState()
void requestRebuildCells()