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>
ListBuilderimplementation.- 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.ValueInputcreateInput(ValueInputContext<M,java.util.List<I>> context)Creates the inputValueInputfor 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> booleanisUpdateItemAddRow(javafx.scene.control.TableCell<R,?> tableCell)Indicates if add row (configuringTableCellfor 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 (configuringTableCellfor add row).- Type Parameters:
R- Row object type.- Parameters:
tableCell-TableCell.- Returns:
trueif add row.
-
createInput
public ValueInput createInput(ValueInputContext<M,java.util.List<I>> context)
Description copied from class:AbstractBuilderCreates the inputValueInputfor theObservableValue.- Specified by:
createInputin classAbstractBuilder<M,java.util.List<I>,ValueInput,ListBuilder<M,I>>- Parameters:
context-ValueInputContext.- Returns:
ValueInputto configure theObservableValue.
-
text
public TextBuilder<I> text(java.lang.String label)
Description copied from interface:ItemBuilderAdds text property to be configured.- Specified by:
textin interfaceItemBuilder<M>- Parameters:
label- Label.- Returns:
TextBuilder.
-
flag
public FlagBuilder<I> flag(java.lang.String label)
Description copied from interface:ItemBuilderAdds flag property to be configured.- Specified by:
flagin interfaceItemBuilder<M>- Parameters:
label- Label.- Returns:
FlagBuilder.
-
addItem
public ListBuilder<M,I> addItem(java.util.function.Supplier<I> itemFactory)
Description copied from interface:ListBuilderProvides means to add an item to the list.- Specified by:
addItemin interfaceListBuilder<M,I>- Parameters:
itemFactory-Supplierfor the new item.- Returns:
this.
-
deleteItem
public ListBuilder<M,I> deleteItem()
Description copied from interface:ListBuilderAllows for deleting an item from the list.- Specified by:
deleteItemin interfaceListBuilder<M,I>- Returns:
this.
-
-