Interface GroupColumn<E>
- Type Parameters:
E- item type
- All Known Implementing Classes:
GroupDataGridColumn
public interface GroupColumn<E>
Interface to be implemented by group columns. The group column is a special column used to display a hierarchy of
grouped items, manage the grouping and expand/collapse group rows.
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.icon.IconDeprecated, for removal: This API element is subject to removal in a future version.com.vaadin.flow.component.ComponentbooleanbooleanbooleanbooleanvoidsetAutoHidden(boolean autoHidden) Sets whether the column is automatically hidden when there are no grouping columns.voidsetDisplayColumnsGrouperOnIconClick(boolean displayColumnsGrouper) Sets whether the column displays a button that opens a popup that manages columns grouping.voidsetDisplayItemsCount(boolean displayItemsCount) Sets whether the column displays the number of items in each group.voidsetGroupCellValueFormatter(GroupCellValueFormatter<E> groupCellValueFormatter) Sets a formatter for group cell values.voidsetGroupIcon(com.vaadin.flow.component.icon.Icon icon) Deprecated, for removal: This API element is subject to removal in a future version.usesetGroupIconComponent(Component)insteadvoidsetGroupIconComponent(com.vaadin.flow.component.Component icon) Sets the icon for the Columns Grouper button.voidsetGroupIconVisible(boolean visible) Sets whether the icon for the Columns Grouper button is visible.
-
Method Details
-
isAutoHidden
boolean isAutoHidden()- Returns:
trueif the column is automatically hidden when there are no grouping columns
-
setAutoHidden
void setAutoHidden(boolean autoHidden) Sets whether the column is automatically hidden when there are no grouping columns.The default value is
false.- Parameters:
autoHidden- autoHidden option
-
isDisplayItemsCount
boolean isDisplayItemsCount()- Returns:
trueif the column displays the number of items in each group
-
setDisplayItemsCount
void setDisplayItemsCount(boolean displayItemsCount) Sets whether the column displays the number of items in each group.The default value is
true.- Parameters:
displayItemsCount- displayItemsCount option
-
isDisplayColumnsGrouperOnIconClick
boolean isDisplayColumnsGrouperOnIconClick()- Returns:
trueif the column displays a button that opens a popup that manages columns grouping
-
setDisplayColumnsGrouperOnIconClick
void setDisplayColumnsGrouperOnIconClick(boolean displayColumnsGrouper) Sets whether the column displays a button that opens a popup that manages columns grouping.The default value is
true.- Parameters:
displayColumnsGrouper- displayColumnsGrouper option
-
getGroupIcon
@Deprecated(since="2.8", forRemoval=true) @Nullable com.vaadin.flow.component.icon.Icon getGroupIcon()Deprecated, for removal: This API element is subject to removal in a future version.usegetGroupIconComponent()instead- Returns:
- the icon for the Columns Grouper button or
nullif the default icon is used
-
setGroupIcon
@Deprecated(since="2.8", forRemoval=true) void setGroupIcon(@Nullable com.vaadin.flow.component.icon.Icon icon) Deprecated, for removal: This API element is subject to removal in a future version.usesetGroupIconComponent(Component)insteadSets the icon for the Columns Grouper button.- Parameters:
icon- the icon to set, ornullto set the default icon
-
getGroupIconComponent
@Nullable com.vaadin.flow.component.Component getGroupIconComponent()- Returns:
- the icon for the Columns Grouper button or
nullif the default icon is used
-
setGroupIconComponent
void setGroupIconComponent(@Nullable com.vaadin.flow.component.Component icon) Sets the icon for the Columns Grouper button.- Parameters:
icon- the icon to set, ornullto set the default icon
-
isGroupIconVisible
boolean isGroupIconVisible()- Returns:
trueif the icon for the Columns Grouper button is visible
-
setGroupIconVisible
void setGroupIconVisible(boolean visible) Sets whether the icon for the Columns Grouper button is visible.The default value is
true.- Parameters:
visible- visible option
-
getGroupCellValueFormatter
- Returns:
- a formatter for group cell values or
nullif no formatter is set.
-
setGroupCellValueFormatter
Sets a formatter for group cell values.- Parameters:
groupCellValueFormatter- a formatter to set, ornullto remove the formatter
-
getGroupIconComponent()instead