T - Value typepublic interface ViewComponentBuilder<T> extends ViewComponentConfigurator<T,ViewComponentBuilder<T>>
ViewComponents.ComponentConfigurator.BaseComponentConfiguratorFULL_SIZE| Modifier and Type | Method and Description |
|---|---|
ViewComponent<T> |
build()
Build the
ViewComponent instance. |
static <T> ViewComponentBuilder<T> |
create(Class<? extends T> valueType)
Get a
ViewComponentBuilder to create a ViewComponent using given value type. |
static <T> ViewComponentBuilder<T> |
create(Function<T,String> stringValueConverter)
Get a
ViewComponentBuilder to create a ViewComponent using given function to convert the value to
a String type representation. |
static <T> ViewComponentBuilder<T> |
create(com.holonplatform.core.property.Property<T> property)
Get a
ViewComponentBuilder to create a ViewComponent using given Property for label and
value presentation through the Property.present(Object) method. |
ViewComponentBuilder<T> |
html(boolean html)
Sets whether the view component supports HTML type content.
|
labelVisible, withValue, withValueChangeListenerelementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamefullHeight, fullSize, fullWidth, height, height, heightUndefined, maxHeight, maxWidth, minHeight, minWidth, sizeUndefined, width, width, widthUndefinedstyleName, styleNamesdescription, description, description, title, title, titledisabled, enabledlabel, label, labelonClick, withClickListener, withClickShortcut, withClickShortcutKeydeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledViewComponentBuilder<T> html(boolean html)
html - whether the view component supports HTML type contentViewComponent<T> build()
ViewComponent instance.ViewComponent instancestatic <T> ViewComponentBuilder<T> create(Class<? extends T> valueType)
ViewComponentBuilder to create a ViewComponent using given value type.T - Value typevalueType - Value type (not null)ViewComponentBuilderstatic <T> ViewComponentBuilder<T> create(Function<T,String> stringValueConverter)
ViewComponentBuilder to create a ViewComponent using given function to convert the value to
a String type representation.T - Value typestringValueConverter - Value converter function (not null)ViewComponentBuilderstatic <T> ViewComponentBuilder<T> create(com.holonplatform.core.property.Property<T> property)
ViewComponentBuilder to create a ViewComponent using given Property for label and
value presentation through the Property.present(Object) method.T - Value typeproperty - The property to use (not null)ViewComponentBuilderCopyright © 2019 The Holon Platform. All rights reserved.