TreeItem
TreeCell control.
TreeCell
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BehaviorBase | |
| private boolean | |
| private DoubleProperty | indent
The amount of space to multiply by the treeItem.level to get the left margin for this tree cell. |
| private static final Map | |
| private TreeItem |
| Access | Constructor and Description |
|---|---|
| public | TreeCellSkin(TreeCell<T>
The control that this skin should be installed onto. control)Creates a new TreeCellSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double
The width of the Skin, in case this value might dictate
the maximum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | computeMinHeight(double
The width of the Skin, in case this value might dictate
the minimum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computePrefHeight(double
the width that should be used if preferred height depends on it width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends on it height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred width of this |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| public static List | Returns: the CssMetaData associated with this class, which may include the CssMetaData of its superclassesHides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
| public List | getCssMetaData()
Overrides javafx. This method should delegate to |
| private double | |
| public final double | |
| public final DoubleProperty | |
| protected void | layoutChildren(double
the x position x, final double the y position y, double the width w, final double the height h)Overrides javafx. 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 |
| public final void | |
| protected void | updateChildren()
Overrides javafx. Updates the children managed by LabeledSkinBase, which can be the Labeled graphic and/or a Text node. |
| private void | |
| private void |
| behavior | back to summary |
|---|---|
| private final BehaviorBase<TreeCell<T>> behavior | |
| disclosureNodeDirty | back to summary |
|---|---|
| private boolean disclosureNodeDirty | |
| indent | back to summary |
|---|---|
| private DoubleProperty indent The amount of space to multiply by the treeItem.level to get the left margin for this tree cell. This is settable from CSS | |
| maxDisclosureWidthMap | back to summary |
|---|---|
| private static final Map<TreeView<?>, Double> maxDisclosureWidthMap | |
| treeItem | back to summary |
|---|---|
| private TreeItem<?> treeItem | |
| TreeCellSkin | back to summary |
|---|---|
| public TreeCellSkin(TreeCell<T> control) Creates a new TreeCellSkin instance, installing the necessary child
nodes into the Control
| |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable height of the Skin, based on the provided width.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. This method should delegate to
| |
| getFixedCellSize | back to summary |
|---|---|
| private double getFixedCellSize() | |
| getIndent | back to summary |
|---|---|
| public final double getIndent() | |
| indentProperty | back to summary |
|---|---|
| public final DoubleProperty indentProperty() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(double x, final double y, double w, final double h) Overrides javafx. Doc from javafx. 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
| |
| setIndent | back to summary |
|---|---|
| public final void setIndent(double value) | |
| updateChildren | back to summary |
|---|---|
| protected void updateChildren() Overrides javafx. Doc from javafx. Updates the children managed by LabeledSkinBase, which can be the Labeled graphic and/or a Text node. Only those nodes which actually must be used are used. For example, with a ContentDisplay of GRAPHIC_ONLY the text node is not added, and with a ContentDisplay of TEXT_ONLY, the graphic is not added.
| |
| updateDisclosureNode | back to summary |
|---|---|
| private void updateDisclosureNode() | |
| updateTreeItem | back to summary |
|---|---|
| private void updateTreeItem() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| INDENT | back to summary |
|---|---|
| private static final CssMetaData<TreeCell<?>, Number> INDENT | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |