- java.lang.Object
-
- net.officefloor.gef.editor.internal.models.AdaptedAction<R,O,M>
-
public class AdaptedAction<R extends Model,O,M extends Model> extends java.lang.Object
AdaptedModelAction
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AdaptedAction(ModelAction<R,O,M> action, ModelActionContext<R,O,M> actionContext, AdaptedActionVisualFactory visualFactory, AdaptedErrorHandler errorHandler)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.Node
createVisual(AdaptedActionVisualFactoryContext context)
Creates the visual.void
execute()
Executes theAdaptedAction
.
-
-
-
Constructor Detail
-
AdaptedAction
public AdaptedAction(ModelAction<R,O,M> action, ModelActionContext<R,O,M> actionContext, AdaptedActionVisualFactory visualFactory, AdaptedErrorHandler errorHandler)
Instantiate.- Parameters:
action
-ModelAction
.actionContext
-ModelActionContext
.visualFactory
-AdaptedActionVisualFactory
.errorHandler
-AdaptedErrorHandler
.
-
-
Method Detail
-
execute
public void execute()
Executes theAdaptedAction
.
-
createVisual
public javafx.scene.Node createVisual(AdaptedActionVisualFactoryContext context)
Creates the visual.- Parameters:
context
-AdaptedActionVisualFactoryContext
.- Returns:
- Visual.
-
-