Class Grid.AbstractGridExtension<T>

java.lang.Object
com.vaadin.flow.component.grid.Grid.AbstractGridExtension<T>
Type Parameters:
T - the grid bean type
All Implemented Interfaces:
DataGenerator<T>, Serializable
Direct Known Subclasses:
AbstractGridMultiSelectionModel, AbstractGridSingleSelectionModel, EditorImpl
Enclosing class:
Grid<T>

public abstract static class Grid.AbstractGridExtension<T> extends Object implements DataGenerator<T>
A helper base class for creating extensions for the Grid component.
See Also:
  • Constructor Details

    • AbstractGridExtension

      public AbstractGridExtension(Grid<T> grid)
      Constructs a new grid extension, extending the given grid.
      Parameters:
      grid - the grid to extend
  • Method Details

    • refresh

      protected void refresh(T item)
      A helper method for refreshing the client-side representation of a single data item.
      Parameters:
      item - the item to refresh
    • extend

      protected void extend(Grid<T> grid)
      Adds this extension to the given grid.
      Parameters:
      grid - the grid to extend
    • remove

      protected void remove()
      Remove this extension from its target.
    • getGrid

      protected Grid<T> getGrid()
      Gets the Grid this extension extends.
      Returns:
      the grid this extension extends