Package com.vaadin.client.widgets
Class Grid.BodyUpdater
- java.lang.Object
-
- com.vaadin.client.widgets.Grid.BodyUpdater
-
- All Implemented Interfaces:
EscalatorUpdater
- Direct Known Subclasses:
TreeGrid.BodyUpdater
protected class Grid.BodyUpdater extends Object implements EscalatorUpdater
EscalatorUpdater implementation for Grid's body section.- See Also:
EscalatorUpdater
-
-
Field Summary
-
Fields inherited from interface com.vaadin.client.widget.escalator.EscalatorUpdater
NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBodyUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostAttach(Row row, Iterable<FlyweightCell> attachedCells)Called after attaching new cells to the escalator.voidpostDetach(Row row, Iterable<FlyweightCell> detachedCells)Called after detaching cells from the escalator.voidpreAttach(Row row, Iterable<FlyweightCell> cellsToAttach)Called before attaching new cells to the escalator.voidpreDetach(Row row, Iterable<FlyweightCell> cellsToDetach)Called before detaching cells from the escalator.voidupdate(Row row, Iterable<FlyweightCell> cellsToUpdate)Renders a row contained in a row container.
-
-
-
Method Detail
-
preAttach
public void preAttach(Row row, Iterable<FlyweightCell> cellsToAttach)
Description copied from interface:EscalatorUpdaterCalled before attaching new cells to the escalator.- Specified by:
preAttachin interfaceEscalatorUpdater- Parameters:
row- Information about the row to which the cells will be added. Note: You should not store nor reuse this reference.cellsToAttach- A collection of cells that are about to be attached. Note: You should neither store nor reuse the reference to the iterable, nor to the individual cells.
-
postAttach
public void postAttach(Row row, Iterable<FlyweightCell> attachedCells)
Description copied from interface:EscalatorUpdaterCalled after attaching new cells to the escalator.- Specified by:
postAttachin interfaceEscalatorUpdater- Parameters:
row- Information about the row to which the cells were added. Note: You should not store nor reuse this reference.attachedCells- A collection of cells that were attached. Note: You should neither store nor reuse the reference to the iterable, nor to the individual cells.
-
update
public void update(Row row, Iterable<FlyweightCell> cellsToUpdate)
Description copied from interface:EscalatorUpdaterRenders 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:
updatein interfaceEscalatorUpdater- 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.
-
preDetach
public void preDetach(Row row, Iterable<FlyweightCell> cellsToDetach)
Description copied from interface:EscalatorUpdaterCalled before detaching cells from the escalator.- Specified by:
preDetachin interfaceEscalatorUpdater- Parameters:
row- Information about the row from which the cells will be removed. Note: You should not store nor reuse this reference.cellsToDetach- A collection of cells that are about to be detached. Note: You should neither store nor reuse the reference to the iterable, nor to the individual cells.
-
postDetach
public void postDetach(Row row, Iterable<FlyweightCell> detachedCells)
Description copied from interface:EscalatorUpdaterCalled after detaching cells from the escalator.- Specified by:
postDetachin interfaceEscalatorUpdater- Parameters:
row- Information about the row from which the cells were removed. Note: You should not store nor reuse this reference.detachedCells- A collection of cells that were detached. Note: You should neither store nor reuse the reference to the iterable, nor to the individual cells.
-
-