xworker.javafx.control.TreeView.dml Maven / Gradle / Ivy
The TreeView control provides a view on to a tree root (of type TreeItem). By using a TreeView, it is possible to drill down into the children of a TreeItem, recursively until a TreeItem has no children (that is, it is a leaf node in the tree). To facilitate this, unlike controls like ListView, in TreeView it is necessary to only specify the root node.
]]>
Represents the cell factory that will be used for creating TreeCells, which are used to represent items in the TreeView.
]]>
Specifies whether this TreeView is editable - only if the TreeView and the TreeCells within it are both editable will a TreeCell be able to go into their editing state.
]]>
Specifies whether this control has cells that are a fixed height (of the specified value).
]]>
The FocusModel provides the API through which it is possible to control focus on zero or one rows of the TreeView.
]]>
Property representing the root node of the TreeView.
]]>
The SelectionModel provides the API through which it is possible to select single or multiple items within a TreeView, as well as inspect which rows have been selected by the user.
]]>
Property that represents whether or not the TreeView root node is visible.
]]>
Represents the cell factory that will be used for creating TreeCells, which are used to represent items in the TreeView.
需要实现的方法:
- TreeCell<T> call(TreeView<T> param)
创建TableCell,默认实现通过子节点创建。
]]>
用于定义动作行为,通过子节点添加具体的动作行为。
只有第一个动作模型(本节点类型)生效,会忽略后面添加的动作模型。
]]>
需要重写下面的方法:
- void changed(ObservableValue<? extends T> observable, T oldValue, T newValue)
]]>
用于定义动作行为,通过子节点添加具体的动作行为。
只有第一个动作模型(本节点类型)生效,会忽略后面添加的动作模型。
]]>