|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RowContainer
A representation of the rows in each of the sections (header, body and
footer) in an Escalator.
Escalator.getHeader(),
Escalator.getBody(),
Escalator.getFooter(),
SpacerContainer| Nested Class Summary | |
|---|---|
static interface |
RowContainer.BodyRowContainer
The row container for the body section in an Escalator. |
| Field Summary | |
|---|---|
static double |
INITIAL_DEFAULT_ROW_HEIGHT
An arbitrary pixel height of a row, before any autodetection for the row height has been made. |
| Method Summary | |
|---|---|
Cell |
getCell(Element element)
Returns the cell object which contains information about the cell the element is in. |
double |
getDefaultRowHeight()
Returns the default height of the rows in this RowContainer. |
TableSectionElement |
getElement()
Returns the root element of RowContainer |
EscalatorUpdater |
getEscalatorUpdater()
Returns the current EscalatorUpdater used to render cells. |
int |
getRowCount()
Gets the number of rows in the current row container. |
TableRowElement |
getRowElement(int index)
Gets the row element with given logical index. |
void |
insertRows(int index,
int numberOfRows)
Adds rows at a certain index in this row container. |
void |
refreshRows(int index,
int numberOfRows)
Refreshes a range of rows in the current row container. |
void |
removeRows(int index,
int numberOfRows)
Removes rows at a certain index in the current row container. |
void |
setDefaultRowHeight(double px)
The default height of the rows in this RowContainer. |
void |
setEscalatorUpdater(EscalatorUpdater escalatorUpdater)
Sets the EscalatorUpdater to use when displaying data in the
escalator. |
| Field Detail |
|---|
static final double INITIAL_DEFAULT_ROW_HEIGHT
| Method Detail |
|---|
EscalatorUpdater getEscalatorUpdater()
EscalatorUpdater used to render cells.
void setEscalatorUpdater(EscalatorUpdater escalatorUpdater)
throws java.lang.IllegalArgumentException
EscalatorUpdater to use when displaying data in the
escalator.
escalatorUpdater - the escalator updater to use to render cells. May not be
null
java.lang.IllegalArgumentException - if cellRenderer is nullEscalatorUpdater.NULL
void removeRows(int index,
int numberOfRows)
throws java.lang.IndexOutOfBoundsException,
java.lang.IllegalArgumentException
index - the index of the first row to be removednumberOfRows - the number of rows to remove, starting from the index
java.lang.IndexOutOfBoundsException - if any integer number in the range
[index..(index+numberOfRows)] is not an existing
row index
java.lang.IllegalArgumentException - if numberOfRows is less than 1.
void insertRows(int index,
int numberOfRows)
throws java.lang.IndexOutOfBoundsException,
java.lang.IllegalArgumentException
The new rows will be inserted between the row at the index, and the row before (an index of 0 means that the rows are inserted at the beginning). Therefore, the rows currently at the index and afterwards will be moved downwards.
The contents of the inserted rows will subsequently be queried from the escalator updater.
Note: Only the contents of the inserted rows will be rendered.
If inserting new rows affects the contents of existing rows,
refreshRows(int, int) needs to be called for those rows
separately.
index - the index of the row before which new rows are inserted, or
getRowCount() to add rows at the endnumberOfRows - the number of rows to insert after the index
java.lang.IndexOutOfBoundsException - if index is not an integer in the range
[0..getRowCount()]
java.lang.IllegalArgumentException - if numberOfRows is less than 1.setEscalatorUpdater(EscalatorUpdater)
void refreshRows(int index,
int numberOfRows)
throws java.lang.IndexOutOfBoundsException,
java.lang.IllegalArgumentException
The data for the refreshed rows is queried from the current cell renderer.
index - the index of the first row that will be updatednumberOfRows - the number of rows to update, starting from the index
java.lang.IndexOutOfBoundsException - if any integer number in the range
[index..(index+numberOfColumns)] is not an
existing column index.
java.lang.IllegalArgumentException - if numberOfRows is less than 1.setEscalatorUpdater(EscalatorUpdater)int getRowCount()
void setDefaultRowHeight(double px)
throws java.lang.IllegalArgumentException
px - the default height in pixels of the rows in this RowContainer
java.lang.IllegalArgumentException - if px < 1getDefaultRowHeight()double getDefaultRowHeight()
This value will be equal to INITIAL_DEFAULT_ROW_HEIGHT if the
Escalator has not yet had a chance to autodetect the row height,
or no explicit value has yet given via #setDefaultRowHeight(int)
#setDefaultRowHeight(int)Cell getCell(Element element)
element - The element to get the cell for. If element is not present in
row container then null is returned.
null if element is not
present in the RowContainer.BodyRowContainer.
TableRowElement getRowElement(int index)
throws java.lang.IndexOutOfBoundsException,
java.lang.IllegalStateException
Escalator#getVisibleRowRange().
index - the logical index of the element to retrieve
index
java.lang.IndexOutOfBoundsException - if index is not valid within container
java.lang.IllegalStateException - if index is currently not available in the DOMTableSectionElement getElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||