org.malai.undo
Interface UndoHandler

All Known Subinterfaces:
ActionHandler, 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 UndoHandler

This handler must help objet that want to be aware of undone/redone event (for instance, to update some widgets).
This file is part of libMalai. Copyright (c) 2009-2012 Arnaud BLOUIN libMalan 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. libMalan 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 onUndoableAdded(Undoable undoable)
          Actions to do when an undoable object is added to the undo register.
 void onUndoableRedo(Undoable undoable)
          Actions to do when an undoable object is redone.
 void onUndoableUndo(Undoable undoable)
          Actions to do when an undoable object is undone.
 

Method Detail

onUndoableAdded

void onUndoableAdded(Undoable undoable)
Actions to do when an undoable object is added to the undo register.

Parameters:
undoable - The undoable object added to the undo register.
Since:
0.2

onUndoableUndo

void onUndoableUndo(Undoable undoable)
Actions to do when an undoable object is undone.

Parameters:
undoable - The undone object.
Since:
0.2

onUndoableRedo

void onUndoableRedo(Undoable undoable)
Actions to do when an undoable object is redone.

Parameters:
undoable - The redone object.
Since:
0.2