Class SelectBuilderImpl<M,I>
- java.lang.Object
-
- net.officefloor.gef.configurer.internal.AbstractBuilder<M,I,ValueInput,SelectBuilder<M,I>>
-
- net.officefloor.gef.configurer.internal.inputs.SelectBuilderImpl<M,I>
-
- All Implemented Interfaces:
Builder<M,I,SelectBuilder<M,I>>
,ColumnRenderer<M,I>
,ValueRendererFactory<M,ValueInput>
,SelectBuilder<M,I>
public class SelectBuilderImpl<M,I> extends AbstractBuilder<M,I,ValueInput,SelectBuilder<M,I>> implements SelectBuilder<M,I>
SelectBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SelectBuilderImpl(java.lang.String label, java.util.function.Function<M,javafx.collections.ObservableList<I>> getItems)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValueInput
createInput(ValueInputContext<M,I> context)
Creates the inputValueInput
for theObservableValue
.SelectBuilder<M,I>
itemLabel(java.util.function.Function<I,java.lang.String> getLabel)
Configure obtaining label from item.-
Methods inherited from class net.officefloor.gef.configurer.internal.AbstractBuilder
configureTableColumn, createCellProperty, createCellRenderer, createErrorFeedback, createLabel, createTableColumn, createValueRenderer, getError, getLabel, init, isEditable, setValue, validate
-
-
-
-
Method Detail
-
itemLabel
public SelectBuilder<M,I> itemLabel(java.util.function.Function<I,java.lang.String> getLabel)
Description copied from interface:SelectBuilder
Configure obtaining label from item.
If not configured, will use
Object.toString()
of the item.- Specified by:
itemLabel
in interfaceSelectBuilder<M,I>
- Parameters:
getLabel
- Function to obtain label from item.- Returns:
this
.
-
createInput
protected ValueInput createInput(ValueInputContext<M,I> context)
Description copied from class:AbstractBuilder
Creates the inputValueInput
for theObservableValue
.- Specified by:
createInput
in classAbstractBuilder<M,I,ValueInput,SelectBuilder<M,I>>
- Parameters:
context
-ValueInputContext
.- Returns:
ValueInput
to configure theObservableValue
.
-
-