![]() ![]() That is, each row in a TreeTableView is defined by a TreeItem in a TreeView. Because it is a combination of TreeView and TableView, it has to decide which type of model it uses. TreeTableView also uses a model for its data. Each item in the observable list provides data for a row in the TableView. Recall that you can visualize each node in a TreeView as a row with only one column.Īn ObservableList provides the model in a TableView. Each node in the TreeView derives its data from the corresponding TreeItem. TreeItems provide the model in a TreeView. You can set a cell factory for a column to customize its cells rendering. ![]() You can set a cell value factory for a column to populate its cells.You can add a context menu for columns.You can sort data on a single or multiple columns.TreeTableView supports the following features: However, if you are familiar with TreeView and TableView APIs, the TreeTableView API will look familiar to you. TreeTableView API looks huge as it combines the APIs for both TreeView and TableView. Most of the classes in the API are inherited from a common abstract base class for all three controls.įor example, the TableColumn and TreeTableColumn classes are used to define columns in TableView and TreeTableView, respectively, and both are inherited from the TableColumnBase class. TreeTableView reuses most of the code used for TreeView and TableView. TreeTableView inherits from Control, not from TreeView or TableView. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |