B - Concrete builder typepublic interface BaseItemDataSourceComponentBuilder<B extends BaseItemDataSourceComponentBuilder<B>> extends ComponentConfigurator<B>
ItemDataSource support.ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
B |
autoRefresh(boolean autoRefresh)
Set if auto-refresh is enabled for this container, i.e. items are loaded when one of the Container method which
involve operations on item set is called.
|
B |
batchSize(int batchSize)
Set batch (page) size for items loading using
ItemDataProvider. |
B |
defaultSort(com.holonplatform.core.query.QuerySort sort)
Set query default sort.
|
B |
fixedFilter(com.holonplatform.core.query.QueryFilter filter)
Set query fixed filter (always added to query predicates)
|
B |
fixedSort(com.holonplatform.core.query.QuerySort sort)
Set query fixed sort (always added to query sorts)
|
B |
maxCacheSize(int maxCacheSize)
Set max items cache size
|
B |
queryParameter(String name,
Object value)
Add a query parameter
|
B |
withQueryConfigurationProvider(com.holonplatform.core.query.QueryConfigurationProvider queryConfigurationProvider)
Add an external
QueryConfigurationProvider for additional query configuration |
caption, 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, withShortcutListenerB autoRefresh(boolean autoRefresh)
If auto-refresh is not enabled, ItemDataSource.refresh() method must be called to load items before using
this Container.
autoRefresh - true to enable auto-refreshB batchSize(int batchSize)
ItemDataProvider.
A value <=0 means no paging, and ItemDataProvider should behave in a consistent manner.
batchSize - Batch (page) size for items loadingB maxCacheSize(int maxCacheSize)
maxCacheSize - Max cache size to setB withQueryConfigurationProvider(com.holonplatform.core.query.QueryConfigurationProvider queryConfigurationProvider)
QueryConfigurationProvider for additional query configurationqueryConfigurationProvider - QueryConfigurationProvider to addB fixedFilter(com.holonplatform.core.query.QueryFilter filter)
filter - Query fixed filter, or null for noneB fixedSort(com.holonplatform.core.query.QuerySort sort)
sort - Query fixed sort, or null for noneB defaultSort(com.holonplatform.core.query.QuerySort sort)
null and no other sort is available, this one will be usedsort - Default query sortCopyright © 2019 The Holon Platform. All rights reserved.