Package net.officefloor.gef.editor
Interface ModelActionContext<R extends Model,O,M extends Model>
-
- All Known Implementing Classes:
AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable
,AdaptedAreaFactory.AdaptedAreaImpl
,AdaptedChildFactory.AdaptedChildImpl
,AdaptedConnectionFactory.AdaptedConnectionImpl
,AdaptedParentFactory.AdaptedParentImpl
public interface ModelActionContext<R extends Model,O,M extends Model>
Context for theModelAction
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdaptedModel<M>
getAdaptedModel()
Obtains theAdaptedModel
.ChangeExecutor
getChangeExecutor()
Obtains theChangeExecutor
.com.google.inject.Injector
getInjector()
Obtains theInjector
.M
getModel()
Obtains theModel
.O
getOperations()
Obtains the operations.R
getRootModel()
Obtains the rootModel
.void
overlay(OverlayVisualFactory overlayVisualFactory)
Shows an overlay at the position of the action.M
position(M model)
Convenience method to position theModel
.
-
-
-
Method Detail
-
getOperations
O getOperations()
Obtains the operations.- Returns:
- Operations.
-
getAdaptedModel
AdaptedModel<M> getAdaptedModel()
Obtains the
AdaptedModel
.Will only be
null
if action is to create aModel
.- Returns:
AdaptedModel
ornull
.
-
overlay
void overlay(OverlayVisualFactory overlayVisualFactory)
Shows an overlay at the position of the action.- Parameters:
overlayVisualFactory
-OverlayVisualFactory
.
-
getChangeExecutor
ChangeExecutor getChangeExecutor()
Obtains theChangeExecutor
.- Returns:
ChangeExecutor
.
-
getInjector
com.google.inject.Injector getInjector()
Obtains theInjector
.- Returns:
Injector
.
-
-