Class ChoiceBuilderImpl<M>
- java.lang.Object
-
- net.officefloor.gef.configurer.internal.AbstractBuilder<M,java.lang.Integer,ChoiceValueInput<M>,ChoiceBuilder<M>>
-
- net.officefloor.gef.configurer.internal.inputs.ChoiceBuilderImpl<M>
-
- All Implemented Interfaces:
Builder<M,java.lang.Integer,ChoiceBuilder<M>>
,ChoiceBuilder<M>
,ColumnRenderer<M,java.lang.Integer>
,ValueRendererFactory<M,ChoiceValueInput<M>>
public class ChoiceBuilderImpl<M> extends AbstractBuilder<M,java.lang.Integer,ChoiceValueInput<M>,ChoiceBuilder<M>> implements ChoiceBuilder<M>
ChoiceBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ChoiceBuilderImpl(java.lang.String label, EnvironmentBridge envBridge)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationBuilder<M>
choice(java.lang.String label)
Configures the choice.ChoiceValueInput<M>
createInput(ValueInputContext<M,java.lang.Integer> context)
Creates the inputValueInput
for theObservableValue
.-
Methods inherited from class net.officefloor.gef.configurer.internal.AbstractBuilder
configureTableColumn, createCellProperty, createCellRenderer, createErrorFeedback, createLabel, createTableColumn, createValueRenderer, getError, getLabel, init, isEditable, setValue, validate
-
-
-
-
Constructor Detail
-
ChoiceBuilderImpl
public ChoiceBuilderImpl(java.lang.String label, EnvironmentBridge envBridge)
Instantiate.- Parameters:
label
- Label.envBridge
-EnvironmentBridge
.
-
-
Method Detail
-
choice
public ConfigurationBuilder<M> choice(java.lang.String label)
Description copied from interface:ChoiceBuilder
Configures the choice.- Specified by:
choice
in interfaceChoiceBuilder<M>
- Parameters:
label
- Label for the choice.- Returns:
ConfigurationBuilder
to configure the choice.
-
createInput
public ChoiceValueInput<M> createInput(ValueInputContext<M,java.lang.Integer> context)
Description copied from class:AbstractBuilder
Creates the inputValueInput
for theObservableValue
.- Specified by:
createInput
in classAbstractBuilder<M,java.lang.Integer,ChoiceValueInput<M>,ChoiceBuilder<M>>
- Parameters:
context
-ValueInputContext
.- Returns:
ValueInput
to configure theObservableValue
.
-
-