java.lang.Object
javafx.scene.control.TablePositionBase<TreeTableColumn<S,T>>
javafx.scene.control.TreeTablePosition<S,T>
- Type Parameters:
- S- The type of the- TreeIteminstances contained within the TreeTableView.
- T- The type of the items contained within the TreeTableColumn.
public class TreeTablePosition<S,T> extends TablePositionBase<TreeTableColumn<S,T>>
This class is used to represent a single row/column/cell in a TreeTableView.
 This is used throughout the TreeTableView API to represent which rows/columns/cells
 are currently selected, focused, being edited, etc. Note that this class is
 immutable once it is created.
 
Because the TreeTableView can have different
 selection modes, the row and column properties in
 TablePosition can be 'disabled' to represent an entire row or column. This is
 done by setting the unrequired property to -1 or null.
- Since:
- JavaFX 8.0
- See Also:
- TreeTableView,- TreeTableColumn
- 
Constructor SummaryConstructors Constructor Description TreeTablePosition(TreeTableView<S> treeTableView, int row, TreeTableColumn<S,T> tableColumn)Constructs a TreeTablePosition instance to represent the given row/column position in the given TreeTableView instance.
- 
Method SummaryModifier and Type Method Description intgetColumn()The column index that this TreeTablePosition represents in the TreeTableView.TreeTableColumn<S,T>getTableColumn()The TableColumn that this TablePosition represents in the TableView.TreeItem<S>getTreeItem()Returns theTreeItemthat backs theTablePositionBase.getRow()row}.TreeTableView<S>getTreeTableView()The TreeTableView that this TreeTablePosition is related to.Methods inherited from class javafx.scene.control.TablePositionBaseequals, getRow, hashCode
- 
Constructor Details- 
TreeTablePositionpublic TreeTablePosition(TreeTableView<S> treeTableView, int row, TreeTableColumn<S,T> tableColumn)Constructs a TreeTablePosition instance to represent the given row/column position in the given TreeTableView instance. Both the TreeTableView and TreeTableColumn are referenced weakly in this class, so it is possible that they will be null when their respective getters are called.- Parameters:
- treeTableView- The TreeTableView that this position is related to.
- row- The row that this TreeTablePosition is representing.
- tableColumn- The TreeTableColumn instance that this TreeTablePosition represents.
 
 
- 
- 
Method Details- 
getColumnpublic int getColumn()The column index that this TreeTablePosition represents in the TreeTableView. It is -1 if the TreeTableView or TreeTableColumn instances are null at the time the class is instantiated (i.e. it is computed at construction).- Specified by:
- getColumnin class- TablePositionBase<TreeTableColumn<S,T>>
- Returns:
- the column index that this TablePosition represents in the TableView
 
- 
getTreeTableViewThe TreeTableView that this TreeTablePosition is related to.- Returns:
- the TreeTableView that this TreeTablePosition is related to
 
- 
getTableColumnDescription copied from class:TablePositionBaseThe TableColumn that this TablePosition represents in the TableView.- Overrides:
- getTableColumnin class- TablePositionBase<TreeTableColumn<S,T>>
- Returns:
- the TableColumn that this TablePosition represents in the TableView
 
- 
getTreeItemReturns theTreeItemthat backs theTablePositionBase.getRow()row}.- Returns:
- the TreeItemthat backs theTablePositionBase.getRow()row}
 
 
-