public static interface Components.view
ViewComponent and PropertyViewGroup builders provider.| Modifier and Type | Method and Description |
|---|---|
static <T> ViewComponentBuilder<T> |
component(Class<? extends T> valueType)
Get a
ViewComponentBuilder to create a ViewComponent using given value type. |
static <T> ViewComponentBuilder<T> |
component(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> |
component(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. |
static <C extends com.vaadin.flow.component.Component,P extends com.holonplatform.core.property.Property> |
form(C content,
Iterable<P> properties)
Get a builder to create a
PropertyViewForm using given property set. |
static <C extends com.vaadin.flow.component.Component> |
form(C content,
com.holonplatform.core.property.Property<?>... properties)
Get a builder to create a
PropertyViewForm using given property set. |
static <P extends com.holonplatform.core.property.Property> |
form(Iterable<P> properties)
Get a builder to create a
PropertyViewForm using given property set and a FormLayout as
content layout. |
static PropertyViewFormBuilder<com.vaadin.flow.component.formlayout.FormLayout> |
form(com.holonplatform.core.property.Property<?>... properties)
Get a builder to create a
PropertyViewForm using given property set and a FormLayout as
content layout. |
static <P extends com.holonplatform.core.property.Property> |
formHorizontal(Iterable<P> properties)
Get a builder to create a
PropertyViewForm using given property set and a HorizontalLayout as
content layout. |
static PropertyViewFormBuilder<com.vaadin.flow.component.orderedlayout.HorizontalLayout> |
formHorizontal(com.holonplatform.core.property.Property<?>... properties)
Get a builder to create a
PropertyViewForm using given property set and a HorizontalLayout as
content layout. |
static <P extends com.holonplatform.core.property.Property> |
formVertical(Iterable<P> properties)
Get a builder to create a
PropertyViewForm using given property set and a VerticalLayout as
content layout. |
static PropertyViewFormBuilder<com.vaadin.flow.component.orderedlayout.VerticalLayout> |
formVertical(com.holonplatform.core.property.Property<?>... properties)
Get a builder to create a
PropertyViewForm using given property set and a VerticalLayout as
content layout. |
static <T> ViewComponent<T> |
property(com.holonplatform.core.property.Property<T> property)
Create a
ViewComponent using given Property for label and value presentation through the
Property.present(Object) method. |
static <P extends com.holonplatform.core.property.Property> |
propertyGroup(Iterable<P> properties)
Get a
PropertyViewGroupBuilder to create and setup a PropertyViewGroup. |
static PropertyViewGroupBuilder |
propertyGroup(com.holonplatform.core.property.Property<?>... properties)
Get a
PropertyViewGroupBuilder to create and setup a PropertyViewGroup. |
static <T> ViewComponent<T> |
type(Class<T> valueType)
Create a
ViewComponent using given value type. |
static <T> ViewComponentBuilder<T> component(Class<? extends T> valueType)
ViewComponentBuilder to create a ViewComponent using given value type.T - Value typevalueType - Value type (not null)ViewComponentBuilderstatic <T> ViewComponentBuilder<T> component(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)ViewComponentBuilderstatic <T> ViewComponentBuilder<T> component(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> ViewComponent<T> type(Class<T> valueType)
ViewComponent using given value type.T - Value typevalueType - Value type (not null)ViewComponent instancestatic <T> ViewComponent<T> property(com.holonplatform.core.property.Property<T> property)
ViewComponent using given Property for label and value presentation through the
Property.present(Object) method.T - Value typeproperty - The property to use (not null)ViewComponent instancestatic <P extends com.holonplatform.core.property.Property> PropertyViewGroupBuilder propertyGroup(Iterable<P> properties)
PropertyViewGroupBuilder to create and setup a PropertyViewGroup.P - Property typeproperties - The property set (not null)PropertyViewGroupBuilderstatic PropertyViewGroupBuilder propertyGroup(com.holonplatform.core.property.Property<?>... properties)
PropertyViewGroupBuilder to create and setup a PropertyViewGroup.properties - The property set (not null)PropertyViewGroupBuilderstatic <C extends com.vaadin.flow.component.Component,P extends com.holonplatform.core.property.Property> PropertyViewFormBuilder<C> form(C content, Iterable<P> properties)
PropertyViewForm using given property set.C - Form content element typeP - Property typecontent - The form content, where the ViewComponents will be composed using the configured
Composable.Composer (not null)properties - The property set (not null)PropertyViewFormBuilderstatic <C extends com.vaadin.flow.component.Component> PropertyViewFormBuilder<C> form(C content, com.holonplatform.core.property.Property<?>... properties)
PropertyViewForm using given property set.C - Form content element typecontent - The form content, where the ViewComponents will be composed using the configured
Composable.Composer (not null)properties - The property set (not null)PropertyViewFormBuilderstatic <P extends com.holonplatform.core.property.Property> PropertyViewFormBuilder<com.vaadin.flow.component.formlayout.FormLayout> form(Iterable<P> properties)
PropertyViewForm using given property set and a FormLayout as
content layout.
A default composer is configured using Composable.componentContainerComposer(). Use
ComposableConfigurator.composer(com.holonplatform.vaadin.flow.components.Composable.Composer) to
provide a custom components composer.
P - Property typeproperties - The property set (not null)PropertyViewForm builderstatic PropertyViewFormBuilder<com.vaadin.flow.component.formlayout.FormLayout> form(com.holonplatform.core.property.Property<?>... properties)
PropertyViewForm using given property set and a FormLayout as
content layout.
A default composer is configured using Composable.componentContainerComposer(). Use
ComposableConfigurator.composer(com.holonplatform.vaadin.flow.components.Composable.Composer) to
provide a custom components composer.
properties - The property set (not null)PropertyViewForm builderstatic <P extends com.holonplatform.core.property.Property> PropertyViewFormBuilder<com.vaadin.flow.component.orderedlayout.VerticalLayout> formVertical(Iterable<P> properties)
PropertyViewForm using given property set and a VerticalLayout as
content layout.
A default composer is configured using Composable.componentContainerComposer(). Use
ComposableConfigurator.composer(com.holonplatform.vaadin.flow.components.Composable.Composer) to
provide a custom components composer.
P - Property typeproperties - The property set (not null)PropertyViewForm builderstatic PropertyViewFormBuilder<com.vaadin.flow.component.orderedlayout.VerticalLayout> formVertical(com.holonplatform.core.property.Property<?>... properties)
PropertyViewForm using given property set and a VerticalLayout as
content layout.
A default composer is configured using Composable.componentContainerComposer(). Use
ComposableConfigurator.composer(com.holonplatform.vaadin.flow.components.Composable.Composer) to
provide a custom components composer.
properties - The property set (not null)PropertyViewForm builderstatic <P extends com.holonplatform.core.property.Property> PropertyViewFormBuilder<com.vaadin.flow.component.orderedlayout.HorizontalLayout> formHorizontal(Iterable<P> properties)
PropertyViewForm using given property set and a HorizontalLayout as
content layout.
A default composer is configured using Composable.componentContainerComposer(). Use
ComposableConfigurator.composer(com.holonplatform.vaadin.flow.components.Composable.Composer) to
provide a custom components composer.
P - Property typeproperties - The property set (not null)PropertyViewForm builderstatic PropertyViewFormBuilder<com.vaadin.flow.component.orderedlayout.HorizontalLayout> formHorizontal(com.holonplatform.core.property.Property<?>... properties)
PropertyViewForm using given property set and a HorizontalLayout as
content layout.
A default composer is configured using Composable.componentContainerComposer(). Use
ComposableConfigurator.composer(com.holonplatform.vaadin.flow.components.Composable.Composer) to
provide a custom components composer.
properties - The property set (not null)PropertyViewForm builderCopyright © 2019 The Holon Platform. All rights reserved.