Class TablePosition<S,T>
- javafx.scene.control.TablePositionBase<TableColumn<S,T>>
-
- javafx.scene.control.TablePosition<S,T>
Type Parameters:
S - The type of the items contained within the TableView (i.e. the same generic type as the S in TableView<S>).
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.
Since:
JavaFX 2.0
See Also:
-
Constructor Summary
Constructors 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.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description intgetColumn()The column index that this TablePosition represents in the TableView.TableColumn<S,T>getTableColumn()The TableColumn that this TablePosition represents in the TableView.TableView<S>getTableView()The TableView that this TablePosition is related to.StringtoString()Returns a string representation of thisTablePositionobject.-
Methods inherited from class javafx.scene.control.TablePositionBase
equals, getRow, hashCode
-
-
Constructor Detail
-
TablePosition
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.Parameters:
tableView- The TableView that this position is related to.
-
-
Method Detail
-
getColumn
public int getColumn()
The column index that this TablePosition represents in the TableView. It is -1 if the TableView or TableColumn instances are null.Specified by:
getColumnin classTablePositionBase<TableColumn<S,T>>
-
getTableView
public final TableView<S> getTableView()
The TableView that this TablePosition is related to.
-
getTableColumn
public final TableColumn<S,T> getTableColumn()
The TableColumn that this TablePosition represents in the TableView.Overrides:
getTableColumnin classTablePositionBase<TableColumn<S,T>>
-
toString
public String toString()
Returns a string representation of thisTablePositionobject.
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.