T - Item data typeP - Item property typeC - Component typeB - Concrete builder typepublic static interface ItemListingBuilder.BaseGridItemListingBuilder<T,P,C extends ItemListing<T,P>,B extends ItemListingBuilder.BaseGridItemListingBuilder<T,P,C,B>> extends ItemListingBuilder<T,P,C,B,com.vaadin.ui.Grid>
ItemListing with a Grid as backing component.ItemListingBuilder.BaseGridItemListingBuilder<T,P,C extends ItemListing<T,P>,B extends ItemListingBuilder.BaseGridItemListingBuilder<T,P,C,B>>, ItemListingBuilder.BaseTableItemListingBuilder<T,P,C extends ItemListing<T,P>,B extends ItemListingBuilder.BaseTableItemListingBuilder<T,P,C,B>>, ItemListingBuilder.FooterBuilder, ItemListingBuilder.GridFooterGenerator<T,P>, ItemListingBuilder.GridItemListingBuilder<T>, ItemListingBuilder.GridSection<ROWTYPE extends com.vaadin.ui.Grid.StaticSection.StaticRow<?>>, ItemListingBuilder.HeaderBuilder, ItemListingBuilder.TableFooterGenerator<T,P>, ItemListingBuilder.TableItemListingBuilder<T>ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
B |
commitOnRemove()
Sets to call
ItemListing.commit() to confirm item modifications in data source when an item is
removed using ItemListing.removeItem(Object). |
B |
commitOnSave()
Sets to call
ItemListing.commit() to confirm item modifications in data source when the editor
Save action is triggered. |
B |
detailsGenerator(ItemListing.ItemDetailsGenerator<T> detailsGenerator)
Set the
ItemListing.ItemDetailsGenerator to generate row details component |
B |
editorCancelCaption(com.holonplatform.core.i18n.Localizable caption)
Set the caption for the editor Cancel button.
|
default B |
editorCancelCaption(String caption)
Set the caption for the editor Cancel button
|
default B |
editorCancelCaption(String caption,
String messageCode)
Set the caption for the editor Cancel button
|
B |
editorSaveCaption(com.holonplatform.core.i18n.Localizable caption)
Set the caption for the editor Save button.
|
default B |
editorSaveCaption(String caption)
Set the caption for the editor Save button.
|
default B |
editorSaveCaption(String caption,
String messageCode)
Set the caption for the editor Save button.
|
B |
expandRatio(P property,
int expandRatio)
Set the expandRatio for the column which corresponds to given property.
|
B |
footer(ItemListingBuilder.FooterBuilder builder)
Set the listing footer builder to create and manage footer rows
|
B |
footerGenerator(ItemListingBuilder.GridFooterGenerator<T,P> footerGenerator)
Set a
ItemListingBuilder.GridFooterGenerator to update footer contents when item set changes. |
B |
frozenColumns(int frozenColumnsCount)
Sets the number of frozen columns in this listing.
|
B |
header(ItemListingBuilder.HeaderBuilder builder)
Set the listing header builder to create and manage header rows.
|
B |
heightByContents()
Set the height of the listing defined by its contents.
|
B |
heightByRows(double rows)
Set the height of the listing by defined by a number of rows.
|
B |
hidingToggleCaption(P property,
com.holonplatform.core.i18n.Localizable hidingToggleCaption)
Sets the caption of the hiding toggle for the column which corresponds to given property.
|
default B |
hidingToggleCaption(P property,
String hidingToggleCaption)
Sets the caption of the hiding toggle for the column which corresponds to given property.
|
default B |
hidingToggleCaption(P property,
String hidingToggleCaption,
String messageCode)
Sets the caption of the hiding toggle for the column which corresponds to given property.
|
B |
maxWidth(P property,
int widthInPixels)
Set the maximum width in pixels for the column which corresponds to given property.
|
B |
minWidth(P property,
int widthInPixels)
Set the minimum width in pixels for the column which corresponds to given property.
|
B |
resizable(P property,
boolean resizable)
Sets whether the column which corresponds to given property is resizable by the user.
|
alignment, buffered, build, build, columnHidingAllowed, columnReorderingAllowed, commitHandler, defaultValue, editable, editable, editor, footerVisible, header, header, header, hidable, hidden, hideHeaders, itemDescriptionGenerator, readOnly, selectionMode, sortable, sortGenerator, sortUsing, style, style, width, withItemClickListener, withPropertyReorderListener, withPropertyResizeListener, withPropertyVisibilityListener, withRowStyle, withSelectionListenerdataSource, dataSource, itemAdapterautoRefresh, batchSize, defaultSort, fixedFilter, fixedSort, maxCacheSize, queryParameter, withQueryConfigurationProviderbuild, deferLocalizationcaption, caption, caption, captionAsHtml, description, description, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, immediate, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListenerwithPostProcessorB heightByContents()
B heightByRows(double rows)
rows - Number of rows that should be visible in grid's bodyB minWidth(P property, int widthInPixels)
property - Item property to set the width for (not null)widthInPixels - Minimum width in pixelB maxWidth(P property, int widthInPixels)
property - Item property to set the width for (not null)widthInPixels - Maximum width in pixelB expandRatio(P property, 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.
Example: A grid with three columns, with expand ratios 0, 1 and 2, respectively. The column with a ratio of 0 is exactly as wide as its contents requires. The column with a ratio of 1 is as wide as it needs, plus a third of any excess space, because we have 3 parts total, and this column reserves only one of those. The column with a ratio of 2, is as wide as it needs to be, plus two thirds of the excess width.
property - Item property to set the expand ratio for (not null)expandRatio - Column expand ratio. 0 to not have it expand at allB hidingToggleCaption(P property, com.holonplatform.core.i18n.Localizable hidingToggleCaption)
property - Item property to set the caption for (not null)hidingToggleCaption - Localizable hiding toggle caption (not null)default B hidingToggleCaption(P property, String hidingToggleCaption)
property - Item property to set the caption for (not null)hidingToggleCaption - Hiding toggle captiondefault B hidingToggleCaption(P property, String hidingToggleCaption, String messageCode)
property - Item property to set the caption for (not null)hidingToggleCaption - Hiding toggle caption default messagemessageCode - Hiding toggle caption localization message codeB resizable(P property, boolean resizable)
property - Item property to set resizable or not (not null)resizable - true if the column which corresponds to given property is resizable by the userB frozenColumns(int frozenColumnsCount)
frozenColumnsCount - The number of columns that should be frozenB editorSaveCaption(com.holonplatform.core.i18n.Localizable caption)
caption - Localizable caption (not null)default B editorSaveCaption(String caption)
caption - Button captiondefault B editorSaveCaption(String caption, String messageCode)
caption - Button captionmessageCode - Caption translation message codeB editorCancelCaption(com.holonplatform.core.i18n.Localizable caption)
caption - Localizable caption (not null)default B editorCancelCaption(String caption)
caption - Button captiondefault B editorCancelCaption(String caption, String messageCode)
caption - Button captionmessageCode - Optional caption translation message codeB commitOnSave()
ItemListing.commit() to confirm item modifications in data source when the editor
Save action is triggered.B commitOnRemove()
ItemListing.commit() to confirm item modifications in data source when an item is
removed using ItemListing.removeItem(Object).B header(ItemListingBuilder.HeaderBuilder builder)
builder - Header builder (not null)B footer(ItemListingBuilder.FooterBuilder builder)
builder - Footer builder (not null)B footerGenerator(ItemListingBuilder.GridFooterGenerator<T,P> footerGenerator)
ItemListingBuilder.GridFooterGenerator to update footer contents when item set changes.footerGenerator - Footer generatorB detailsGenerator(ItemListing.ItemDetailsGenerator<T> detailsGenerator)
ItemListing.ItemDetailsGenerator to generate row details componentdetailsGenerator - Item details generator (not null)Copyright © 2019 The Holon Platform. All rights reserved.