Class MappingBuilderImpl<M>
- java.lang.Object
-
- net.officefloor.gef.configurer.internal.AbstractBuilder<M,java.util.Map<java.lang.String,java.lang.String>,ValueInput,MappingBuilder<M>>
-
- net.officefloor.gef.configurer.internal.inputs.MappingBuilderImpl<M>
-
- All Implemented Interfaces:
Builder<M,java.util.Map<java.lang.String,java.lang.String>,MappingBuilder<M>>
,ColumnRenderer<M,java.util.Map<java.lang.String,java.lang.String>>
,ValueRendererFactory<M,ValueInput>
,MappingBuilder<M>
public class MappingBuilderImpl<M> extends AbstractBuilder<M,java.util.Map<java.lang.String,java.lang.String>,ValueInput,MappingBuilder<M>> implements MappingBuilder<M>
MappingBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MappingBuilderImpl(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)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValueInput
createInput(ValueInputContext<M,java.util.Map<java.lang.String,java.lang.String>> 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
-
MappingBuilderImpl
public MappingBuilderImpl(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)
Instantiate.- Parameters:
label
- Label.getSources
-Function
to extract the sources from the model.getTargets
-Function
to extract the targets from the model.
-
-
Method Detail
-
createInput
protected ValueInput createInput(ValueInputContext<M,java.util.Map<java.lang.String,java.lang.String>> context)
Description copied from class:AbstractBuilder
Creates the inputValueInput
for theObservableValue
.- Specified by:
createInput
in classAbstractBuilder<M,java.util.Map<java.lang.String,java.lang.String>,ValueInput,MappingBuilder<M>>
- Parameters:
context
-ValueInputContext
.- Returns:
ValueInput
to configure theObservableValue
.
-
-