T - Value typepublic interface ViewComponentBuilder<T> extends HtmlComponentConfigurator<ViewComponentBuilder<T>>, HasEnabledConfigurator<ViewComponentBuilder<T>>, HasLabelConfigurator<ViewComponentBuilder<T>>, ClickNotifierConfigurator<ViewComponent<T>,ClickEvent<ViewComponent<T>>,ViewComponentBuilder<T>>, DeferrableLocalizationConfigurator<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> |
withValue(T value)
Sets an initial value for the component.
|
ViewComponentBuilder<T> |
withValueChangeListener(ValueHolder.ValueChangeListener<T,ValueHolder.ValueChangeEvent<T>> listener)
Add a
ValueHolder.ValueChangeListener to the component. |
hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamefullHeight, fullSize, fullWidth, height, height, heightUndefined, sizeUndefined, width, width, widthUndefinedstyleName, styleNamesdescription, description, description, title, title, titledisabled, enabledlabel, label, labelonClick, withClickListenerdeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledViewComponentBuilder<T> withValue(T value)
value - The initial value to setViewComponentBuilder<T> withValueChangeListener(ValueHolder.ValueChangeListener<T,ValueHolder.ValueChangeEvent<T>> listener)
ValueHolder.ValueChangeListener to the component.listener - The ValueChangeListener to addViewComponent<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.