Record Class CellFacet
- Record Components:
row- the cell's row as shown, from zero;-1for a header cell,-2for a footer cellcolumn- the cell's column as shown, from zerosort- which way this column's rows are running, on a header cell;CellFacet.Sort.NONEeverywhere else and on a header whose column is not the one sorted by
The row is the view position — the row a user counting down the table sees — and
the column is the shown column's index, so a sorted table and a table with a hidden column both
report what is on screen. A cell outside the data rows carries a negative row: -1 in the
header row, -2 in the footer row, the summary a table pins under its rows. Spans are
always one; the toolkit's table has no merged cells.
A cell's column header is found by structure and not carried here: it is the child at this
cell's column index of the table node's header group, which is the table's first
Accessible.Role.GROUP child. Carrying its identifier would make a facet a bridge reads
on its own thread depend on a resolution that happens after the walk, which is what relations
are for and cells are too many to be.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhich way a sorted column's rows run. -
Constructor Summary
ConstructorsConstructorDescriptionCellFacet(int row, int column) A cell that is not a sorted header: every data cell, every footer cell, and a header whose column is not the one the table is sorted by.CellFacet(int row, int column, CellFacet.Sort sort) Creates an instance of aCellFacetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.introw()Returns the value of therowrecord component.sort()Returns the value of thesortrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CellFacet
Creates an instance of aCellFacetrecord class. -
CellFacet
public CellFacet(int row, int column) A cell that is not a sorted header: every data cell, every footer cell, and a header whose column is not the one the table is sorted by.- Parameters:
row- the cell's row as shown, from zero;-1for a header cell,-2for a footer cellcolumn- the cell's column as shown, from zero
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
row
public int row()Returns the value of therowrecord component.- Returns:
- the value of the
rowrecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
sort
Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-