public class TreeCellSkin<T> extends CellSkinBase<<any>>
TreeCell
control.TreeCell
Type | Property and Description |
---|---|
DoubleProperty |
indent
The amount of space to multiply by the treeItem.level to get the left
margin for this tree cell.
|
cellSizeProperty
Modifier and Type | Class and Description |
---|---|
private static class |
TreeCellSkin.StyleableProperties
*
Stylesheet Handling *
*
|
Modifier and Type | Field and Description |
---|---|
private <any> |
behavior |
private boolean |
disclosureNodeDirty
*
Private fields *
*
|
private double |
fixedCellSize |
private boolean |
fixedCellSizeEnabled |
private DoubleProperty |
indent
The amount of space to multiply by the treeItem.level to get the left
margin for this tree cell.
|
private static java.util.Map<<any>,java.lang.Double> |
maxDisclosureWidthMap
*
Static fields *
*
|
private <any> |
treeItem |
DEFAULT_CELL_SIZE
ellipsisWidth, graphic, graphicPropertyChangedListener, invalidText, text, textWidth
Constructor and Description |
---|
TreeCellSkin(<any> control)
Creates a new TreeCellSkin 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 |
computeMaxHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
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) |
void |
dispose() |
static java.util.List<<any>> |
getClassCssMetaData()
Returns the CssMetaData associated with this class, which may include the
CssMetaData of its superclasses.
|
java.util.List<<any>> |
getCssMetaData() |
double |
getIndent()
Gets the value of the property indent.
|
DoubleProperty |
indentProperty()
The amount of space to multiply by the treeItem.level to get the left
margin for this tree cell.
|
protected void |
layoutChildren(double x,
double y,
double w,
double h)
The Layout algorithm works like this:
- Get the labeled w/h, graphic w/h, text w/h
- Compute content w/h based on graphicVPos, graphicHPos,
graphicTextGap, and graphic w/h and text w/h
- (Note that the text content has been pre-truncated where
necessary)
- compute content x/y based on content w/h and labeled w/h
and the labeled's hpos and vpos
- position the graphic and text
|
void |
setIndent(double value)
Sets the value of the property indent.
|
private void |
setupTreeViewListeners() |
protected void |
updateChildren()
Updates the children managed by LabeledSkinBase, which can be the Labeled
graphic and/or a Text node.
|
private void |
updateDisclosureNode() |
private void |
updateTreeItem()
*
Private implementation *
*
|
cellSizeProperty, getCellSize
bottomLabelPadding, computeBaselineOffset, computeMaxWidth, computeMinWidth, isIgnoreGraphic, isIgnoreText, layoutLabelInArea, layoutLabelInArea, leftLabelPadding, mnemonicTargetChanged, queryAccessibleAttribute, rightLabelPadding, topLabelPadding, updateDisplayedText
public final DoubleProperty indentProperty
getIndent()
,
setIndent(double)
private static final java.util.Map<<any>,java.lang.Double> maxDisclosureWidthMap
private boolean disclosureNodeDirty
private <any> treeItem
private final <any> behavior
private double fixedCellSize
private boolean fixedCellSizeEnabled
private DoubleProperty indent
public TreeCellSkin(<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.private void setupTreeViewListeners()
public final void setIndent(double value)
public final double getIndent()
public final DoubleProperty indentProperty()
getIndent()
,
setIndent(double)
public void dispose()
protected void updateChildren()
updateChildren
in class LabeledSkinBase<<any>>
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class LabeledSkinBase<<any>>
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
computeMinHeight
in class LabeledSkinBase<<any>>
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefHeight
in class LabeledSkinBase<<any>>
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
computeMaxHeight
in class LabeledSkinBase<<any>>
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefWidth
in class LabeledSkinBase<<any>>
private void updateTreeItem()
private void updateDisclosureNode()
public static java.util.List<<any>> getClassCssMetaData()
public java.util.List<<any>> getCssMetaData()
getCssMetaData
in class CellSkinBase<<any>>