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 but keep the item in the list of details, so that the details stay open when the item is rendered again (for example after collapsing and expanding its parent row, or scrolling the item out of and back into view).voidgenerateData(T item, tools.jackson.databind.node.ObjectNode 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.voidsetRenderer(com.vaadin.flow.data.renderer.Renderer<T> renderer) Sets the renderer to use for displaying the item details rows.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
-
setRenderer
Sets the renderer to use for displaying the item details rows.- Parameters:
renderer- the renderer to use for displaying item details rows,nullto remove the current renderer
-
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 but keep the item in the list of details, so that the details stay open when the item is rendered again (for example after collapsing and expanding its parent row, or scrolling the item out of and back into view). Consistent withdestroyAllData().- Parameters:
item- item to removed
-
destroyAllData
public void destroyAllData()Remove the displayed details but keep the items from list of details -
refreshData
-