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 void
action(ModelAction<R,O,M> action, AdaptedActionVisualFactory visualFactory)
Configures anModelAction
for 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
.void
create(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
-ModelAction
to provide parent.
-
action
void action(ModelAction<R,O,M> action, AdaptedActionVisualFactory visualFactory)
Configures anModelAction
for 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
-Model
type.AE
-Model
event type.RE
- RootModel
event type.- Parameters:
areaPrototype
- Prototype of areaModel
to obtain theModel
class.getAreas
-Function
to obtain the areaModel
instances.getDimension
- Obtains theDimension
of the area from theModel
.setDimension
- Loads theDimension
of the area onto theModel
.changeAreaEvents
-Enum
events on parentModel
about change in areaModel
listing.- Returns:
AdaptedAreaBuilder
to build theAdaptedArea
over theModel
.
-
-