KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > undo > UndoableEdit


1 /*
2    SwingWT
3    Copyright(c)2003-2004 Daniel Naab
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: dannaab@users.sourceforge.net
9
10    $Log: UndoableEdit.java,v $
11    Revision 1.2 2004/04/16 22:45:50 dannaab
12    Add copyright msg
13
14 */

15
16 package swingwtx.swing.undo;
17
18 /**
19  * UndoableEdit
20  *
21  * @author Naab
22  * @version %I%, %G%
23  */

24 public interface UndoableEdit
25 {
26     public void undo() throws CannotUndoException;
27     public boolean canUndo();
28     public void redo() throws CannotRedoException;
29     public boolean canRedo();
30     public void die();
31     public boolean addEdit(UndoableEdit anEdit);
32     public boolean replaceEdit(UndoableEdit anEdit);
33     public boolean isSignificant();
34     public String JavaDoc getPresentationName();
35     public String JavaDoc getUndoPresentationName();
36     public String JavaDoc getRedoPresentationName();
37 }
38
Popular Tags