S
- The type of the TreeItem
instances contained within the
TreeTableView.T
- The type of the items contained within the TreeTableColumn.public class TreeTablePosition<S,T> extends TablePositionBase<TreeTableColumn<S,T>>
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.
TreeTableView
,
TreeTableColumn
Modifier and Type | Field and Description |
---|---|
private java.lang.ref.WeakReference<TreeTableView<S>> |
controlRef
*
Instance Variables *
*
|
(package private) int |
fixedColumnIndex |
private int |
nonFixedColumnIndex |
private java.lang.ref.WeakReference<TreeItem<S>> |
treeItemRef |
Constructor and 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.
|
TreeTablePosition(TreeTableView<S> treeTableView,
int row,
TreeTableColumn<S,T> tableColumn,
boolean doLookup) |
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
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 the
TreeItem that backs the TablePositionBase.getRow() row}. |
TreeTableView<S> |
getTreeTableView()
The TreeTableView that this TreeTablePosition is related to.
|
equals, getRow, hashCode
private final java.lang.ref.WeakReference<TreeTableView<S>> controlRef
int fixedColumnIndex
private final int nonFixedColumnIndex
public TreeTablePosition(TreeTableView<S> treeTableView, int row, TreeTableColumn<S,T> tableColumn)
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.TreeTablePosition(TreeTableView<S> treeTableView, int row, TreeTableColumn<S,T> tableColumn, boolean doLookup)
public int getColumn()
getColumn
in class TablePositionBase<TreeTableColumn<S,T>>
public final TreeTableView<S> getTreeTableView()
public final TreeTableColumn<S,T> getTableColumn()
TablePositionBase
getTableColumn
in class TablePositionBase<TreeTableColumn<S,T>>
public final TreeItem<S> getTreeItem()
TreeItem
that backs the TablePositionBase.getRow()
row}.TreeItem
that backs the TablePositionBase.getRow()
row}