Package io.jmix.flowui.component.grid
Interface EnhancedDataGrid<T>
- All Known Subinterfaces:
EnhancedTreeDataGrid<T>
- All Known Implementing Classes:
DataGrid
,TreeDataGrid
public interface EnhancedDataGrid<T>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Defines the position of aggregation row. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAggregation
(com.vaadin.flow.component.grid.Grid.Column<T> column, AggregationInfo info) Add an aggregation info in order to perform aggregation for column.com.vaadin.flow.component.grid.Grid.Column<T>
addColumn
(MetaPropertyPath metaPropertyPath) com.vaadin.flow.component.grid.Grid.Column<T>
addColumn
(String key, MetaPropertyPath metaPropertyPath) getColumnMetaPropertyPath
(com.vaadin.flow.component.grid.Grid.Column<T> column) boolean
boolean
void
setAggregatable
(boolean aggregatable) Set to true if aggregation should be enabled.void
Sets aggregation row position.
-
Method Details
-
getColumnMetaPropertyPath
@Nullable MetaPropertyPath getColumnMetaPropertyPath(com.vaadin.flow.component.grid.Grid.Column<T> column) -
addColumn
-
addColumn
com.vaadin.flow.component.grid.Grid.Column<T> addColumn(String key, MetaPropertyPath metaPropertyPath) -
isEditorCreated
boolean isEditorCreated() -
isAggregatable
boolean isAggregatable()- Returns:
- true if DataGrid is aggregatable
-
setAggregatable
void setAggregatable(boolean aggregatable) Set to true if aggregation should be enabled. Default value is false.- Parameters:
aggregatable
- whether to aggregate DataGrid columns
-
getAggregationPosition
EnhancedDataGrid.AggregationPosition getAggregationPosition()- Returns:
- return aggregation row position
-
setAggregationPosition
Sets aggregation row position. Default value isEnhancedDataGrid.AggregationPosition.BOTTOM
.- Parameters:
position
- position:EnhancedDataGrid.AggregationPosition.TOP
orEnhancedDataGrid.AggregationPosition.BOTTOM
-
addAggregation
Add an aggregation info in order to perform aggregation for column.- Parameters:
column
- column for aggregationinfo
- aggregation info- See Also:
-
getAggregationResults
- Returns:
- aggregated values for columns
-