Class ListBuilderImpl<M,I>
- java.lang.Object
-
- net.officefloor.gef.configurer.internal.AbstractBuilder<M,java.util.List<I>,ValueInput,ListBuilder<M,I>>
-
- net.officefloor.gef.configurer.internal.inputs.ListBuilderImpl<M,I>
-
- All Implemented Interfaces:
Builder<M,java.util.List<I>,ListBuilder<M,I>>
,ColumnRenderer<M,java.util.List<I>>
,ValueRendererFactory<M,ValueInput>
,ItemBuilder<I>
,ListBuilder<M,I>
public class ListBuilderImpl<M,I> extends AbstractBuilder<M,java.util.List<I>,ValueInput,ListBuilder<M,I>> implements ListBuilder<M,I>
ListBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ListBuilderImpl(java.lang.String label)
Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBuilder<M,I>
addItem(java.util.function.Supplier<I> itemFactory)
Provides means to add an item to the list.ValueInput
createInput(ValueInputContext<M,java.util.List<I>> context)
Creates the inputValueInput
for theObservableValue
.ListBuilder<M,I>
deleteItem()
Allows for deleting an item from the list.FlagBuilder<I>
flag(java.lang.String label)
Adds flag property to be configured.static <R> boolean
isUpdateItemAddRow(javafx.scene.control.TableCell<R,?> tableCell)
Indicates if add row (configuringTableCell
for add row).TextBuilder<I>
text(java.lang.String label)
Adds text property to be configured.-
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
-
isUpdateItemAddRow
public static <R> boolean isUpdateItemAddRow(javafx.scene.control.TableCell<R,?> tableCell)
Indicates if add row (configuringTableCell
for add row).- Type Parameters:
R
- Row object type.- Parameters:
tableCell
-TableCell
.- Returns:
true
if add row.
-
createInput
public ValueInput createInput(ValueInputContext<M,java.util.List<I>> context)
Description copied from class:AbstractBuilder
Creates the inputValueInput
for theObservableValue
.- Specified by:
createInput
in classAbstractBuilder<M,java.util.List<I>,ValueInput,ListBuilder<M,I>>
- Parameters:
context
-ValueInputContext
.- Returns:
ValueInput
to configure theObservableValue
.
-
text
public TextBuilder<I> text(java.lang.String label)
Description copied from interface:ItemBuilder
Adds text property to be configured.- Specified by:
text
in interfaceItemBuilder<M>
- Parameters:
label
- Label.- Returns:
TextBuilder
.
-
flag
public FlagBuilder<I> flag(java.lang.String label)
Description copied from interface:ItemBuilder
Adds flag property to be configured.- Specified by:
flag
in interfaceItemBuilder<M>
- Parameters:
label
- Label.- Returns:
FlagBuilder
.
-
addItem
public ListBuilder<M,I> addItem(java.util.function.Supplier<I> itemFactory)
Description copied from interface:ListBuilder
Provides means to add an item to the list.- Specified by:
addItem
in interfaceListBuilder<M,I>
- Parameters:
itemFactory
-Supplier
for the new item.- Returns:
this
.
-
deleteItem
public ListBuilder<M,I> deleteItem()
Description copied from interface:ListBuilder
Allows for deleting an item from the list.- Specified by:
deleteItem
in interfaceListBuilder<M,I>
- Returns:
this
.
-
-