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(javax.swing.undo.UndoableEdit edit)
          Add an undoable edit.
 void redo()
          Redo the last undoed 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 undoed action.


addEdit

boolean addEdit(javax.swing.undo.UndoableEdit edit)
Add an undoable edit.

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


Copyright © 2009 JTheque. All Rights Reserved.