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>
MappingBuilderimplementation.- 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 ValueInputcreateInput(ValueInputContext<M,java.util.Map<java.lang.String,java.lang.String>> context)Creates the inputValueInputfor 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-Functionto extract the sources from the model.getTargets-Functionto 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:AbstractBuilderCreates the inputValueInputfor theObservableValue.- Specified by:
createInputin classAbstractBuilder<M,java.util.Map<java.lang.String,java.lang.String>,ValueInput,MappingBuilder<M>>- Parameters:
context-ValueInputContext.- Returns:
ValueInputto configure theObservableValue.
-
-