T - Item data typeC - Listing component typeB - Concrete builder typepublic static interface ItemListingBuilder.GridItemListingBuilder<T,C extends ItemListing<T,String>,B extends ItemListingBuilder.GridItemListingBuilder<T,C,B>> extends ItemListingBuilder.BaseGridItemListingBuilder<T,String,C,B>
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.ColumnHeaderMode, ItemListingBuilder.FooterBuilder<P>, ItemListingBuilder.GridFooterGenerator<T,P>, ItemListingBuilder.GridItemListingBuilder<T,C extends ItemListing<T,String>,B extends ItemListingBuilder.GridItemListingBuilder<T,C,B>>, ItemListingBuilder.GridSection<ROWTYPE>, ItemListingBuilder.HeaderBuilder<P>, ItemListingBuilder.ListingFooterRow<P>, ItemListingBuilder.ListingHeaderRow<P>ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
B |
dataSource(com.holonplatform.core.datastore.Datastore datastore,
com.holonplatform.core.datastore.DataTarget<?> target)
Set given
Datastore as data source, using given data target to perform queries and obtain the listing
items as beans of the required type. |
default <ITEM> B |
dataSource(ItemDataProvider<ITEM> dataProvider,
Function<ITEM,T> converter)
Set the item listing data source using an
ItemDataProvider and function to convert data source items
into required item type. |
<E extends com.vaadin.data.HasValue<?> & com.vaadin.ui.Component> |
editor(String property,
E editor)
Set the field to use for given property in edit mode.
|
B |
render(String property,
com.vaadin.ui.renderers.Renderer<?> renderer)
Set a custom
Renderer for given item property. |
<V,P> B |
render(String property,
com.vaadin.data.ValueProvider<V,P> presentationProvider,
com.vaadin.ui.renderers.Renderer<? super P> renderer)
Set a custom
Renderer and presentation provider for given item property. |
default B |
withValidator(String property,
com.holonplatform.core.Validator<?> validator)
Adds a
Validator to the field bound to given property in the item listing editor. |
B |
withValidator(String property,
com.vaadin.data.Validator<?> validator)
Adds a
Validator to the field bound to given property in the item
listing editor. |
commitOnRemove, commitOnSave, detailsGenerator, editorBuffered, editorCancelCaption, editorCancelCaption, editorCancelCaption, editorErrorGenerator, editorSaveCaption, editorSaveCaption, editorSaveCaption, expandRatio, footer, footerGenerator, frozenColumns, header, headerHTML, headerHTML, headerHTML, headerMode, heightByContents, heightByRows, hidingToggleCaption, hidingToggleCaption, hidingToggleCaption, maxWidth, minimumWidthFromContent, minWidth, required, required, required, required, resizable, withEditorCancelListener, withEditorOpenListener, withEditorSaveListener, withValidator, withValidatoralignment, bodyRowHeight, buffered, build, build, columnHidingAllowed, columnReorderingAllowed, commitHandler, defaultValue, displayAfter, displayAsFirst, displayAsLast, displayBefore, editable, editable, footerRowHeight, footerVisible, header, header, header, headerRowHeight, hidable, hidden, hideHeaders, itemDescriptionGenerator, readOnly, rowHeight, selectAllCheckBoxVisibility, selectionMode, sortable, sortable, sortGenerator, sortUsing, style, style, width, withItemClickListener, withPropertyReorderListener, withPropertyResizeListener, withPropertyVisibilityListener, withRowStyle, withSelectionListenerdataSource, dataSourceautoRefresh, batchSize, defaultSort, fixedFilter, fixedSort, maxCacheSize, queryParameter, withQueryConfigurationProviderbuild, deferLocalization, dragSource, dropTargetcaption, caption, caption, captionAsHtml, description, description, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListenerwithPostProcessorB dataSource(com.holonplatform.core.datastore.Datastore datastore, com.holonplatform.core.datastore.DataTarget<?> target)
Datastore as data source, using given data target to perform queries and obtain the listing
items as beans of the required type.datastore - The Datastore to use (not null)target - The data target to use (not null)default <ITEM> B dataSource(ItemDataProvider<ITEM> dataProvider, Function<ITEM,T> converter)
ItemDataProvider and function to convert data source items
into required item type.ITEM - Item typedataProvider - Item data provider (not null)converter - Item converter (not null)<E extends com.vaadin.data.HasValue<?> & com.vaadin.ui.Component> B editor(String property, E editor)
E - Editor field typeproperty - Item property to set the editor for (not null)editor - Editor field (not null)default B withValidator(String property, com.holonplatform.core.Validator<?> validator)
Validator to the field bound to given property in the item listing editor.property - Property (not null)validator - Validator to add (not null)B withValidator(String property, com.vaadin.data.Validator<?> validator)
Validator to the field bound to given property in the item
listing editor.property - Property (not null)validator - Validator to add (not null)B render(String property, com.vaadin.ui.renderers.Renderer<?> renderer)
Renderer for given item property.property - Item property to set the renderer for (not null)renderer - Renderer to use<V,P> B render(String property, com.vaadin.data.ValueProvider<V,P> presentationProvider, com.vaadin.ui.renderers.Renderer<? super P> renderer)
Renderer and presentation provider for given item property.V - Property value typeP - Presentation value typeproperty - Item property to set the renderer forpresentationProvider - Presentation providerrenderer - Renderer to useCopyright © 2019 The Holon Platform. All rights reserved.