T - Value typepublic interface ViewComponentAdapterBuilder<T> extends ViewComponentConfigurator<T,ViewComponentAdapterBuilder<T>>
ViewComponent adapter builder.ComponentConfigurator.BaseComponentConfiguratorHasSizeConfigurator.BaseHasSizeConfiguratorHasStyleConfigurator.BaseHasStyleConfiguratorHasEnabledConfigurator.BaseHasEnabledConfiguratorHasLabelConfigurator.BaseHasLabelConfiguratorFULL_SIZE| Modifier and Type | Method and Description |
|---|---|
ViewComponent<T> |
build()
Build the
ViewComponent instance. |
static <T,C extends com.vaadin.flow.component.Component> |
create(Class<T> type,
C content,
BiConsumer<C,T> valueConsumer)
Create a new
ViewComponentAdapterBuilder. |
static <T,C extends com.vaadin.flow.component.Component> |
create(Class<T> type,
Function<T,C> componentProvider)
Create a new
ViewComponentAdapterBuilder. |
labelVisible, withValue, withValueChangeListenercreate, elementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamecreate, fullHeight, fullSize, fullWidth, height, height, heightUndefined, maxHeight, maxWidth, minHeight, minWidth, sizeUndefined, width, width, widthUndefinedcreate, styleName, styleNamesdescription, description, description, title, title, titlecreate, disabled, enabledcreate, create, label, label, labelonClick, withClickListener, withClickShortcut, withClickShortcutKeydeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledViewComponent<T> build()
ViewComponent instance.ViewComponent instancestatic <T,C extends com.vaadin.flow.component.Component> ViewComponentAdapterBuilder<T> create(Class<T> type, Function<T,C> componentProvider)
ViewComponentAdapterBuilder.T - Value typeC - View component content typetype - Value typecomponentProvider - The function to provide a content component each time the value changes (not null)ViewComponentAdapterBuilderstatic <T,C extends com.vaadin.flow.component.Component> ViewComponentAdapterBuilder<T> create(Class<T> type, C content, BiConsumer<C,T> valueConsumer)
ViewComponentAdapterBuilder.T - Value typeC - View component content typetype - Value typecontent - The fixed content component (not null)valueConsumer - The consumer to configure the content component each time the value changes (not null)ViewComponentAdapterBuilderCopyright © 2020 The Holon Platform. All rights reserved.