Built on the TreeNode class, this control visualizes hierarchical structures, allowing nodes to have children.
Customizable in layout, alignment, and style, it's ideal for representing data like file systems or organizational charts.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static enum | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final PseudoClass | |
| private final ObjectProperty | |
| private final DoubleProperty | |
| private final DoubleProperty | |
| private final StyleableObjectProperty | columnAlignment
Alignment on the same level; When the layout direction is ltr or rtl, this attribute indicates the alignment of nodes at the same level; |
| private static final int | |
| private static final int | |
| private static final HPos | |
| private static final double | |
| private static final TreeNodeView. | |
| private static final TreeNodeView. | |
| private static final double | |
| private static final VPos | |
| private static final String | |
| private static final double | |
| private final DoubleProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private static final PseudoClass | |
| private final DoubleProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final StyleableObjectProperty | rowAlignment
Alignment on the same level; When the layout direction is btt or ttb, this attribute indicates the alignment of nodes at the same level; |
| private static final PseudoClass | |
| private static final PseudoClass | |
| private final DoubleProperty |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public final ObjectProperty | |
| public DoubleProperty | |
| public DoubleProperty | |
| public ObjectProperty | |
| private Node | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final Callback | |
| public double | |
| public double | |
| public static List | getClassCssMetaData()
Hides javafx. Gets the |
| public HPos | |
| protected List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public double | |
| public TreeNodeView. | |
| public TreeNodeView. | |
| public LinkStrategy | |
| public double | |
| public Node | |
| public TreeNode | |
| public VPos | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public double | |
| public DoubleProperty | |
| public ObjectProperty | |
| public ObjectProperty | |
| public ObjectProperty | |
| public DoubleProperty | |
| public ObjectProperty | |
| public void | |
| public ObjectProperty | |
| public ObjectProperty | |
| public final void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public DoubleProperty |
| BTT_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass BTT_PSEUDOCLASS_STATE | |
| cellFactory | back to summary |
|---|---|
| private final ObjectProperty<Callback<T, TreeNodeCell<T>>> cellFactory | |
| cellHeight | back to summary |
|---|---|
| private final DoubleProperty cellHeight | |
| cellWidth | back to summary |
|---|---|
| private final DoubleProperty cellWidth | |
| columnAlignment | back to summary |
|---|---|
| private final StyleableObjectProperty<HPos> columnAlignment Alignment on the same level; When the layout direction is ltr or rtl, this attribute indicates the alignment of nodes at the same level; | |
| DEFAULT_CELL_HEIGHT | back to summary |
|---|---|
| private static final int DEFAULT_CELL_HEIGHT | |
| DEFAULT_CELL_WIDTH | back to summary |
|---|---|
| private static final int DEFAULT_CELL_WIDTH | |
| DEFAULT_COLUMN_ALIGNMENT | back to summary |
|---|---|
| private static final HPos DEFAULT_COLUMN_ALIGNMENT | |
| DEFAULT_HGAP | back to summary |
|---|---|
| private static final double DEFAULT_HGAP | |
| DEFAULT_LAYOUT_DIRECTION | back to summary |
|---|---|
| private static final TreeNodeView. | |
| DEFAULT_LAYOUT_TYPE | back to summary |
|---|---|
| private static final TreeNodeView. | |
| DEFAULT_NODE_LINE_GAP | back to summary |
|---|---|
| private static final double DEFAULT_NODE_LINE_GAP | |
| DEFAULT_ROW_ALIGNMENT | back to summary |
|---|---|
| private static final VPos DEFAULT_ROW_ALIGNMENT | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| DEFAULT_VGAP | back to summary |
|---|---|
| private static final double DEFAULT_VGAP | |
| hgap | back to summary |
|---|---|
| private final DoubleProperty hgap | |
| layoutDirection | back to summary |
|---|---|
| private final ObjectProperty<TreeNodeView. | |
| layoutType | back to summary |
|---|---|
| private final ObjectProperty<TreeNodeView. | |
| linkStrategy | back to summary |
|---|---|
| private final ObjectProperty<LinkStrategy<T>> linkStrategy | |
| LTR_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass LTR_PSEUDOCLASS_STATE | |
| nodeLineGap | back to summary |
|---|---|
| private final DoubleProperty nodeLineGap | |
| placeholder | back to summary |
|---|---|
| private final ObjectProperty<Node> placeholder | |
| root | back to summary |
|---|---|
| private final ObjectProperty<TreeNode<T>> root | |
| rowAlignment | back to summary |
|---|---|
| private final StyleableObjectProperty<VPos> rowAlignment Alignment on the same level; When the layout direction is btt or ttb, this attribute indicates the alignment of nodes at the same level; | |
| RTL_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass RTL_PSEUDOCLASS_STATE | |
| TTB_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass TTB_PSEUDOCLASS_STATE | |
| vgap | back to summary |
|---|---|
| private final DoubleProperty vgap | |
| TreeNodeView | back to summary |
|---|---|
| public TreeNodeView() | |
| TreeNodeView | back to summary |
|---|---|
| public TreeNodeView(TreeNode<T> root) | |
| activateDirectionPseudoClass | back to summary |
|---|---|
| private void activateDirectionPseudoClass() | |
| cellFactoryProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| cellHeightProperty | back to summary |
|---|---|
| public DoubleProperty cellHeightProperty() | |
| cellWidthProperty | back to summary |
|---|---|
| public DoubleProperty cellWidthProperty() | |
| columnAlignmentProperty | back to summary |
|---|---|
| public ObjectProperty | |
| createDefaultPlaceholder | back to summary |
|---|---|
| private Node createDefaultPlaceholder() | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| getCellFactory | back to summary |
|---|---|
| public final Callback | |
| getCellHeight | back to summary |
|---|---|
| public double getCellHeight() | |
| getCellWidth | back to summary |
|---|---|
| public double getCellWidth() | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Gets the | |
| getColumnAlignment | back to summary |
|---|---|
| public HPos getColumnAlignment() | |
| getControlCssMetaData | back to summary |
|---|---|
| protected List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getHgap | back to summary |
|---|---|
| public double getHgap() | |
| getLayoutDirection | back to summary |
|---|---|
| public TreeNodeView. | |
| getLayoutType | back to summary |
|---|---|
| public TreeNodeView. | |
| getLinkStrategy | back to summary |
|---|---|
| public LinkStrategy | |
| getNodeLineGap | back to summary |
|---|---|
| public double getNodeLineGap() | |
| getPlaceholder | back to summary |
|---|---|
| public Node getPlaceholder() | |
| getRoot | back to summary |
|---|---|
| public TreeNode | |
| getRowAlignment | back to summary |
|---|---|
| public VPos getRowAlignment() | |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| getVgap | back to summary |
|---|---|
| public double getVgap() | |
| hgapProperty | back to summary |
|---|---|
| public DoubleProperty hgapProperty() | |
| layoutDirectionProperty | back to summary |
|---|---|
| public ObjectProperty | |
| layoutTypeProperty | back to summary |
|---|---|
| public ObjectProperty | |
| linkStrategyProperty | back to summary |
|---|---|
| public ObjectProperty | |
| nodeLineGapProperty | back to summary |
|---|---|
| public DoubleProperty nodeLineGapProperty() | |
| placeholderProperty | back to summary |
|---|---|
| public ObjectProperty | |
| refresh | back to summary |
|---|---|
| public void refresh() | |
| rootProperty | back to summary |
|---|---|
| public ObjectProperty | |
| rowAlignmentProperty | back to summary |
|---|---|
| public ObjectProperty | |
| setCellFactory | back to summary |
|---|---|
| public final void setCellFactory(Callback<T, TreeNodeCell<T>> value) | |
| setCellHeight | back to summary |
|---|---|
| public void setCellHeight(double cellHeight) | |
| setCellWidth | back to summary |
|---|---|
| public void setCellWidth(double cellWidth) | |
| setColumnAlignment | back to summary |
|---|---|
| public void setColumnAlignment(HPos columnAlignment) | |
| setHgap | back to summary |
|---|---|
| public void setHgap(double hgap) | |
| setLayoutDirection | back to summary |
|---|---|
| public void setLayoutDirection(TreeNodeView. | |
| setLayoutType | back to summary |
|---|---|
| public void setLayoutType(TreeNodeView. | |
| setLinkStrategy | back to summary |
|---|---|
| public void setLinkStrategy(LinkStrategy<T> linkStrategy) | |
| setNodeLineGap | back to summary |
|---|---|
| public void setNodeLineGap(double nodeLineGap) | |
| setPlaceholder | back to summary |
|---|---|
| public void setPlaceholder(Node placeholder) | |
| setRoot | back to summary |
|---|---|
| public void setRoot(TreeNode<T> root) | |
| setRowAlignment | back to summary |
|---|---|
| public void setRowAlignment(VPos rowAlignment) | |
| setVgap | back to summary |
|---|---|
| public void setVgap(double vgap) | |
| vgapProperty | back to summary |
|---|---|
| public DoubleProperty vgapProperty() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TreeNodeView. | BOTTOM_TO_TOP
The tree node view will be layout from bottom to top. |
| public static final TreeNodeView. | LEFT_TO_RIGHT
The tree node view will be layout from left to right. |
| public static final TreeNodeView. | RIGHT_TO_LEFT
The tree node view will be layout from right to left. |
| public static final TreeNodeView. | TOP_TO_BOTTOM
The tree node view will be layout from top to bottom. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TreeNodeView. | |
| public static TreeNodeView. |
| BOTTOM_TO_TOP | back to summary |
|---|---|
| public static final TreeNodeView. The tree node view will be layout from bottom to top. | |
| LEFT_TO_RIGHT | back to summary |
|---|---|
| public static final TreeNodeView. The tree node view will be layout from left to right. | |
| RIGHT_TO_LEFT | back to summary |
|---|---|
| public static final TreeNodeView. The tree node view will be layout from right to left. | |
| TOP_TO_BOTTOM | back to summary |
|---|---|
| public static final TreeNodeView. The tree node view will be layout from top to bottom. | |
| LayoutDirection | back to summary |
|---|---|
| private LayoutDirection() | |
| valueOf | back to summary |
|---|---|
| public static TreeNodeView. | |
| values | back to summary |
|---|---|
| public static TreeNodeView. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TreeNodeView. | COMPACT
The tree node view will be layout in a compact way. |
| public static final TreeNodeView. | REGULAR
The tree node view will be layout in a regular way. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TreeNodeView. | |
| public static TreeNodeView. |
| COMPACT | back to summary |
|---|---|
| public static final TreeNodeView. The tree node view will be layout in a compact way. may be narrower. | |
| REGULAR | back to summary |
|---|---|
| public static final TreeNodeView. The tree node view will be layout in a regular way. may be wider | |
| LayoutType | back to summary |
|---|---|
| private LayoutType() | |
| valueOf | back to summary |
|---|---|
| public static TreeNodeView. | |
| values | back to summary |
|---|---|
| public static TreeNodeView. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CssMetaData | |
| public static final CssMetaData | |
| public static final CssMetaData | |
| public static final CssMetaData | |
| public static final CssMetaData | |
| public static final CssMetaData | |
| public static final CssMetaData | |
| private static final CssMetaData | |
| private static final List | |
| public static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| CELL_HEIGHT | back to summary |
|---|---|
| public static final CssMetaData<TreeNodeView<?>, Number> CELL_HEIGHT | |
| CELL_WIDTH | back to summary |
|---|---|
| public static final CssMetaData<TreeNodeView<?>, Number> CELL_WIDTH | |
| COLUMN_ALIGNMENT | back to summary |
|---|---|
| public static final CssMetaData<TreeNodeView<?>, HPos> COLUMN_ALIGNMENT | |
| H_GAP | back to summary |
|---|---|
| public static final CssMetaData<TreeNodeView<?>, Number> H_GAP | |
| LAYOUT_DIRECTION | back to summary |
|---|---|
| public static final CssMetaData<TreeNodeView<?>, TreeNodeView. | |
| LAYOUT_TYPE | back to summary |
|---|---|
| public static final CssMetaData<TreeNodeView<?>, TreeNodeView. | |
| NODE_LINE_GAP | back to summary |
|---|---|
| public static final CssMetaData<TreeNodeView<?>, Number> NODE_LINE_GAP | |
| ROW_ALIGNMENT | back to summary |
|---|---|
| private static final CssMetaData<TreeNodeView<?>, VPos> ROW_ALIGNMENT | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| V_GAP | back to summary |
|---|---|
| public static final CssMetaData<TreeNodeView<?>, Number> V_GAP | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |