public class RowGroup extends TableComponent
Row
s, used to implement the logic of a TableEditor
.
A RowGroup contains one or more Row
s.
A RowGroup serves a boundary for Cell
s: a Cell cannot span
several RowGroups.
Modifier and Type | Field and Description |
---|---|
protected Row[] |
rows |
parentComponent, peerElement
Constructor and Description |
---|
RowGroup(TableBody tableBody,
Element peerElement) |
Modifier and Type | Method and Description |
---|---|
int |
getFirstRowIndex() |
Row |
getFollowingRow(Row row) |
int |
getLastRowIndex() |
Row |
getRowAt(int r) |
Element |
getRowGroupElement()
Convenience method which unlike
TableComponent.getPeerElement() is guaranteed
to return a non-null peer element. |
Row[] |
getRows()
Returns the rows contained in this group.
|
TableBody |
getTableBody() |
void |
initRows(Row[] rows) |
getParentComponent, getPeerElement
protected Row[] rows
public void initRows(Row[] rows)
public TableBody getTableBody()
public Element getRowGroupElement()
TableComponent.getPeerElement()
is guaranteed
to return a non-null peer element.
A RowGroup may return null
in TableComponent.getPeerElement()
.
Example: an HTML 3.2 table has a single RowGroup with no peer element.
That's why this convenience method is needed.
public Row[] getRows()
A row group contains at least one row. Returned array cannot be empty.
public int getFirstRowIndex()
public int getLastRowIndex()
public Row getRowAt(int r)