Package net.officefloor.gef.editor
Interface AdaptedChildBuilder<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>
-
- All Superinterfaces:
AdaptedConnectableBuilder<R,O,M,E>
- All Known Subinterfaces:
AdaptedParentBuilder<R,O,M,E>
- All Known Implementing Classes:
AdaptedChildFactory,AdaptedParentFactory
public interface AdaptedChildBuilder<R extends Model,O,M extends Model,E extends java.lang.Enum<E>> extends AdaptedConnectableBuilder<R,O,M,E>
Builds anAdaptedChild.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAdaptedChildBuilder.LabelChange<M extends Model>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChildrenGroupBuilder<R,O>children(java.lang.String childGroupName, java.util.function.Function<M,java.util.List<? extends Model>> getChildren, E... childrenEvents)Registers children for theModel.voidlabel(java.util.function.Function<M,java.lang.String> getLabel, E... labelChangeEvents)Registers a read-only label for theModel.voidlabel(java.util.function.Function<M,java.lang.String> getLabel, AdaptedChildBuilder.LabelChange<M> setLabel, E... labelChangeEvents)Registers a mutable label for theModel.-
Methods inherited from interface net.officefloor.gef.editor.AdaptedConnectableBuilder
connectMany, connectOne, getConfigurationPath, getModelClass, style
-
-
-
-
Method Detail
-
label
void label(java.util.function.Function<M,java.lang.String> getLabel, E... labelChangeEvents)
Registers a read-only label for theModel.
-
label
void label(java.util.function.Function<M,java.lang.String> getLabel, AdaptedChildBuilder.LabelChange<M> setLabel, E... labelChangeEvents)
Registers a mutable label for theModel.- Parameters:
getLabel-Functionto get the label from theModel.setLabel-AdaptedChildBuilder.LabelChange.labelChangeEvents-Enumevents fired by theModelfor label changes.
-
children
ChildrenGroupBuilder<R,O> children(java.lang.String childGroupName, java.util.function.Function<M,java.util.List<? extends Model>> getChildren, E... childrenEvents)
Registers children for theModel.- Parameters:
childGroupName- Name of child group.getChildren-Functionto get the children from theModel.childrenEvents-Enumevents fired by theModelfor children changes.- Returns:
ChildrenGroupBuilder.
-
-