org.malai.action
Interface ActionHandler

All Superinterfaces:
UndoHandler
All Known Subinterfaces:
ICanvas
All Known Implementing Classes:
Border, CopierCutterPaster, DrawingPropertiesCustomiser, EditingSelector, ExceptionsManager, Exporter, FileLoaderSaver, Hand, Helper, Instrument, LCanvas, MagneticGridCustomiser, MetaShapeCustomiser, Pencil, PreferencesActivator, PreferencesSetter, ScaleRulersCustomiser, Scroller, ShapeArcCustomiser, ShapeArrowCustomiser, ShapeAxesCustomiser, ShapeBorderCustomiser, ShapeCoordDimCustomiser, ShapeDeleter, ShapeDotCustomiser, ShapeDoubleBorderCustomiser, ShapeFillingCustomiser, ShapeGridCustomiser, ShapeGrouper, ShapePropertyCustomiser, ShapeRotationCustomiser, ShapeShadowCustomiser, TabSelector, TextCustomiser, TextSetter, UndoRedoManager, WidgetInstrument, Zoomer

public interface ActionHandler
extends UndoHandler

This interface allows to create a bridge between an action and an object that want to be aware about events on actions (such as creation or deletion of an action).
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN

Malai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Since:
0.1
Author:
Arnaud Blouin

Method Summary
 void onActionAborted(Action action)
          Notifies the handler when the given action is aborted.
 void onActionAdded(Action action)
          Notifies the handler when the given action is added to the registry.
 void onActionCancelled(Action action)
          Notifies the handler when the given action is cancelled.
 void onActionDone(Action action)
          Notifies the handler when the given action is done.
 void onActionExecuted(Action action)
          Notifies the handler when the given action is executed.
 
Methods inherited from interface org.malai.undo.UndoHandler
onUndoableAdded, onUndoableRedo, onUndoableUndo
 

Method Detail

onActionCancelled

void onActionCancelled(Action action)
Notifies the handler when the given action is cancelled.

Parameters:
action - The cancelled action.
Since:
0.2

onActionAdded

void onActionAdded(Action action)
Notifies the handler when the given action is added to the registry.

Parameters:
action - The added action.
Since:
0.2

onActionAborted

void onActionAborted(Action action)
Notifies the handler when the given action is aborted.

Parameters:
action - The aborted action.
Since:
0.2

onActionExecuted

void onActionExecuted(Action action)
Notifies the handler when the given action is executed.

Parameters:
action - The executed action.
Since:
0.2

onActionDone

void onActionDone(Action action)
Notifies the handler when the given action is done.

Parameters:
action - The action that ends.
Since:
0.2