public class TreeViewSkin<T> extends VirtualContainerBase<TreeView<T>,TreeViewBehavior<T>,TreeCell<T>>
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_PANNABLE |
private boolean |
needCellsRebuilt |
private boolean |
needCellsReconfigured |
private MapChangeListener<java.lang.Object,java.lang.Object> |
propertiesMapListener |
static java.lang.String |
RECREATE |
private EventHandler<TreeItem.TreeModificationEvent<T>> |
rootListener |
private java.lang.ref.WeakReference<TreeItem<T>> |
weakRoot |
private WeakEventHandler<TreeItem.TreeModificationEvent<T>> |
weakRootListener |
flow, rowCountDirtyIS_TOUCH_SUPPORTED| Constructor and Description |
|---|
TreeViewSkin(TreeView treeView) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred height of this
SkinBase. |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred width of this
SkinBase. |
TreeCell<T> |
createCell()
Returns a Cell available to be used in the virtual flow.
|
private TreeCell<T> |
createDefaultCellImpl() |
protected void |
executeAccessibleAction(AccessibleAction action,
java.lang.Object... parameters) |
int |
getItemCount()
Returns the total number of items in this container, including those
that are currently hidden because they are out of view.
|
private TreeItem<T> |
getRoot() |
protected void |
handleControlPropertyChanged(java.lang.String p)
Skin subclasses will override this method to handle changes in corresponding
control's properties.
|
protected void |
layoutChildren(double x,
double y,
double w,
double h)
Called during the layout pass of the scenegraph.
|
private void |
onFocusNextCell() |
private void |
onFocusPreviousCell() |
private void |
onMoveToFirstCell() |
private void |
onMoveToLastCell() |
int |
onScrollPageDown(boolean isFocusDriven)
Function used to scroll the container down by one 'page'.
|
int |
onScrollPageUp(boolean isFocusDriven)
Function used to scroll the container up by one 'page'.
|
private void |
onSelectNextCell() |
private void |
onSelectPreviousCell() |
protected java.lang.Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
java.lang.Object... parameters) |
private void |
setRoot(TreeItem<T> newRoot) |
protected void |
updateRowCount() |
checkState, createVirtualFlow, getMaxCellWidth, getVirtualFlowPreferredHeightdispose, getBehavior, registerChangeListener, unregisterChangeListenercomputeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, consumeMouseEvents, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpacepublic static final java.lang.String RECREATE
private static final boolean IS_PANNABLE
private boolean needCellsRebuilt
private boolean needCellsReconfigured
private MapChangeListener<java.lang.Object,java.lang.Object> propertiesMapListener
private EventHandler<TreeItem.TreeModificationEvent<T>> rootListener
private WeakEventHandler<TreeItem.TreeModificationEvent<T>> weakRootListener
public TreeViewSkin(TreeView treeView)
protected void handleControlPropertyChanged(java.lang.String p)
BehaviorSkinBasehandleControlPropertyChanged in class BehaviorSkinBase<TreeView<T>,TreeViewBehavior<T>>public int getItemCount()
VirtualContainerBasegetItemCount in class VirtualContainerBase<TreeView<T>,TreeViewBehavior<T>,TreeCell<T>>protected void updateRowCount()
updateRowCount in class VirtualContainerBase<TreeView<T>,TreeViewBehavior<T>,TreeCell<T>>public TreeCell<T> createCell()
VirtualContainerBasecreateCell in class VirtualContainerBase<TreeView<T>,TreeViewBehavior<T>,TreeCell<T>>protected double computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
SkinBaseSkinBase. The default
implementation calculates this width as the width of the area occupied
by its managed children when they are positioned at their
current positions at their preferred widths.computePrefWidth in class SkinBase<TreeView<T>>height - the height that should be used if preferred width depends on ittopInset - the pixel snapped top insetrightInset - the pixel snapped right insetbottomInset - the pixel snapped bottom insetleftInset - the pixel snapped left insetprotected double computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
SkinBaseSkinBase. The default
implementation calculates this height as the height of the area occupied
by its managed children when they are positioned at their current
positions at their preferred heights.computePrefHeight in class SkinBase<TreeView<T>>width - the width that should be used if preferred height depends on ittopInset - the pixel snapped top insetrightInset - the pixel snapped right insetbottomInset - the pixel snapped bottom insetleftInset - the pixel snapped left insetprotected void layoutChildren(double x,
double y,
double w,
double h)
SkinBaselayoutChildren in class VirtualContainerBase<TreeView<T>,TreeViewBehavior<T>,TreeCell<T>>private void onFocusPreviousCell()
private void onFocusNextCell()
private void onSelectPreviousCell()
private void onSelectNextCell()
private void onMoveToFirstCell()
private void onMoveToLastCell()
public int onScrollPageDown(boolean isFocusDriven)
public int onScrollPageUp(boolean isFocusDriven)
protected java.lang.Object queryAccessibleAttribute(AccessibleAttribute attribute, java.lang.Object... parameters)
queryAccessibleAttribute in class SkinBase<TreeView<T>>Node.queryAccessibleAttribute(javafx.scene.AccessibleAttribute, java.lang.Object...)protected void executeAccessibleAction(AccessibleAction action, java.lang.Object... parameters)
executeAccessibleAction in class SkinBase<TreeView<T>>Node.executeAccessibleAction(javafx.scene.AccessibleAction, java.lang.Object...)