Package com.vaadin.flow.component.grid
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
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractGridExtension(Grid<T> grid)Constructs a new grid extension, extending the given grid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidextend(Grid<T> grid)Adds this extension to the given grid.protected Grid<T>getGrid()Gets the Grid this extension extends.protected voidrefresh(T item)A helper method for refreshing the client-side representation of a single data item.protected voidremove()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
-
-
-
-
Method Detail
-
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.
-
-