com.vaadin.client.widget.treegrid.
Class TreeGrid.BodyUpdater
- java.lang.Object
-
- com.vaadin.client.widgets.Grid.BodyUpdater
-
- com.vaadin.client.widget.treegrid.TreeGrid.BodyUpdater
-
All Implemented Interfaces:
Enclosing class:
protected class TreeGrid.BodyUpdater extends Grid.BodyUpdater
Body updater that adds additional style to each row containing depth information inside the hierarchy.
-
-
Field Summary
-
Fields inherited from interface com.vaadin.client.widget.escalator.EscalatorUpdater
NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BodyUpdater()
-
Method Summary
All Methods Modifier and Type Method Description void
update(Row row, Iterable cellsToUpdate)
Renders a row contained in a row container.
-
Methods inherited from class com.vaadin.client.widgets.Grid.BodyUpdater
postAttach, postDetach, preAttach, preDetach
-
-
-
-
Method Detail
-
update
public void update(Row row, Iterable cellsToUpdate)
Description copied from interface:
EscalatorUpdater
Renders a row contained in a row container.
Note: If rendering of cells is deferred (e.g. because asynchronous data retrieval), this method is responsible for explicitly displaying some placeholder data (empty content is valid). Because the cells (and rows) in an escalator are recycled, failing to reset a cell's presentation will lead to wrong data being displayed in the escalator.
For performance reasons, the escalator will never autonomously clear any data in a cell.
Specified by:
update
in interfaceEscalatorUpdater
Overrides:
update
in classGrid.BodyUpdater
Parameters:
row
- Information about the row that is being updated. Note: You should not store nor reuse this reference.cellsToUpdate
- A collection of cells that need to be updated. Note: You should neither store nor reuse the reference to the iterable, nor to the individual cells.
-
-