Class Grid.DetailsManager
java.lang.Object
io.jmix.groupgridflowui.kit.vaadin.grid.Grid.AbstractGridExtension<T>
io.jmix.groupgridflowui.kit.vaadin.grid.Grid.DetailsManager
- All Implemented Interfaces:
com.vaadin.flow.data.provider.DataGenerator<T>,Serializable
- Direct Known Subclasses:
JmixGroupGrid.JmixDetailsManager
Class for managing visible details rows.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDetailsManager(Grid<T> grid) Constructs a new details manager for the given grid. -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove the displayed details but keep the items from list of detailsvoiddestroyData(T item) Remove the displayed details and remove details item from the listvoidgenerateData(T item, elemental.json.JsonObject jsonObject) booleanisDetailsVisible(T item) Returns the visibility of the details component for the given item.voidrefreshData(T item) voidsetDetailsVisible(T item, boolean visible) Sets the visibility of details for given item.Methods inherited from class io.jmix.groupgridflowui.kit.vaadin.grid.Grid.AbstractGridExtension
extend, getGrid, refresh, remove
-
Constructor Details
-
DetailsManager
Constructs a new details manager for the given grid.- Parameters:
grid- the grid whose details are to be managed
-
-
Method Details
-
setDetailsVisible
Sets the visibility of details for given item.- Parameters:
item- the item to show details forvisible-trueif details component should be visible;falseif it should be hidden
-
isDetailsVisible
Returns the visibility of the details component for the given item.- Parameters:
item- the item to check- Returns:
trueif details component should be visible;falseif it should be hidden
-
generateData
-
destroyData
Remove the displayed details and remove details item from the list- Parameters:
item- item to removed
-
destroyAllData
public void destroyAllData()Remove the displayed details but keep the items from list of details -
refreshData
-