org.jtheque.core.managers.undo
Interface IUndoRedoManager

All Superinterfaces:
ActivableManager, IManager
All Known Implementing Classes:
UndoRedoManager

public interface IUndoRedoManager
extends ActivableManager

An undo-redo manager specification.

Author:
Baptiste Wicht

Method Summary
 boolean addEdit(UndoableEdit edit)
          Add an UndoableEdit.
 void redo()
          Redo the last action that has been undo.
 void setRedoAction(Action redoAction)
          Set the redo action.
 void setUndoAction(Action undoAction)
          Set the undo action.
 void undo()
          Undo the last action.
 
Methods inherited from interface org.jtheque.core.managers.ActivableManager
isEnabled, setEnabled
 
Methods inherited from interface org.jtheque.core.managers.IManager
close, init, preInit
 

Method Detail

undo

void undo()
Undo the last action.


redo

void redo()
Redo the last action that has been undo.


addEdit

boolean addEdit(UndoableEdit edit)
Add an UndoableEdit.

Parameters:
edit - The edit to add.
Returns:
true if the action has been added else false.

setUndoAction

void setUndoAction(Action undoAction)
Set the undo action.

Parameters:
undoAction - The undo action.

setRedoAction

void setRedoAction(Action redoAction)
Set the redo action.

Parameters:
redoAction - The redo action.


Copyright © 2010 JTheque. All Rights Reserved.