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
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDefines the position of aggregation row. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAggregation(com.vaadin.flow.component.grid.Grid.Column<T> column, AggregationInfo info) Add an aggregation info in order to perform aggregation for column.addColumn(MetaPropertyPath metaPropertyPath) addColumn(String key, MetaPropertyPath metaPropertyPath) getColumnByMetaPropertyPath(MetaPropertyPath metaPropertyPath) getColumnMetaPropertyPath(com.vaadin.flow.component.grid.Grid.Column<T> column) booleanbooleanvoidsetAggregatable(boolean aggregatable) Set to true if aggregation should be enabled.voidSets aggregation row position.
-
Method Details
-
getColumnMetaPropertyPath
@Nullable MetaPropertyPath getColumnMetaPropertyPath(com.vaadin.flow.component.grid.Grid.Column<T> column) -
getColumnByMetaPropertyPath
- Parameters:
metaPropertyPath-MetaPropertyPaththat refers to the column- Returns:
DataGridColumnthat is bound to the passedmetaPropertyPath
-
addColumn
-
addColumn
-
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.TOPorEnhancedDataGrid.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
-
getContextMenu
JmixGridContextMenu<T> getContextMenu()- Returns:
- context menu instance attached to the grid
-