com.vaadin.client.widget.treegrid.

Class TreeGrid.BodyUpdater

  • All Implemented Interfaces:

    EscalatorUpdater

    Enclosing class:

    TreeGrid

    protected class TreeGrid.BodyUpdater
    extends Grid.BodyUpdater

    Body updater that adds additional style to each row containing depth information inside the hierarchy.

    • Constructor Detail

      • BodyUpdater

        protected BodyUpdater()
    • 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 interface EscalatorUpdater

        Overrides:

        update in class Grid.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.