S
- The type of the items contained within the TableView (i.e. the same
generic type as the S in TableView<S>).T
- The type of the items contained within the TableColumn.public class TablePosition<S,T> extends TablePositionBase<TableColumn<S,T>>
Because the TableView 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.
TableView
,
TableColumn
Modifier and Type | Field and Description |
---|---|
private java.lang.ref.WeakReference<TableView<S>> |
controlRef
*
Instance Variables *
*
|
(package private) int |
fixedColumnIndex |
private java.lang.ref.WeakReference<S> |
itemRef |
private int |
nonFixedColumnIndex |
Constructor and Description |
---|
TablePosition(TableView<S> tableView,
int row,
TableColumn<S,T> tableColumn)
Constructs a TablePosition instance to represent the given row/column
position in the given TableView instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
The column index that this TablePosition represents in the TableView.
|
(package private) S |
getItem()
Returns the item that backs the
TablePositionBase.getRow() row}, at the point
in time when this TablePosition was created. |
TableColumn<S,T> |
getTableColumn()
The TableColumn that this TablePosition represents in the TableView.
|
TableView<S> |
getTableView()
The TableView that this TablePosition is related to.
|
java.lang.String |
toString()
Returns a string representation of this
TablePosition object. |
equals, getRow, hashCode
private final java.lang.ref.WeakReference<TableView<S>> controlRef
private final java.lang.ref.WeakReference<S> itemRef
int fixedColumnIndex
private final int nonFixedColumnIndex
public TablePosition(TableView<S> tableView, int row, TableColumn<S,T> tableColumn)
tableView
- The TableView that this position is related to.row
- The row that this TablePosition is representing.tableColumn
- The TableColumn instance that this TablePosition represents.public int getColumn()
getColumn
in class TablePositionBase<TableColumn<S,T>>
public final TableView<S> getTableView()
public final TableColumn<S,T> getTableColumn()
getTableColumn
in class TablePositionBase<TableColumn<S,T>>
final S getItem()
TablePositionBase.getRow()
row}, at the point
in time when this TablePosition was created.public java.lang.String toString()
TablePosition
object.toString
in class java.lang.Object
TablePosition
object.