public abstract class TablePositionBase<TC extends TableColumnBase> extends Object
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 | Constructor and Description |
---|---|
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
TablePosition and TreeTablePosition ). |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
abstract int |
getColumn()
The column index that this TablePosition represents in the TableView.
|
int |
getRow()
The row that this TablePosition represents in the TableView.
|
TC |
getTableColumn()
The TableColumn that this TablePosition represents in the TableView.
|
int |
hashCode()
Returns a hash code for this
TablePosition object. |
protected TablePositionBase(int row, TC tableColumn)
TablePosition
and TreeTablePosition
). In all cases,
all fields inside TablePositionBase instances are referenced weakly so as
to prevent memory leaks. This means that it is possible (but unlikely)
that the get methods will return null.row
- The row that this TablePosition is representing.tableColumn
- The TableColumn instance that this TablePosition represents.public int getRow()
public abstract int getColumn()
public TC getTableColumn()
public boolean equals(Object obj)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.