Package net.officefloor.gef.configurer
Interface InputBuilder<M>
-
- All Superinterfaces:
ItemBuilder<M>
- All Known Subinterfaces:
ConfigurationBuilder<M>
,MultipleBuilder<M,I>
,OptionalBuilder<M>
- All Known Implementing Classes:
AbstractConfigurationBuilder
,Configurer
,MultipleBuilderImpl
,OptionalBuilderImpl
public interface InputBuilder<M> extends ItemBuilder<M>
Builder of the inputs.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChoiceBuilder<M>
choices(java.lang.String label)
Builds choices in configuration.ClassBuilder<M>
clazz(java.lang.String label)
Adds aClass
property to be configured.<I> ListBuilder<M,I>
list(java.lang.String label, java.lang.Class<I> itemType)
Configures creating a list of items.MappingBuilder<M>
map(java.lang.String label, java.util.function.Function<M,javafx.collections.ObservableList<java.lang.String>> getSources, java.util.function.Function<M,javafx.collections.ObservableList<java.lang.String>> getTargets)
Configures a mapping of name to name.<I> MultipleBuilder<M,I>
multiple(java.lang.String label, java.lang.Class<I> itemType)
Configures multiple items.OptionalBuilder<M>
optional(java.util.function.Predicate<M> isShow)
Configures optional configuration.PropertiesBuilder<M>
properties(java.lang.String label)
ConfiguresPropertyList
.ResourceBuilder<M>
resource(java.lang.String label)
Adds a resource property to be configured.<I> SelectBuilder<M,I>
select(java.lang.String label, java.util.function.Function<M,javafx.collections.ObservableList<I>> getItems)
Configures selecting from a list of items.-
Methods inherited from interface net.officefloor.gef.configurer.ItemBuilder
flag, text
-
-
-
-
Method Detail
-
choices
ChoiceBuilder<M> choices(java.lang.String label)
Builds choices in configuration.- Parameters:
label
- Label for the choices.- Returns:
ChoiceBuilder
.
-
list
<I> ListBuilder<M,I> list(java.lang.String label, java.lang.Class<I> itemType)
Configures creating a list of items.- Type Parameters:
I
- Item type.- Parameters:
label
- Label for the items.itemType
- Item type.- Returns:
ListBuilder
.
-
select
<I> SelectBuilder<M,I> select(java.lang.String label, java.util.function.Function<M,javafx.collections.ObservableList<I>> getItems)
Configures selecting from a list of items.- Type Parameters:
I
- Item type.- Parameters:
label
- Label for the selection.getItems
- Function to extract the items.- Returns:
SelectBuilder
.
-
optional
OptionalBuilder<M> optional(java.util.function.Predicate<M> isShow)
Configures optional configuration.- Parameters:
isShow
-Predicate
on whether to show the optional configuration.- Returns:
OptionalBuilder
.
-
multiple
<I> MultipleBuilder<M,I> multiple(java.lang.String label, java.lang.Class<I> itemType)
Configures multiple items.- Type Parameters:
I
- Item type.- Parameters:
label
- Label for the items.itemType
- Item type.- Returns:
MultipleBuilder
.
-
properties
PropertiesBuilder<M> properties(java.lang.String label)
ConfiguresPropertyList
.- Parameters:
label
- Label for theProperties
.- Returns:
PropertiesBuilder
.
-
map
MappingBuilder<M> map(java.lang.String label, java.util.function.Function<M,javafx.collections.ObservableList<java.lang.String>> getSources, java.util.function.Function<M,javafx.collections.ObservableList<java.lang.String>> getTargets)
Configures a mapping of name to name.- Parameters:
label
- Label for the mapping.getSources
-Function
to extract the sources.getTargets
-Function
to extract the targets.- Returns:
MappingBuilder
.
-
clazz
ClassBuilder<M> clazz(java.lang.String label)
Adds aClass
property to be configured.- Parameters:
label
- Label.- Returns:
ClassBuilder
.
-
resource
ResourceBuilder<M> resource(java.lang.String label)
Adds a resource property to be configured.- Parameters:
label
- Label.- Returns:
ResourceBuilder
.
-
-