Class FlagBuilderImpl<M>
- java.lang.Object
-
- net.officefloor.gef.configurer.internal.AbstractBuilder<M,java.lang.Boolean,ValueInput,FlagBuilder<M>>
-
- net.officefloor.gef.configurer.internal.inputs.FlagBuilderImpl<M>
-
- All Implemented Interfaces:
Builder<M,java.lang.Boolean,FlagBuilder<M>>
,FlagBuilder<M>
,ColumnRenderer<M,java.lang.Boolean>
,ValueRendererFactory<M,ValueInput>
public class FlagBuilderImpl<M> extends AbstractBuilder<M,java.lang.Boolean,ValueInput,FlagBuilder<M>> implements FlagBuilder<M>
TextBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FlagBuilderImpl(java.lang.String label)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <R> void
configureTableColumn(javafx.scene.control.TableView<R> table, javafx.scene.control.TableColumn<R,java.lang.Boolean> column, javafx.util.Callback<java.lang.Integer,javafx.beans.value.ObservableValue<java.lang.Boolean>> callback)
Allow overriding to configure theTableColumn
.protected javafx.beans.property.Property<java.lang.Boolean>
createCellProperty()
Creates theProperty
for theTableCell
.protected ValueInput
createInput(ValueInputContext<M,java.lang.Boolean> context)
Creates the inputValueInput
for theObservableValue
.-
Methods inherited from class net.officefloor.gef.configurer.internal.AbstractBuilder
createCellRenderer, createErrorFeedback, createLabel, createTableColumn, createValueRenderer, getError, getLabel, init, isEditable, setValue, validate
-
-
-
-
Method Detail
-
createInput
protected ValueInput createInput(ValueInputContext<M,java.lang.Boolean> context)
Description copied from class:AbstractBuilder
Creates the inputValueInput
for theObservableValue
.- Specified by:
createInput
in classAbstractBuilder<M,java.lang.Boolean,ValueInput,FlagBuilder<M>>
- Parameters:
context
-ValueInputContext
.- Returns:
ValueInput
to configure theObservableValue
.
-
createCellProperty
protected javafx.beans.property.Property<java.lang.Boolean> createCellProperty()
Description copied from class:AbstractBuilder
Creates theProperty
for theTableCell
.- Overrides:
createCellProperty
in classAbstractBuilder<M,java.lang.Boolean,ValueInput,FlagBuilder<M>>
- Returns:
Property
for theTableCell
.
-
configureTableColumn
protected <R> void configureTableColumn(javafx.scene.control.TableView<R> table, javafx.scene.control.TableColumn<R,java.lang.Boolean> column, javafx.util.Callback<java.lang.Integer,javafx.beans.value.ObservableValue<java.lang.Boolean>> callback)
Description copied from class:AbstractBuilder
Allow overriding to configure theTableColumn
.- Overrides:
configureTableColumn
in classAbstractBuilder<M,java.lang.Boolean,ValueInput,FlagBuilder<M>>
- Type Parameters:
R
- Row object type.- Parameters:
table
-TableView
that will contain theTableColumn
.column
-TableColumn
.callback
-Callback
.
-
-