Class GroupDataGridColumnTextRenderer<E>
java.lang.Object
com.vaadin.flow.data.renderer.Renderer<SOURCE>
com.vaadin.flow.data.renderer.LitRenderer<SOURCE>
com.vaadin.flow.data.renderer.ComponentRenderer<com.vaadin.flow.component.Component,SOURCE>
com.vaadin.flow.data.renderer.BasicRenderer<E,String>
io.jmix.groupgridflowui.component.renderer.GroupDataGridColumnTextRenderer<E>
- Type Parameters:
E- the entity type
- All Implemented Interfaces:
GroupRenderer,HasGroupDataGrid<E>,HasItemsCount,Serializable
public class GroupDataGridColumnTextRenderer<E>
extends com.vaadin.flow.data.renderer.BasicRenderer<E,String>
implements HasGroupDataGrid<E>, HasItemsCount, GroupRenderer
A default renderer that renders a readable presentation of a group item inside a toggler.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final Stringprotected GroupDataGrid<E>protected MetadataToolsprotected Supplier<GroupCellValueFormatter<E>> -
Constructor Summary
ConstructorsConstructorDescriptionGroupDataGridColumnTextRenderer(com.vaadin.flow.function.ValueProvider<GroupInfo, String> valueProvider) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentcreateComponent(E item) protected StringgenerateName(E item) protected StringgenerateToggleClassName(E item) protected GroupInfogetGroupByItem(E item) protected StringbooleanvoidsetDisplayItemsCount(boolean displayItemsCount) Sets whether the items count should be displayed.voidsetGroupDataGrid(GroupDataGrid<E> groupDataGrid) Sets theGroupDataGrid.voidsetMetadataTools(MetadataTools metadataTools) voidsetValueFormatterSupplier(Supplier<GroupCellValueFormatter<E>> valueFormatterSupplier) Methods inherited from class com.vaadin.flow.data.renderer.BasicRenderer
getFormattedValueMethods inherited from class com.vaadin.flow.data.renderer.ComponentRenderer
render, updateComponentMethods inherited from class com.vaadin.flow.data.renderer.LitRenderer
getValueProviders, of, withFunction, withFunction, withPropertyMethods inherited from class com.vaadin.flow.data.renderer.Renderer
render
-
Field Details
-
GROUP_TOGGLE_CN
- See Also:
-
metadataTools
-
groupDataGrid
-
valueProvider
-
valueFormatterSupplier
-
displayItemsCount
protected boolean displayItemsCount
-
-
Constructor Details
-
GroupDataGridColumnTextRenderer
-
-
Method Details
-
setMetadataTools
-
getValueProvider
-
createComponent
-
getValueFormatterSupplier
-
setValueFormatterSupplier
-
getGroupDataGrid
- Specified by:
getGroupDataGridin interfaceHasGroupDataGrid<E>- Returns:
- the group data grid
-
setGroupDataGrid
Description copied from interface:HasGroupDataGridSets theGroupDataGrid.- Specified by:
setGroupDataGridin interfaceHasGroupDataGrid<E>- Parameters:
groupDataGrid- the group data grid to set
-
isDisplayItemsCount
public boolean isDisplayItemsCount()- Specified by:
isDisplayItemsCountin interfaceHasItemsCount- Returns:
trueif the items count is displayed
-
setDisplayItemsCount
public void setDisplayItemsCount(boolean displayItemsCount) Description copied from interface:HasItemsCountSets whether the items count should be displayed.- Specified by:
setDisplayItemsCountin interfaceHasItemsCount- Parameters:
displayItemsCount- display items count or not
-
getTemplateExpression
-
generateName
-
generateToggleClassName
-
getGroupByItem
-