Package net.officefloor.gef.configurer
Interface SelectBuilder<M,I>
-
- All Superinterfaces:
Builder<M,I,SelectBuilder<M,I>>
- All Known Implementing Classes:
SelectBuilderImpl
public interface SelectBuilder<M,I> extends Builder<M,I,SelectBuilder<M,I>>
Builder for selecting from a list.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SelectBuilder<M,I>
itemLabel(java.util.function.Function<I,java.lang.String> getLabel)
Configure obtaining label from item.
-
-
-
Method Detail
-
itemLabel
SelectBuilder<M,I> itemLabel(java.util.function.Function<I,java.lang.String> getLabel)
Configure obtaining label from item.
If not configured, will use
Object.toString()
of the item.- Parameters:
getLabel
- Function to obtain label from item.- Returns:
this
.
-
-