Package net.officefloor.gef.editor
Interface AdaptedParentBuilder<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>
-
- All Superinterfaces:
AdaptedChildBuilder<R,O,M,E>,AdaptedConnectableBuilder<R,O,M,E>
- All Known Implementing Classes:
AdaptedParentFactory
public interface AdaptedParentBuilder<R extends Model,O,M extends Model,E extends java.lang.Enum<E>> extends AdaptedChildBuilder<R,O,M,E>
Builder of anAdaptedParent.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.officefloor.gef.editor.AdaptedChildBuilder
AdaptedChildBuilder.LabelChange<M extends Model>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaction(ModelAction<R,O,M> action, AdaptedActionVisualFactory visualFactory)Configures anModelActionfor the parentModel.<AM extends Model,AE extends java.lang.Enum<AE>,RE extends java.lang.Enum<RE>>
AdaptedAreaBuilder<R,O,AM,AE>area(AM areaPrototype, java.util.function.Function<M,java.util.List<AM>> getAreas, java.util.function.Function<AM,org.eclipse.gef.geometry.planar.Dimension> getDimension, java.util.function.BiConsumer<AM,org.eclipse.gef.geometry.planar.Dimension> setDimension, E... changeAreaEvents)Adds anAdaptedArea.voidcreate(ModelAction<R,O,M> provideParentAction)Configures creating theModel.-
Methods inherited from interface net.officefloor.gef.editor.AdaptedChildBuilder
children, label, label
-
Methods inherited from interface net.officefloor.gef.editor.AdaptedConnectableBuilder
connectMany, connectOne, getConfigurationPath, getModelClass, style
-
-
-
-
Method Detail
-
create
void create(ModelAction<R,O,M> provideParentAction)
Configures creating theModel.- Parameters:
provideParentAction-ModelActionto provide parent.
-
action
void action(ModelAction<R,O,M> action, AdaptedActionVisualFactory visualFactory)
Configures anModelActionfor the parentModel.- Parameters:
action-ModelAction.visualFactory-AdaptedActionVisualFactory.
-
area
<AM extends Model,AE extends java.lang.Enum<AE>,RE extends java.lang.Enum<RE>> AdaptedAreaBuilder<R,O,AM,AE> area(AM areaPrototype, java.util.function.Function<M,java.util.List<AM>> getAreas, java.util.function.Function<AM,org.eclipse.gef.geometry.planar.Dimension> getDimension, java.util.function.BiConsumer<AM,org.eclipse.gef.geometry.planar.Dimension> setDimension, E... changeAreaEvents)
Adds anAdaptedArea.- Type Parameters:
AM-Modeltype.AE-Modelevent type.RE- RootModelevent type.- Parameters:
areaPrototype- Prototype of areaModelto obtain theModelclass.getAreas-Functionto obtain the areaModelinstances.getDimension- Obtains theDimensionof the area from theModel.setDimension- Loads theDimensionof the area onto theModel.changeAreaEvents-Enumevents on parentModelabout change in areaModellisting.- Returns:
AdaptedAreaBuilderto build theAdaptedAreaover theModel.
-
-