Package io.jmix.ui.component
Class DataGrid.ColumnGeneratorEvent<E>
java.lang.Object
java.util.EventObject
io.jmix.ui.component.DataGrid.AbstractDataGridEvent
io.jmix.ui.component.DataGrid.ColumnGeneratorEvent<E>
- All Implemented Interfaces:
Serializable
Event provided by a column generator
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected InstanceContainer<E>
protected Function<E,
InstanceContainer<E>> protected E
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionColumnGeneratorEvent
(DataGrid component, E item, String columnId, Function<E, InstanceContainer<E>> containerProvider) Constructor for a column generator event -
Method Summary
Methods inherited from class io.jmix.ui.component.DataGrid.AbstractDataGridEvent
getSource
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
item
-
columnId
-
container
-
containerProvider
-
-
Constructor Details
-
ColumnGeneratorEvent
public ColumnGeneratorEvent(DataGrid component, E item, String columnId, Function<E, InstanceContainer<E>> containerProvider) Constructor for a column generator event- Parameters:
component
- the DataGrid from which this event originatesitem
- an entity instance represented by the current rowcolumnId
- a generated column idcontainerProvider
- a provider that returns an instance container associated with the item
-
-
Method Details
-
getItem
- Returns:
- an entity instance represented by the current row
-
getColumnId
- Returns:
- a generated column id
-
getContainer
- Returns:
- an instance container associated with the item
-