Basics
Guides
API Reference
Basics
Guides
API Reference
[19:7] extends: Control
TreeTableView wraps javafx.scene.control.TreeTableView, a table whose rows form an expandable tree. Rows come from a root TreeItem and its children; columns are TreeTableColumns laid across them. Columns can be simple descriptors (display plus colName, bound to a key in each TreeItem's value map) or fully configured TreeTableColumn wrappers, and the two may be mixed. Sorting mirrors TableView: use the one-call sortBy(display, sortType) or the sort-order API for multi-column sorts.
TreeTableView (RootItem = null)
Creates a TreeTableView with an optional root TreeItem.
RootItem is an optional TreeItem to use as the root.setRoot (RootItem)
Sets the root TreeItem whose children become the table rows.
RootItem is a TreeItem wrapper (or TreeItem AJO).this object for chaininggetRoot ()
Returns the root TreeItem.
An AJO around the root TreeItem, or null.setShowRoot (bool Show)
Sets whether the root TreeItem is shown.
Show is true to show the root row.this object for chainingisShowRoot ()
Returns whether the root TreeItem is shown.
A bool, true when the root is shown.showRootProperty ()
Returns the showRoot BooleanProperty for binding.
An AJO around the BooleanProperty.setColumns (list Cols)
Sets the columns. Each element may be a descriptor with display and colName fields (bound to a key in each TreeItem's value map) or a fully configured TreeTableColumn wrapper. The two forms may be mixed.
Cols is a list of column descriptors and/or TreeTableColumn wrappers.this object for chainingonCellValueFactoryCall (Param)
addColumn (Column)
Adds a single configured TreeTableColumn to the table.
Column is a TreeTableColumn wrapper (or column AJO).this object for chaininggetColumn (string Display)
Returns the column whose header text matches Display as a TreeTableColumn wrapper, or null when none matches.
Display is the column header text.A TreeTableColumn wrapper, or null.adoptColumn (Ajo)
getColumns ()
Returns the table columns as TreeTableColumn wrappers.
A list of TreeTableColumn wrappers.getColumnsRaw ()
Returns the raw ObservableList of columns.
An AJO around the ObservableListsortBy (string Display, SortType)
Sorts the table by the column with the given header text, setting its sort direction and making it the active sort column.
Display is the header text of the column to sort by.SortType is an fxsorttype value or name string ("ASCENDING" or "DESCENDING").this object for chainingclearSort ()
Clears all sorting.
this object for chaininggetSortOrder ()
Returns the sort-order columns, in priority order, as TreeTableColumn wrappers.
A list of TreeTableColumn wrappers (empty when no sort is set).getSortOrderRaw ()
Returns the raw ObservableList of sort-order columns.
An AJO around the ObservableListaddToSortOrder (Column)
Adds a column to the sort order without clearing the existing sort.
Column is a TreeTableColumn wrapper (or column AJO).this object for chainingremoveFromSortOrder (Column)
Removes a column from the sort order.
Column is a TreeTableColumn wrapper (or column AJO).this object for chainingsort ()
Re-runs the sort using the current sort order.
this object for chainingsetEditable (bool Value)
Sets whether cells in the table can be edited.
Value is true to allow editing.this object for chainingisEditable ()
Returns whether the table is editable.
A bool, true when editable.editableProperty ()
Returns the editable BooleanProperty for binding.
An AJO around the BooleanProperty.getSelectionModel ()
Returns the selection model.
An AJO around the TreeTableView.TreeTableViewSelectionModel.getSelectedItem ()
Returns the currently selected TreeItem, or null when nothing is selected.
An AJO around the selected TreeItem, or null.getSelectedValue ()
Returns the value of the currently selected TreeItem, or null.
The selected item's value, or null when nothing is selected.onChange (callback OnChange)
Sets a callback that fires when the selected item changes.
OnChange is the callback for the selection change event.this object for chaining
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.