public class TreeViewSkin<T> extends VirtualContainerBase<TreeView<T>,TreeViewBehavior<T>,TreeCell<T>>
Modifier and Type | Field and Description |
---|---|
static String |
RECREATE |
flow, rowCountDirty
IS_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.
|
protected void |
executeAccessibleAction(AccessibleAction action,
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.
|
protected void |
handleControlPropertyChanged(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.
|
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'.
|
protected Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
Object... parameters) |
protected void |
updateRowCount() |
checkState, createVirtualFlow
dispose, getBehavior, registerChangeListener, unregisterChangeListener
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, consumeMouseEvents, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
public static final String RECREATE
public TreeViewSkin(TreeView treeView)
protected void handleControlPropertyChanged(String p)
BehaviorSkinBase
handleControlPropertyChanged
in class BehaviorSkinBase<TreeView<T>,TreeViewBehavior<T>>
public int getItemCount()
VirtualContainerBase
getItemCount
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()
VirtualContainerBase
createCell
in class VirtualContainerBase<TreeView<T>,TreeViewBehavior<T>,TreeCell<T>>
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
SkinBase
. 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)
SkinBase
SkinBase
. 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)
SkinBase
layoutChildren
in class VirtualContainerBase<TreeView<T>,TreeViewBehavior<T>,TreeCell<T>>
public int onScrollPageDown(boolean isFocusDriven)
public int onScrollPageUp(boolean isFocusDriven)
protected Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
queryAccessibleAttribute
in class SkinBase<TreeView<T>>
Node.queryAccessibleAttribute(javafx.scene.AccessibleAttribute, java.lang.Object...)
protected void executeAccessibleAction(AccessibleAction action, Object... parameters)
executeAccessibleAction
in class SkinBase<TreeView<T>>
Node.executeAccessibleAction(javafx.scene.AccessibleAction, java.lang.Object...)
Copyright © 2020. All rights reserved.