Class PropertiesBuilderImpl<M>
- java.lang.Object
-
- net.officefloor.gef.configurer.internal.inputs.PropertiesBuilderImpl<M>
-
- All Implemented Interfaces:
Builder<M,PropertyList,PropertiesBuilder<M>>
,ValueRendererFactory<M,ValueInput>
,PropertiesBuilder<M>
public class PropertiesBuilderImpl<M> extends java.lang.Object implements PropertiesBuilder<M>, ValueRendererFactory<M,ValueInput>
PropertiesBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertiesBuilderImpl.PropertyItem
Property
item.
-
Constructor Summary
Constructors Constructor Description PropertiesBuilderImpl(java.lang.String label)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueRenderer<M,ValueInput>
createValueRenderer(ValueRendererContext<M> context)
Creates theValueRenderer
.PropertiesBuilder<M>
init(java.util.function.Function<M,PropertyList> getInitialValue)
Configures obtaining the initial value.PropertiesBuilder<M>
setValue(ValueLoader<M,PropertyList> valueLoader)
Specifies theValueLoader
to load the value to the model.PropertiesBuilder<M>
specification(javafx.beans.property.Property<PropertyList> specification)
Configures listening on the specificationPropertyList
.PropertiesBuilder<M>
validate(ValueValidator<M,PropertyList> validator)
Validates the text value.
-
-
-
Method Detail
-
specification
public PropertiesBuilder<M> specification(javafx.beans.property.Property<PropertyList> specification)
Description copied from interface:PropertiesBuilder
Configures listening on the specificationPropertyList
.- Specified by:
specification
in interfacePropertiesBuilder<M>
- Parameters:
specification
- SpecificationPropertyList
.- Returns:
this
.
-
init
public PropertiesBuilder<M> init(java.util.function.Function<M,PropertyList> getInitialValue)
Description copied from interface:Builder
Configures obtaining the initial value.- Specified by:
init
in interfaceBuilder<M,PropertyList,PropertiesBuilder<M>>
- Parameters:
getInitialValue
- Obtains the initial value.- Returns:
this
.
-
validate
public PropertiesBuilder<M> validate(ValueValidator<M,PropertyList> validator)
Description copied from interface:Builder
Validates the text value.- Specified by:
validate
in interfaceBuilder<M,PropertyList,PropertiesBuilder<M>>
- Parameters:
validator
-ValueValidator
.- Returns:
this
.
-
setValue
public PropertiesBuilder<M> setValue(ValueLoader<M,PropertyList> valueLoader)
Description copied from interface:Builder
Specifies theValueLoader
to load the value to the model.- Specified by:
setValue
in interfaceBuilder<M,PropertyList,PropertiesBuilder<M>>
- Parameters:
valueLoader
-ValueLoader
to load the value to the model.- Returns:
this
.
-
createValueRenderer
public ValueRenderer<M,ValueInput> createValueRenderer(ValueRendererContext<M> context)
Description copied from interface:ValueRendererFactory
Creates theValueRenderer
.- Specified by:
createValueRenderer
in interfaceValueRendererFactory<M,ValueInput>
- Parameters:
context
-ValueRendererContext
.- Returns:
ValueRenderer
.
-
-