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 final WeakReference | |
| pack-priv int | |
| private final WeakReference | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | TablePosition(TableView<S>
The TableView that this position is related to. tableView, int The row that this TablePosition is representing. row, TableColumn<S, T> The TableColumn instance that this TablePosition represents. tableColumn)Constructs a TablePosition instance to represent the given row/column position in the given TableView instance. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getColumn()
Implements abstract javafx. The column index that this TablePosition represents in the TableView. |
| pack-priv final S | |
| public final TableColumn | getTableColumn()
Overrides javafx. The TableColumn that this TablePosition represents in the TableView. |
| public final TableView | |
| public String | Returns: a string representation of thisTablePosition object.Overrides java. Returns a string representation of this |
| controlRef | back to summary |
|---|---|
| private final WeakReference<TableView<S>> controlRef | |
| fixedColumnIndex | back to summary |
|---|---|
| pack-priv int fixedColumnIndex | |
| itemRef | back to summary |
|---|---|
| private final WeakReference<S> itemRef | |
| nonFixedColumnIndex | back to summary |
|---|---|
| private final int nonFixedColumnIndex | |
| TablePosition | back to summary |
|---|---|
| public 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. Both the TableView and TableColumn are referenced weakly in this class, so it is possible that they will be null when their respective getters are called.
| |
| getColumn | back to summary |
|---|---|
| public int getColumn() Implements abstract javafx. The column index that this TablePosition represents in the TableView. It is -1 if the TableView or TableColumn instances are null at the time the class is instantiated (i.e. it is computed at construction).
| |
| getItem | back to summary |
|---|---|
| pack-priv final S getItem() Returns the item that backs the | |
| getTableColumn | back to summary |
|---|---|
| public final TableColumn Overrides javafx. Doc from javafx. The TableColumn that this TablePosition represents in the TableView.
| |
| getTableView | back to summary |
|---|---|
| public final TableView The TableView that this TablePosition is related to.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this | |