Class TextBuilderImpl<M>
- java.lang.Object
-
- net.officefloor.gef.configurer.internal.AbstractBuilder<M,java.lang.String,ValueInput,TextBuilder<M>>
-
- net.officefloor.gef.configurer.internal.inputs.TextBuilderImpl<M>
-
- All Implemented Interfaces:
Builder<M,java.lang.String,TextBuilder<M>>
,ColumnRenderer<M,java.lang.String>
,ValueRendererFactory<M,ValueInput>
,TextBuilder<M>
public class TextBuilderImpl<M> extends AbstractBuilder<M,java.lang.String,ValueInput,TextBuilder<M>> implements TextBuilder<M>
TextBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description TextBuilderImpl(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.String> column, javafx.util.Callback<java.lang.Integer,javafx.beans.value.ObservableValue<java.lang.String>> callback)
Allow overriding to configure theTableColumn
.protected javafx.beans.property.Property<java.lang.String>
createCellProperty()
Creates theProperty
for theTableCell
.protected ValueInput
createInput(ValueInputContext<M,java.lang.String> context)
Creates the inputValueInput
for theObservableValue
.TextBuilder<M>
multiline(boolean isMultiline)
Indicates whether the text may contain multiple lines.-
Methods inherited from class net.officefloor.gef.configurer.internal.AbstractBuilder
createCellRenderer, createErrorFeedback, createLabel, createTableColumn, createValueRenderer, getError, getLabel, init, isEditable, setValue, validate
-
-
-
-
Method Detail
-
multiline
public TextBuilder<M> multiline(boolean isMultiline)
Description copied from interface:TextBuilder
Indicates whether the text may contain multiple lines.- Specified by:
multiline
in interfaceTextBuilder<M>
- Parameters:
isMultiline
-true
to display multiple lines of text.- Returns:
this
.
-
createInput
protected ValueInput createInput(ValueInputContext<M,java.lang.String> context)
Description copied from class:AbstractBuilder
Creates the inputValueInput
for theObservableValue
.- Specified by:
createInput
in classAbstractBuilder<M,java.lang.String,ValueInput,TextBuilder<M>>
- Parameters:
context
-ValueInputContext
.- Returns:
ValueInput
to configure theObservableValue
.
-
createCellProperty
protected javafx.beans.property.Property<java.lang.String> createCellProperty()
Description copied from class:AbstractBuilder
Creates theProperty
for theTableCell
.- Overrides:
createCellProperty
in classAbstractBuilder<M,java.lang.String,ValueInput,TextBuilder<M>>
- Returns:
Property
for theTableCell
.
-
configureTableColumn
protected <R> void configureTableColumn(javafx.scene.control.TableView<R> table, javafx.scene.control.TableColumn<R,java.lang.String> column, javafx.util.Callback<java.lang.Integer,javafx.beans.value.ObservableValue<java.lang.String>> callback)
Description copied from class:AbstractBuilder
Allow overriding to configure theTableColumn
.- Overrides:
configureTableColumn
in classAbstractBuilder<M,java.lang.String,ValueInput,TextBuilder<M>>
- Type Parameters:
R
- Row object type.- Parameters:
table
-TableView
that will contain theTableColumn
.column
-TableColumn
.callback
-Callback
.
-
-