public class ListViewSkin<T> extends VirtualContainerBase<<any>,<any>>
ListView
control.ListView
Modifier and Type | Field and Description |
---|---|
private <any> |
behavior |
private static java.lang.String |
EMPTY_LIST_TEXT
*
Internal Fields *
*
|
private VirtualFlow<<any>> |
flow |
private static boolean |
IS_PANNABLE
*
Static Fields *
*
|
private int |
itemCount |
private InvalidationListener |
itemsChangeListener |
private <any> |
listViewItems |
private <any> |
listViewItemsListener |
private boolean |
needCellsRebuilt |
private boolean |
needCellsReconfigured |
private Node |
placeholderNode |
private StackPane |
placeholderRegion
Region placed over the top of the flow (and possibly the header row) if
there is no data.
|
private <any> |
propertiesMapListener
*
Listeners *
*
|
private <any> |
weakListViewItemsListener |
Constructor and Description |
---|
ListViewSkin(<any> control)
Creates a new ListViewSkin instance, installing the necessary child
nodes into the Control
children list, as
well as the necessary input mappings for handling key, mouse, etc events. |
Modifier and Type | Method and Description |
---|---|
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
private <any> |
createCell() |
private static <T> <any> |
createDefaultCellImpl() |
void |
dispose() |
protected void |
executeAccessibleAction(AccessibleAction action,
java.lang.Object... parameters) |
protected int |
getItemCount()
Returns the total number of items in this container, including those
that are currently hidden because they are out of view.
|
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
private void |
onFocusNextCell() |
private void |
onFocusPreviousCell() |
private void |
onMoveToFirstCell() |
private void |
onMoveToLastCell() |
private int |
onScrollPageDown(boolean isFocusDriven)
Function used to scroll the container down by one 'page', although
if this is a horizontal container, then the scrolling will be to the right.
|
private int |
onScrollPageUp(boolean isFocusDriven)
Function used to scroll the container up by one 'page', although
if this is a horizontal container, then the scrolling will be to the left.
|
private void |
onSelectNextCell() |
private void |
onSelectPreviousCell() |
protected java.lang.Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
java.lang.Object... parameters) |
protected void |
updateItemCount()
This method is called when it is possible that the item count has changed (i.e.
|
private void |
updateListViewItems() |
private void |
updatePlaceholderRegionVisibility() |
checkState, createVirtualFlow, getMaxCellWidth, getVirtualFlow, getVirtualFlowPreferredHeight, markItemCountDirty, requestRebuildCells
private static final boolean IS_PANNABLE
private static final java.lang.String EMPTY_LIST_TEXT
private final VirtualFlow<<any>> flow
private StackPane placeholderRegion
private Node placeholderNode
private <any> listViewItems
private final InvalidationListener itemsChangeListener
private boolean needCellsRebuilt
private boolean needCellsReconfigured
private int itemCount
private <any> behavior
private <any> propertiesMapListener
private final <any> listViewItemsListener
private final <any> weakListViewItemsListener
public ListViewSkin(<any> control)
children
list, as
well as the necessary input mappings for handling key, mouse, etc events.control
- The control that this skin should be installed onto.public void dispose()
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class VirtualContainerBase<<any>,<any>>
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected int getItemCount()
getItemCount
in class VirtualContainerBase<<any>,<any>>
protected void updateItemCount()
VirtualContainerBase.getItemCount()
method.updateItemCount
in class VirtualContainerBase<<any>,<any>>
protected java.lang.Object queryAccessibleAttribute(AccessibleAttribute attribute, java.lang.Object... parameters)
protected void executeAccessibleAction(AccessibleAction action, java.lang.Object... parameters)
private <any> createCell()
private void updateListViewItems()
private final void updatePlaceholderRegionVisibility()
private static <T> <any> createDefaultCellImpl()
private void onFocusPreviousCell()
private void onFocusNextCell()
private void onSelectPreviousCell()
private void onSelectNextCell()
private void onMoveToFirstCell()
private void onMoveToLastCell()
private int onScrollPageDown(boolean isFocusDriven)
private int onScrollPageUp(boolean isFocusDriven)