T - Item typeP - Item property typeC - Concrete configurator typepublic static interface ItemListingConfigurator.ItemListingColumnConfigurator<T,P,C extends ItemListingConfigurator.ItemListingColumnConfigurator<T,P,C>> extends ItemListingConfigurator.BaseItemListingColumnConfigurator<C>
| Modifier and Type | Method and Description |
|---|---|
C |
displayAfter(P afterProperty)
Configure the column to be displayed after the column which corresponds to
the id specified by the given
afterProperty. |
C |
displayAsFirst()
Configure the column to be displayed before any other listing column.
|
C |
displayAsLast()
Configure the column to be displayed after any other listing column by
default.
|
C |
displayBefore(P beforeProperty)
Configure the column to be displayed before the column which corresponds to
the id specified by the given
beforeProperty. |
default C |
editorComponent(com.vaadin.flow.component.Component editorComponent)
Set the
Component to display when the column is in editing mode. |
C |
editorComponent(Function<T,? extends com.vaadin.flow.component.Component> editorComponentProvider)
Set the
Component to display when the column is in editing mode. |
C |
frozen(boolean frozen)
Set whether the column is frozen.
|
C |
header(com.holonplatform.core.i18n.Localizable header)
Set the header text for the column.
|
default C |
header(String header)
Set the header text for the column.
|
default C |
header(String defaultHeader,
String headerMessageCode)
Set the header text for the column.
|
C |
headerComponent(com.vaadin.flow.component.Component header)
Set the
Component to use as header for the column. |
C |
sortComparator(Comparator<T> comparator)
Sets comparator to use with in-memory sorting for the column.
|
C |
sortProvider(Function<com.holonplatform.core.query.QuerySort.SortDirection,Stream<ItemSort<P>>> sortProvider)
Set the function to use to obtain the
ItemSorts to use when the
column is user-sorted. |
C |
sortUsing(List<P> sortProperties)
Set the properties to use to implement the sort logic to apply when the
column is user-sorted.
|
default C |
sortUsing(P... sortProperties)
Set the properties to use to implement the sort logic to apply when the
column is user-sorted.
|
C |
styleNameGenerator(Function<T,String> styleNameGenerator)
Set the CSS style class name generator to use for the column.
|
C frozen(boolean frozen)
frozen - Whether the column is frozenC styleNameGenerator(Function<T,String> styleNameGenerator)
Returning null from the generator results in no custom class
name being set. Multiple class names can be returned from the generator as
space-separated.
styleNameGenerator - The function to use to generate the cell CSS style
class nameC sortComparator(Comparator<T> comparator)
comparator - The comparator to use with in-memory sortingC sortUsing(List<P> sortProperties)
sortProperties - The properties to use to sort the columndefault C sortUsing(P... sortProperties)
sortProperties - The properties to use to sort the columnC sortProvider(Function<com.holonplatform.core.query.QuerySort.SortDirection,Stream<ItemSort<P>>> sortProvider)
ItemSorts to use when the
column is user-sorted.sortProvider - Sort providerC header(com.holonplatform.core.i18n.Localizable header)
header - Localizable column header text (not null)default C header(String header)
header - The column header textdefault C header(String defaultHeader, String headerMessageCode)
defaultHeader - The default column header textheaderMessageCode - The column header text translation message codeC headerComponent(com.vaadin.flow.component.Component header)
Component to use as header for the column.header - The column header componentC editorComponent(Function<T,? extends com.vaadin.flow.component.Component> editorComponentProvider)
Component to display when the column is in editing mode.editorComponentProvider - The editor component provider (not null)default C editorComponent(com.vaadin.flow.component.Component editorComponent)
Component to display when the column is in editing mode.editorComponent - The editor component (not null)C displayAsFirst()
C displayAsLast()
C displayBefore(P beforeProperty)
beforeProperty.beforeProperty - Property which represents the column before which this
column has to be displayed (not null)Copyright © 2020 The Holon Platform. All rights reserved.