TableView and
TreeTableView APIs 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 TableView and TreeTableView controls can have different
selection modes, the row and column properties in
TablePositionBase can be 'disabled' to represent an entire row or column. This is
done by setting the unrequired property to -1 or null.
TablePosition, TreeTablePosition
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| protected | TablePositionBase(int
The row that this TablePosition is representing. row, TC The TableColumn instance that this TablePosition represents. tableColumn)Constructs a TablePositionBase instance to represent the given row/column
position in the underlying table instance (which is not part of the
abstract TablePositionBase class, but is part of concrete subclasses such
as |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this object is equal to the obj argument; false otherwise.the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public abstract int | Returns: the column index that this TablePosition represents in the TableViewThe column index that this TablePosition represents in the TableView. |
| public int | Returns: the row that this TablePosition represents in the TableViewThe row that this TablePosition represents in the TableView. |
| public TC | Returns: the TableColumn that this TablePosition represents in the TableViewThe TableColumn that this TablePosition represents in the TableView. |
| public int | Returns: a hash code for thisTablePosition object.Overrides java. Returns a hash code for this |
| row | back to summary |
|---|---|
| private final int row | |
| tableColumnRef | back to summary |
|---|---|
| private final WeakReference<TC> tableColumnRef | |
| TablePositionBase | back to summary |
|---|---|
| protected TablePositionBase(int row, TC tableColumn) Constructs a TablePositionBase instance to represent the given row/column
position in the underlying table instance (which is not part of the
abstract TablePositionBase class, but is part of concrete subclasses such
as
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is "equal to" this one. | |
| getColumn | back to summary |
|---|---|
| public abstract int getColumn() The column index that this TablePosition represents in the TableView. It is -1 if the TableView or TableColumn instances are null.
| |
| getRow | back to summary |
|---|---|
| public int getRow() The row that this TablePosition represents in the TableView.
| |
| getTableColumn | back to summary |
|---|---|
| public TC getTableColumn() The TableColumn that this TablePosition represents in the TableView.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code for this
| |