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 interface
AdaptedChildBuilder.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
.void
label(java.util.function.Function<M,java.lang.String> getLabel, E... labelChangeEvents)
Registers a read-only label for theModel
.void
label(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
-Function
to get the label from theModel
.setLabel
-AdaptedChildBuilder.LabelChange
.labelChangeEvents
-Enum
events fired by theModel
for 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
-Function
to get the children from theModel
.childrenEvents
-Enum
events fired by theModel
for children changes.- Returns:
ChildrenGroupBuilder
.
-
-