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>
PropertiesBuilderimplementation.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertiesBuilderImpl.PropertyItemPropertyitem.
-
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 theValueLoaderto 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:PropertiesBuilderConfigures listening on the specificationPropertyList.- Specified by:
specificationin interfacePropertiesBuilder<M>- Parameters:
specification- SpecificationPropertyList.- Returns:
this.
-
init
public PropertiesBuilder<M> init(java.util.function.Function<M,PropertyList> getInitialValue)
Description copied from interface:BuilderConfigures obtaining the initial value.- Specified by:
initin 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:BuilderValidates the text value.- Specified by:
validatein interfaceBuilder<M,PropertyList,PropertiesBuilder<M>>- Parameters:
validator-ValueValidator.- Returns:
this.
-
setValue
public PropertiesBuilder<M> setValue(ValueLoader<M,PropertyList> valueLoader)
Description copied from interface:BuilderSpecifies theValueLoaderto load the value to the model.- Specified by:
setValuein interfaceBuilder<M,PropertyList,PropertiesBuilder<M>>- Parameters:
valueLoader-ValueLoaderto load the value to the model.- Returns:
this.
-
createValueRenderer
public ValueRenderer<M,ValueInput> createValueRenderer(ValueRendererContext<M> context)
Description copied from interface:ValueRendererFactoryCreates theValueRenderer.- Specified by:
createValueRendererin interfaceValueRendererFactory<M,ValueInput>- Parameters:
context-ValueRendererContext.- Returns:
ValueRenderer.
-
-