public static interface Components.input
| Modifier and Type | Method and Description |
|---|---|
static BooleanInputBuilder |
boolean_()
|
static DateInputBuilder |
date()
|
static DateTimeInputBuilder |
dateTime()
|
static <E extends Enum<E>> |
enumMultiSelect(Class<E> enumType)
Gets a builder to create a options
MultiSelect type Input for given enum type. |
static <E extends Enum<E>> |
enumOptionSelect(Class<E> enumType)
|
static <E extends Enum<E>> |
enumSelect(Class<E> enumType)
|
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
PropertyInputForm 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
PropertyInputForm using given property set. |
static <P extends com.holonplatform.core.property.Property> |
form(Iterable<P> properties)
Get a builder to create a
PropertyInputForm using given property set and a FormLayout as
content layout. |
static PropertyInputFormBuilder<com.vaadin.flow.component.formlayout.FormLayout> |
form(com.holonplatform.core.property.Property<?>... properties)
Get a builder to create a
PropertyInputForm 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
PropertyInputForm using given property set and a HorizontalLayout
as content layout. |
static PropertyInputFormBuilder<com.vaadin.flow.component.orderedlayout.HorizontalLayout> |
formHorizontal(com.holonplatform.core.property.Property<?>... properties)
Get a builder to create a
PropertyInputForm 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
PropertyInputForm using given property set and a VerticalLayout as
content layout. |
static PropertyInputFormBuilder<com.vaadin.flow.component.orderedlayout.VerticalLayout> |
formVertical(com.holonplatform.core.property.Property<?>... properties)
Get a builder to create a
PropertyInputForm using given property set and a VerticalLayout as
content layout. |
static LocalDateInputBuilder |
localDate()
|
static LocalDateTimeInputBuilder |
localDateTime()
Gets a builder to create
LocalDateTime type Inputs. |
static LocalTimeInputBuilder |
localTime()
|
static <T> OptionsMultiSelectConfigurator.OptionsMultiSelectInputBuilder<T,T> |
multiOptionSelect(Class<T> type)
Gets a builder to create a options
MultiSelect type Input, which uses a
CheckboxGroup as input component. |
static <T,ITEM> OptionsMultiSelectConfigurator.OptionsMultiSelectInputBuilder<T,ITEM> |
multiOptionSelect(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a options
MultiSelect type Input, which uses a
CheckboxGroup as input component. |
static <T> OptionsMultiSelectConfigurator.PropertyOptionsMultiSelectInputBuilder<T> |
multiOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based options MultiSelect type
Input, which uses a CheckboxGroup as input component. |
static <T> OptionsMultiSelectConfigurator.PropertyOptionsMultiSelectInputBuilder<T> |
multiOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based options MultiSelect type
Input, which uses a CheckboxGroup as input component. |
static <T extends Number> |
number(Class<T> numberClass)
Gets a builder to create a numeric type
Input. |
static PasswordInputBuilder |
password()
|
static <P extends com.holonplatform.core.property.Property> |
propertyGroup(Iterable<P> properties)
Get a
PropertyInputGroupBuilder to create and setup a PropertyInputGroup. |
static PropertyInputGroupBuilder |
propertyGroup(com.holonplatform.core.property.Property<?>... properties)
Get a
PropertyInputGroupBuilder to create and setup a PropertyInputGroup. |
static PasswordInputBuilder |
secretString()
|
static <T> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,T> |
singleOptionSelect(Class<T> type)
Gets a builder to create a options
SingleSelect type Input, which uses a
RadioButtonGroup as input component. |
static <T,ITEM> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,ITEM> |
singleOptionSelect(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a options
SingleSelect type Input, which uses a
RadioButtonGroup as input component. |
static <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> |
singleOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based options SingleSelect type
Input, which uses a RadioButtonGroup as input component. |
static <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> |
singleOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based options SingleSelect type
Input, which uses a RadioButtonGroup as input component. |
static <T> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,T> |
singleSelect(Class<T> type)
Gets a builder to create a filterable
SingleSelect type Input, which uses a
ComboBox as input component. |
static <T,ITEM> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,ITEM> |
singleSelect(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a filterable
SingleSelect type Input, which uses a
ComboBox as input component. |
static <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> |
singleSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based filterable SingleSelect type
Input, which uses a ComboBox as input component. |
static <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> |
singleSelect(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based filterable SingleSelect type
Input, which uses a ComboBox as input component. |
static <T> SingleSelectConfigurator.SingleSelectInputBuilder<T,T> |
singleSimpleSelect(Class<T> type)
|
static <T,ITEM> SingleSelectConfigurator.SingleSelectInputBuilder<T,ITEM> |
singleSimpleSelect(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
|
static <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> |
singleSimpleSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based simple SingleSelect type
Input, which uses a Select as input component. |
static <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> |
singleSimpleSelect(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based simple SingleSelect type
Input, which uses a Select as input component. |
static StringInputBuilder |
string()
|
static StringAreaInputBuilder |
stringArea()
|
static StringInputBuilder string()
StringInputBuilderstatic StringAreaInputBuilder stringArea()
StringAreaInputBuilderstatic PasswordInputBuilder secretString()
String type Inputs which not display user input on screen, used to
enter secret text information like passwords.
Alias for password().
PasswordInputBuilderstatic PasswordInputBuilder password()
String type Inputs which not display user input on screen, used to
enter secret text information like passwords.PasswordInputBuilderstatic LocalDateInputBuilder localDate()
LocalDateInputBuilderstatic LocalDateTimeInputBuilder localDateTime()
LocalDateTime type Inputs.LocalDateTimeInputBuilderstatic LocalTimeInputBuilder localTime()
LocalTimeInputBuilderstatic DateInputBuilder date()
Date type Inputs.
This Input use the Date type only for simple date representations (day, month, year), i.e. without
the time part.
DateInputBuilderstatic DateTimeInputBuilder dateTime()
Date type Inputs with time (hours and minutes) support.
Only the hours and minutes time parts are supported.
DateTimeInputBuilderstatic BooleanInputBuilder boolean_()
BooleanInputBuilderstatic <T extends Number> NumberInputBuilder<T> number(Class<T> numberClass)
Input.T - Number typenumberClass - Number class (not null)NumberInputBuilderstatic <T> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,T> singleSelect(Class<T> type)
SingleSelect type Input, which uses a
ComboBox as input component.
This builder can be used when the selection items type and the selection value type are consistent. Use
singleSelect(Class, Class, ItemConverter) if not.
T - Value typetype - Selection value type (not null)FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilderstatic <T,ITEM> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,ITEM> singleSelect(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect type Input, which uses a
ComboBox as input component.
This builder can be used when the selection items type and the selection value type are not consistent (i.e.
of different type). When the the selection item and the selection value types are consistent, the
singleSelect(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item into a selection (Input) value and
back (not null)FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilderstatic <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> singleSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based filterable SingleSelect type
Input, which uses a ComboBox as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilderstatic <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> singleSelect(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based filterable SingleSelect type
Input, which uses a ComboBox as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)itemConverter - The function to use to convert a selection value into the corresponding
PropertyBox itemFilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilderstatic <T> SingleSelectConfigurator.SingleSelectInputBuilder<T,T> singleSimpleSelect(Class<T> type)
SingleSelect type Input, which uses a
Select as input component.
This builder can be used when the selection items type and the selection value type are consistent. Use
singleSelect(Class, Class, ItemConverter) if not.
T - Value typetype - Selection value type (not null)SingleSelectConfigurator.SingleSelectInputBuilderstatic <T,ITEM> SingleSelectConfigurator.SingleSelectInputBuilder<T,ITEM> singleSimpleSelect(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect type Input, which uses a
Select as input component.
This builder can be used when the selection items type and the selection value type are not consistent (i.e.
of different type). When the the selection item and the selection value types are consistent, the
singleSelect(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item into a selection (Input) value and
back (not null)SingleSelectConfigurator.SingleSelectInputBuilderstatic <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> singleSimpleSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based simple SingleSelect type
Input, which uses a Select as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)SingleSelectConfigurator.PropertySingleSelectInputBuilderstatic <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> singleSimpleSelect(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based simple SingleSelect type
Input, which uses a Select as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)itemConverter - The function to use to convert a selection value into the corresponding
PropertyBox itemSingleSelectConfigurator.PropertySingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,T> singleOptionSelect(Class<T> type)
SingleSelect type Input, which uses a
RadioButtonGroup as input component.
This builder can be used when the selection items type and the selection value type are consistent. Use
singleOptionSelect(Class, Class, ItemConverter) if not.
T - Value typetype - Selection value type (not null)OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilderstatic <T,ITEM> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,ITEM> singleOptionSelect(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect type Input, which uses a
RadioButtonGroup as input component.
This builder can be used when the selection items type and the selection value type are not consistent (i.e.
of different type). When the the selection item and the selection value types are consistent, the
singleOptionSelect(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item into a selection (Input) value and
back (not null)OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> singleOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based options SingleSelect type
Input, which uses a RadioButtonGroup as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> singleOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based options SingleSelect type
Input, which uses a RadioButtonGroup as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)itemConverter - The function to use to convert a selection value into the corresponding
PropertyBox itemOptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilderstatic <T> OptionsMultiSelectConfigurator.OptionsMultiSelectInputBuilder<T,T> multiOptionSelect(Class<T> type)
MultiSelect type Input, which uses a
CheckboxGroup as input component.
This builder can be used when the selection items type and the selection value type are consistent. Use
multiOptionSelect(Class, Class, ItemConverter) if not.
T - Value typetype - Selection value type (not null)OptionsMultiSelectConfigurator.OptionsMultiSelectInputBuilderstatic <T,ITEM> OptionsMultiSelectConfigurator.OptionsMultiSelectInputBuilder<T,ITEM> multiOptionSelect(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
MultiSelect type Input, which uses a
CheckboxGroup as input component.
This builder can be used when the selection items type and the selection value type are not consistent (i.e.
of different type). When the the selection item and the selection value types are consistent, the
multiOptionSelect(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item into a selection (Input) value and
back (not null)OptionsMultiSelectConfigurator.OptionsMultiSelectInputBuilderstatic <T> OptionsMultiSelectConfigurator.PropertyOptionsMultiSelectInputBuilder<T> multiOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based options MultiSelect type
Input, which uses a CheckboxGroup as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)OptionsMultiSelectConfigurator.PropertyOptionsMultiSelectInputBuilderstatic <T> OptionsMultiSelectConfigurator.PropertyOptionsMultiSelectInputBuilder<T> multiOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based options MultiSelect type
Input, which uses a CheckboxGroup as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)itemConverter - The function to use to convert a selection value into the corresponding
PropertyBox itemOptionsMultiSelectConfigurator.PropertyOptionsMultiSelectInputBuilderstatic <E extends Enum<E>> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<E,E> enumSelect(Class<E> enumType)
SingleSelect type Input for given enum type.
All the enum constants declared for the given enum type will be available as selection items.
E - Enum typeenumType - Enum type (not null)FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilderstatic <E extends Enum<E>> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<E,E> enumOptionSelect(Class<E> enumType)
SingleSelect type Input for given
enum type.
All the enum constants declared for the given enum type will be available as selection items.
E - Enum typeenumType - Enum type (not null)OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilderstatic <E extends Enum<E>> OptionsMultiSelectConfigurator.OptionsMultiSelectInputBuilder<E,E> enumMultiSelect(Class<E> enumType)
MultiSelect type Input for given enum type.
All the enum constants declared for the given enum type will be available as selection items.
E - Enum typeenumType - Enum type (not null)OptionsMultiSelectConfigurator.OptionsMultiSelectInputBuilderstatic <P extends com.holonplatform.core.property.Property> PropertyInputGroupBuilder propertyGroup(Iterable<P> properties)
PropertyInputGroupBuilder to create and setup a PropertyInputGroup.P - Property typeproperties - The property set (not null)PropertyInputGroupBuilderstatic PropertyInputGroupBuilder propertyGroup(com.holonplatform.core.property.Property<?>... properties)
PropertyInputGroupBuilder to create and setup a PropertyInputGroup.properties - The property set (not null)PropertyInputGroupBuilderstatic <C extends com.vaadin.flow.component.Component,P extends com.holonplatform.core.property.Property> PropertyInputFormBuilder<C> form(C content, Iterable<P> properties)
PropertyInputForm using given property set.C - Form content element typeP - Property typecontent - The form content, where the Inputs will be composed using the configured
Composable.Composer (not null)properties - The property set (not null)PropertyInputFormBuilderstatic <C extends com.vaadin.flow.component.Component> PropertyInputFormBuilder<C> form(C content, com.holonplatform.core.property.Property<?>... properties)
PropertyInputForm using given property set.C - Form content element typecontent - The form content, where the Inputs will be composed using the configured
Composable.Composer (not null)properties - The property set (not null)PropertyInputFormBuilderstatic <P extends com.holonplatform.core.property.Property> PropertyInputFormBuilder<com.vaadin.flow.component.formlayout.FormLayout> form(Iterable<P> properties)
PropertyInputForm 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)PropertyInputForm builderstatic PropertyInputFormBuilder<com.vaadin.flow.component.formlayout.FormLayout> form(com.holonplatform.core.property.Property<?>... properties)
PropertyInputForm 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)PropertyInputForm builderstatic <P extends com.holonplatform.core.property.Property> PropertyInputFormBuilder<com.vaadin.flow.component.orderedlayout.VerticalLayout> formVertical(Iterable<P> properties)
PropertyInputForm 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)PropertyInputForm builderstatic PropertyInputFormBuilder<com.vaadin.flow.component.orderedlayout.VerticalLayout> formVertical(com.holonplatform.core.property.Property<?>... properties)
PropertyInputForm 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)PropertyInputForm builderstatic <P extends com.holonplatform.core.property.Property> PropertyInputFormBuilder<com.vaadin.flow.component.orderedlayout.HorizontalLayout> formHorizontal(Iterable<P> properties)
PropertyInputForm 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)PropertyInputForm builderstatic PropertyInputFormBuilder<com.vaadin.flow.component.orderedlayout.HorizontalLayout> formHorizontal(com.holonplatform.core.property.Property<?>... properties)
PropertyInputForm 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)PropertyInputForm builderCopyright © 2019 The Holon Platform. All rights reserved.