Class Grid.AbstractGridExtension<T>

java.lang.Object
io.jmix.groupgridflowui.kit.vaadin.grid.Grid.AbstractGridExtension<T>
Type Parameters:
T - the grid bean type
All Implemented Interfaces:
com.vaadin.flow.data.provider.DataGenerator<T>, Serializable
Direct Known Subclasses:
AbstractGridMultiSelectionModel, AbstractGridSingleSelectionModel, EditorImpl, Grid.DetailsManager, GroupDataGridEditorImpl
Enclosing class:
Grid<T>

public abstract static class Grid.AbstractGridExtension<T> extends Object implements com.vaadin.flow.data.provider.DataGenerator<T>
A helper base class for creating extensions for the Grid component.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new grid extension, extending the given grid.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    extend(Grid<T> grid)
    Adds this extension to the given grid.
    protected Grid<T>
    Gets the Grid this extension extends.
    protected void
    refresh(T item)
    A helper method for refreshing the client-side representation of a single data item.
    protected void
    Remove this extension from its target.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.data.provider.DataGenerator

    destroyAllData, destroyData, generateData, refreshData
  • 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