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
MultiSelect type Input for given enum class with the
options rendering mode, i.e. using a checkbox group. |
static <E extends Enum<E>> |
enumOptionSelect(Class<E> enumType)
Gets a builder to create a
SingleSelect type Input for given enum type with the
options rendering mode, i.e. using a radio button group. |
static <E extends Enum<E>> |
enumSelect(Class<E> enumType)
Gets a builder to create a
SingleSelect type Input for given enum type. |
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> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,T> |
multiOptionSelect(Class<T> type)
Gets a builder to create a
MultiSelect using the options rendering mode, i.e. a checkbox
group. |
static <T,ITEM> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,ITEM> |
multiOptionSelect(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a
MultiSelect using the options rendering mode, i.e. a checkbox
group. |
static <T> OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T> |
multiOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
MultiSelect, using given selection Property and the
options rendering mode, i.e. a checkbox group. |
static <T> OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T> |
multiOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
MultiSelect, using given selection Property, a converter and the
options rendering mode, i.e. a checkbox group. |
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> OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilder<T,T> |
singleOptionSelect(Class<T> type)
Gets a builder to create a
SingleSelect type Input using the options rendering mode, i.e. a
radio button group. |
static <T,ITEM> OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilder<T,ITEM> |
singleOptionSelect(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a
SingleSelect type Input using the options rendering mode, i.e. a
radio button group. |
static <T> OptionsModeSingleSelectInputBuilder.PropertyOptionsModeSingleSelectInputBuilder<T> |
singleOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
SingleSelect type Input, using given selection Property and the
options rendering mode, i.e. a radio button group. |
static <T> OptionsModeSingleSelectInputBuilder.PropertyOptionsModeSingleSelectInputBuilder<T> |
singleOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
SingleSelect type Input, using given selection Property, a
converter and the options rendering mode, i.e. a radio button group. |
static <T> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,T> |
singleSelect(Class<T> type)
Gets a builder to create a
SingleSelect type Input. |
static <T,ITEM> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,ITEM> |
singleSelect(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a
SingleSelect type Input. |
static <T> SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T> |
singleSelect(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
SingleSelect type Input, using given selection Property. |
static <T> SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T> |
singleSelect(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
SingleSelect type Input, using given selection Property and
converter. |
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> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,T> singleSelect(Class<T> type)
SingleSelect type Input.
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)SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilderstatic <T,ITEM> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,ITEM> singleSelect(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect type Input.
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)SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilderstatic <T> SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T> singleSelect(com.holonplatform.core.property.Property<T> selectionProperty)
SingleSelect type Input, using given selection Property.T - Value typeselectionProperty - The property to use to represent the selection value (not null)SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilderstatic <T> SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T> singleSelect(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
SingleSelect type Input, using given selection Property and
converter.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 itemSelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilderstatic <T> OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilder<T,T> singleOptionSelect(Class<T> type)
SingleSelect type Input using the options rendering mode, i.e. a
radio button group.
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)OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilderstatic <T,ITEM> OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilder<T,ITEM> singleOptionSelect(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect type Input using the options rendering mode, i.e. a
radio button group.
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)OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilderstatic <T> OptionsModeSingleSelectInputBuilder.PropertyOptionsModeSingleSelectInputBuilder<T> singleOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty)
SingleSelect type Input, using given selection Property and the
options rendering mode, i.e. a radio button group.T - Value typeselectionProperty - The property to use to represent the selection value (not null)OptionsModeSingleSelectInputBuilder.PropertyOptionsModeSingleSelectInputBuilderstatic <T> OptionsModeSingleSelectInputBuilder.PropertyOptionsModeSingleSelectInputBuilder<T> singleOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
SingleSelect type Input, using given selection Property, a
converter and the options rendering mode, i.e. a radio button group.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 itemOptionsModeSingleSelectInputBuilder.PropertyOptionsModeSingleSelectInputBuilderstatic <T> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,T> multiOptionSelect(Class<T> type)
MultiSelect using the options rendering mode, i.e. a checkbox
group.
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)OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilderstatic <T,ITEM> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,ITEM> multiOptionSelect(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
MultiSelect using the options rendering mode, i.e. a checkbox
group.
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)OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilderstatic <T> OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T> multiOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty)
MultiSelect, using given selection Property and the
options rendering mode, i.e. a checkbox group.T - Value typeselectionProperty - The property to use to represent the selection value (not null)OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilderstatic <T> OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T> multiOptionSelect(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
MultiSelect, using given selection Property, a converter and the
options rendering mode, i.e. a checkbox group.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 itemOptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilderstatic <E extends Enum<E>> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<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)SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilderstatic <E extends Enum<E>> OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilder<E,E> enumOptionSelect(Class<E> enumType)
SingleSelect type Input for given enum type with the
options rendering mode, i.e. using a radio button group.
All the enum constants declared for the given enum type will be available as selection items.
E - Enum typeenumType - Enum type (not null)OptionsModeSingleSelectInputBuilder.ItemOptionsModeSingleSelectInputBuilderstatic <E extends Enum<E>> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<E,E> enumMultiSelect(Class<E> enumType)
MultiSelect type Input for given enum class with the
options rendering mode, i.e. using a checkbox group.
All the enum constants declared for the given enum type will be available as selection items.
E - Enum typeenumType - Enum type (not null)OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilderstatic <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.