T
- Virtual property typeI
- Item typeP
- Item property typeC
- Item listing typeB
- Parent build typepublic interface VirtualPropertyColumnBuilder<T,I,P,C extends ItemListing<I,P>,B extends ItemListingBuilder<I,P,C,B,?>>
VirtualProperty
column to a PropertyListing
component.Modifier and Type | Method and Description |
---|---|
B |
add()
Add this virtual property column to the
PropertyListing . |
VirtualPropertyColumnBuilder<T,I,P,C,B> |
alignment(ItemListing.ColumnAlignment alignment)
Set the text alignment for the column which corresponds to this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
displayAfter(P property)
Configure this virtual property column to be displayed after the listing column bound to given
property by default. |
VirtualPropertyColumnBuilder<T,I,P,C,B> |
displayAfterColumnId(String columnId)
Configure this virtual property column to be displayed after the given listing column id by default.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
displayAsFirst()
Configure this virtual property column to be displayed before any other standard listing column by default.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
displayAsLast()
Configure this virtual property column to be displayed after any other standard listing column by default.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
displayBefore(P property)
Configure this virtual property column to be displayed before the listing column bound to given
property by default. |
VirtualPropertyColumnBuilder<T,I,P,C,B> |
displayBeforeColumnId(String columnId)
Configure this virtual property column to be displayed before the given listing column id by default.
|
<E extends com.vaadin.data.HasValue<T> & com.vaadin.ui.Component> |
editor(E editor)
Set the field to use for this virtual property in edit mode.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
expandRatio(int expandRatio)
Set the expandRatio for the column which corresponds to this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
header(com.holonplatform.core.i18n.Localizable header)
Set the column header to show for this virtual property.
|
default VirtualPropertyColumnBuilder<T,I,P,C,B> |
header(String header)
Set the column header to show for this virtual property.
|
default VirtualPropertyColumnBuilder<T,I,P,C,B> |
header(String defaultHeader,
String headerMessageCode)
Set the column header to show for this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
headerHTML(com.holonplatform.core.i18n.Localizable header)
Set the column header for given this virtual, displaying it as HTML.
|
default VirtualPropertyColumnBuilder<T,I,P,C,B> |
headerHTML(String header)
Set the column header for given this virtual property, displaying it as HTML.
|
default VirtualPropertyColumnBuilder<T,I,P,C,B> |
headerHTML(String defaultHeader,
String headerMessageCode)
Set the column header for this virtual property, displaying it as HTML.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
headerMode(ItemListingBuilder.ColumnHeaderMode headerMode)
Set the column header display mode for the column which corresponds to this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
hidable(boolean hidable)
Sets whether the column which corresponds to this virtual property can be hidden by the user.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
hidden(boolean hidden)
Sets whether the column which corresponds to this virtual property is hidden.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
hidingToggleCaption(com.holonplatform.core.i18n.Localizable hidingToggleCaption)
Sets the caption of the hiding toggle for the column which corresponds to this virtual property.
|
default VirtualPropertyColumnBuilder<T,I,P,C,B> |
hidingToggleCaption(String hidingToggleCaption)
Sets the caption of the hiding toggle for the column which corresponds to this virtual property.
|
default VirtualPropertyColumnBuilder<T,I,P,C,B> |
hidingToggleCaption(String hidingToggleCaption,
String messageCode)
Sets the caption of the hiding toggle for the column which corresponds to this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
maxWidth(int widthInPixels)
Set the maximum width in pixels for the column which corresponds to this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
minimumWidthFromContent(boolean minimumWidthFromContent)
Sets whether the width of the contents in the column which corresponds to this virtual property should be
considered minimum width for this column.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
minWidth(int widthInPixels)
Set the minimum width in pixels for the column which corresponds to this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
render(com.vaadin.ui.renderers.Renderer<? super T> renderer)
Set a custom
Renderer for this virtual property. |
<D> VirtualPropertyColumnBuilder<T,I,P,C,B> |
render(com.vaadin.data.ValueProvider<T,D> presentationProvider,
com.vaadin.ui.renderers.Renderer<? super D> renderer)
Set a custom
Renderer and presentation provider for this virtual property. |
VirtualPropertyColumnBuilder<T,I,P,C,B> |
resizable(boolean resizable)
Sets whether the column which corresponds to this virtual property is resizable by the user.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
sortGenerator(ItemDataSource.PropertySortGenerator<P> generator)
Set a
ItemDataSource.PropertySortGenerator to generate QuerySort s for this virtual property. |
VirtualPropertyColumnBuilder<T,I,P,C,B> |
sortUsing(com.holonplatform.core.Path<?> sortPath)
Declares to use specified
Path to generate query sorts for this virtual property. |
VirtualPropertyColumnBuilder<T,I,P,C,B> |
style(ItemListing.CellStyleGenerator<I,P> cellStyleGenerator)
Set the
ItemListing.CellStyleGenerator to call for this virtual property to generate column cell style. |
default VirtualPropertyColumnBuilder<T,I,P,C,B> |
style(String styleName)
Set the column cell style name for this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> |
width(int widthInPixels)
Set the width in pixels for the column which corresponds to this virtual property.
|
VirtualPropertyColumnBuilder<T,I,P,C,B> header(com.holonplatform.core.i18n.Localizable header)
header
- Localizable column header (not null)default VirtualPropertyColumnBuilder<T,I,P,C,B> header(String header)
header
- Column headerdefault VirtualPropertyColumnBuilder<T,I,P,C,B> header(String defaultHeader, String headerMessageCode)
defaultHeader
- Default column headerheaderMessageCode
- Column header translation message codeVirtualPropertyColumnBuilder<T,I,P,C,B> alignment(ItemListing.ColumnAlignment alignment)
alignment
- AlignmentVirtualPropertyColumnBuilder<T,I,P,C,B> width(int widthInPixels)
widthInPixels
- Width in pixelVirtualPropertyColumnBuilder<T,I,P,C,B> hidable(boolean hidable)
hidable
- true
if the column which corresponds to this property can be hidden by the userVirtualPropertyColumnBuilder<T,I,P,C,B> hidden(boolean hidden)
hidden
- true
if column is hiddenVirtualPropertyColumnBuilder<T,I,P,C,B> style(ItemListing.CellStyleGenerator<I,P> cellStyleGenerator)
ItemListing.CellStyleGenerator
to call for this virtual property to generate column cell style.cellStyleGenerator
- Cell style generator (not null)default VirtualPropertyColumnBuilder<T,I,P,C,B> style(String styleName)
styleName
- The property column style nameVirtualPropertyColumnBuilder<T,I,P,C,B> minWidth(int widthInPixels)
widthInPixels
- Minimum width in pixelVirtualPropertyColumnBuilder<T,I,P,C,B> maxWidth(int widthInPixels)
widthInPixels
- Maximum width in pixelVirtualPropertyColumnBuilder<T,I,P,C,B> expandRatio(int expandRatio)
By default, all columns expand equally (treated as if all of them had an expand ratio of 1). Once at least one column gets a defined expand ratio, the implicit expand ratio is removed, and only the defined expand ratios are taken into account.
If a column has a defined width, it overrides this method's effects.
expandRatio
- Column expand ratio. 0
to not have it expand at allVirtualPropertyColumnBuilder<T,I,P,C,B> minimumWidthFromContent(boolean minimumWidthFromContent)
If this is set to true
(default), then a column will not shrink to smaller than the width required
to show the contents available when calculating the widths (only the widths of the initially rendered rows are
considered).
If this is set to false
and the column has been set to expand using expandRatio(...)
,
then the contents of the column will be ignored when calculating the width, and the column will thus shrink down
to the minimum width if necessary.
minimumWidthFromContent
- true
to reserve space for all contents, false
to allow
the column to shrink smaller than the contentsVirtualPropertyColumnBuilder<T,I,P,C,B> hidingToggleCaption(com.holonplatform.core.i18n.Localizable hidingToggleCaption)
hidingToggleCaption
- Localizable hiding toggle caption (not null)default VirtualPropertyColumnBuilder<T,I,P,C,B> hidingToggleCaption(String hidingToggleCaption)
hidingToggleCaption
- Hiding toggle captiondefault VirtualPropertyColumnBuilder<T,I,P,C,B> hidingToggleCaption(String hidingToggleCaption, String messageCode)
hidingToggleCaption
- Hiding toggle caption default messagemessageCode
- Hiding toggle caption localization message codeVirtualPropertyColumnBuilder<T,I,P,C,B> headerMode(ItemListingBuilder.ColumnHeaderMode headerMode)
headerMode
- Column header modeVirtualPropertyColumnBuilder<T,I,P,C,B> headerHTML(com.holonplatform.core.i18n.Localizable header)
ItemListingBuilder.ColumnHeaderMode
will be configured as ItemListingBuilder.ColumnHeaderMode.HTML
.header
- Localizable column header (not null)default VirtualPropertyColumnBuilder<T,I,P,C,B> headerHTML(String header)
ItemListingBuilder.ColumnHeaderMode
will be configured as ItemListingBuilder.ColumnHeaderMode.HTML
.header
- Column headerdefault VirtualPropertyColumnBuilder<T,I,P,C,B> headerHTML(String defaultHeader, String headerMessageCode)
ItemListingBuilder.ColumnHeaderMode
will be configured as ItemListingBuilder.ColumnHeaderMode.HTML
.defaultHeader
- Default column headerheaderMessageCode
- Column header translation message codeVirtualPropertyColumnBuilder<T,I,P,C,B> resizable(boolean resizable)
resizable
- true
if the column which corresponds to this property is resizable by the userVirtualPropertyColumnBuilder<T,I,P,C,B> sortUsing(com.holonplatform.core.Path<?> sortPath)
Path
to generate query sorts for this virtual property.sortPath
- Sort path to use (not null)VirtualPropertyColumnBuilder<T,I,P,C,B> sortGenerator(ItemDataSource.PropertySortGenerator<P> generator)
ItemDataSource.PropertySortGenerator
to generate QuerySort
s for this virtual property.generator
- PropertySortGenerator (not null)VirtualPropertyColumnBuilder<T,I,P,C,B> render(com.vaadin.ui.renderers.Renderer<? super T> renderer)
Renderer
for this virtual property.renderer
- Renderer to use<D> VirtualPropertyColumnBuilder<T,I,P,C,B> render(com.vaadin.data.ValueProvider<T,D> presentationProvider, com.vaadin.ui.renderers.Renderer<? super D> renderer)
Renderer
and presentation provider for this virtual property.D
- Presentation value typepresentationProvider
- Presentation providerrenderer
- Renderer to use<E extends com.vaadin.data.HasValue<T> & com.vaadin.ui.Component> VirtualPropertyColumnBuilder<T,I,P,C,B> editor(E editor)
E
- Editor field typeeditor
- Editor field (not null)VirtualPropertyColumnBuilder<T,I,P,C,B> displayAsFirst()
VirtualPropertyColumnBuilder<T,I,P,C,B> displayAsLast()
VirtualPropertyColumnBuilder<T,I,P,C,B> displayBefore(P property)
property
by default.property
- Property to which the position is relativeVirtualPropertyColumnBuilder<T,I,P,C,B> displayAfter(P property)
property
by default.property
- Property to which the position is relativeVirtualPropertyColumnBuilder<T,I,P,C,B> displayBeforeColumnId(String columnId)
columnId
- Column id to which the position is relativeVirtualPropertyColumnBuilder<T,I,P,C,B> displayAfterColumnId(String columnId)
columnId
- Column id to which the position is relativeB add()
PropertyListing
.
The column will be displayed after any other listing column by default, or according to the position configured
using either displayAsFirst()
, displayAsLast()
, displayBefore(Object)
or
displayAfter(Object)
.
PropertyListing
builderCopyright © 2018 The Holon Platform. All rights reserved.