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.ChangeExecutorgetChangeExecutor()Obtains theChangeExecutor.com.google.inject.InjectorgetInjector()Obtains theInjector.MgetModel()Obtains theModel.OgetOperations()Obtains the operations.RgetRootModel()Obtains the rootModel.voidoverlay(OverlayVisualFactory overlayVisualFactory)Shows an overlay at the position of the action.Mposition(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
nullif action is to create aModel.- Returns:
AdaptedModelornull.
-
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.
-
-