xworker.javafx.control.TreeTableColumn.dml Maven / Gradle / Ivy
A TreeTableView is made up of a number of TreeTableColumn instances. Each TreeTableColumn in a TreeTableView is responsible for displaying (and editing) the contents of that column. As well as being responsible for displaying and editing data for a single column, a TreeTableColumn also contains the necessary properties to:
- Be resized (using minWidth/ prefWidth/ maxWidth and width properties)
- Have its visibility toggled
- Display header text
- Display any nested columns it may contain
- Have a context menu when the user right-clicks the column header area
- Have the contents of the table be sorted (using comparator, sortable and sortType)
]]>
The cell factory for all cells in this column.
]]>
The cell value factory needs to be set to specify how to populate all cells within a single TreeTableColumn.
]]>
Used to state whether this column, if it is part of a sort order (see TreeTableView.getSortOrder() for more details), should be sorted in ascending or descending order.
]]>
The sort policy specifies how sorting in this TableView should be performed.
需要实现的方法:
- TableCell<S,T> call(TableColumn<S,T> param)
创建TableCell,默认实现通过子节点创建。
]]>
用于定义动作行为,通过子节点添加具体的动作行为。
只有第一个动作模型(本节点类型)生效,会忽略后面添加的动作模型。
]]>
The cell value factory needs to be set to specify how to populate all cells within a single TreeTableColumn.
需要实现的方法:
- ObservableValue<T> call(TreeTableColumn.CellDataFeatures<S,T> param)
]]>
用于定义动作行为,通过子节点添加具体的动作行为。
只有第一个动作模型(本节点类型)生效,会忽略后面添加的动作模型。
]]>