public interface RowContainer
Escalator.Escalator.getHeader(),
Escalator.getBody(),
Escalator.getFooter(),
SpacerContainer| Modifier and Type | Interface and Description |
|---|---|
static interface |
RowContainer.BodyRowContainer
The row container for the body section in an
Escalator. |
| Modifier and Type | Field and Description |
|---|---|
static double |
INITIAL_DEFAULT_ROW_HEIGHT
An arbitrary pixel height of a row, before any autodetection for the row
height has been made.
|
| Modifier and Type | Method and Description |
|---|---|
Cell |
getCell(com.google.gwt.dom.client.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.
|
com.google.gwt.dom.client.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.
|
com.google.gwt.dom.client.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.
|
boolean |
isAutodetectingRowHeightLater()
For internal use only.
|
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. |
static final double INITIAL_DEFAULT_ROW_HEIGHT
EscalatorUpdater getEscalatorUpdater()
EscalatorUpdater used to render cells.void setEscalatorUpdater(EscalatorUpdater escalatorUpdater) throws IllegalArgumentException
EscalatorUpdater to use when displaying data in the
escalator.escalatorUpdater - the escalator updater to use to render cells. May not be
nullIllegalArgumentException - if cellRenderer is nullEscalatorUpdater.NULLvoid removeRows(int index,
int numberOfRows)
throws IndexOutOfBoundsException,
IllegalArgumentException
index - the index of the first row to be removednumberOfRows - the number of rows to remove, starting from the indexIndexOutOfBoundsException - if any integer number in the range
[index..(index+numberOfRows)] is not an existing
row indexIllegalArgumentException - if numberOfRows is less than 1.void insertRows(int index,
int numberOfRows)
throws IndexOutOfBoundsException,
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 indexIndexOutOfBoundsException - if index is not an integer in the range
[0..getRowCount()]IllegalArgumentException - if numberOfRows is less than 1.setEscalatorUpdater(EscalatorUpdater)void refreshRows(int index,
int numberOfRows)
throws IndexOutOfBoundsException,
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 indexIndexOutOfBoundsException - if any integer number in the range
[index..(index+numberOfColumns)] is not an
existing column index.IllegalArgumentException - if numberOfRows is less than 1.setEscalatorUpdater(EscalatorUpdater)int getRowCount()
boolean isAutodetectingRowHeightLater()
true if row height calculations have been scheduledvoid setDefaultRowHeight(double px)
throws IllegalArgumentException
px - the default height in pixels of the rows in this RowContainerIllegalArgumentException - 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(com.google.gwt.dom.client.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.com.google.gwt.dom.client.TableRowElement getRowElement(int index)
throws IndexOutOfBoundsException,
IllegalStateException
Escalator.getVisibleRowRange().index - the logical index of the element to retrieveindexIndexOutOfBoundsException - if index is not valid within containerIllegalStateException - if index is currently not available in the DOMcom.google.gwt.dom.client.TableSectionElement getElement()
Copyright © 2023 Vaadin Ltd. All rights reserved.