38 |
package javax.swing.undo; |
package javax.swing.undo; |
39 |
|
|
40 |
/** |
/** |
41 |
* UndoableEdit interface |
* UndoableEdit public interface |
42 |
* @author Andrew Selkirk |
* @author Andrew Selkirk |
43 |
*/ |
*/ |
44 |
public interface UndoableEdit { |
public interface UndoableEdit { |
48 |
* @param anEdit TODO |
* @param anEdit TODO |
49 |
* @returns TODO |
* @returns TODO |
50 |
*/ |
*/ |
51 |
public boolean addEdit(UndoableEdit anEdit); |
boolean addEdit(UndoableEdit anEdit); |
52 |
|
|
53 |
/** |
/** |
54 |
* canRedo |
* canRedo |
55 |
* @returns TODO |
* @returns TODO |
56 |
*/ |
*/ |
57 |
public boolean canRedo(); |
boolean canRedo(); |
58 |
|
|
59 |
/** |
/** |
60 |
* canRedo |
* canRedo |
61 |
* @returns TODO |
* @returns TODO |
62 |
*/ |
*/ |
63 |
public boolean canUndo(); |
boolean canUndo(); |
64 |
|
|
65 |
/** |
/** |
66 |
* die |
* die |
67 |
*/ |
*/ |
68 |
public void die(); |
void die(); |
69 |
|
|
70 |
/** |
/** |
71 |
* getPresentationName |
* getPresentationName |
72 |
* @returns TODO |
* @returns TODO |
73 |
*/ |
*/ |
74 |
public String getPresentationName(); |
String getPresentationName(); |
75 |
|
|
76 |
/** |
/** |
77 |
* getRedoPresentationName |
* getRedoPresentationName |
78 |
* @returns TODO |
* @returns TODO |
79 |
*/ |
*/ |
80 |
public String getRedoPresentationName(); |
String getRedoPresentationName(); |
81 |
|
|
82 |
/** |
/** |
83 |
* getUndoPresentationName |
* getUndoPresentationName |
84 |
* @returns TODO |
* @returns TODO |
85 |
*/ |
*/ |
86 |
public String getUndoPresentationName(); |
String getUndoPresentationName(); |
87 |
|
|
88 |
/** |
/** |
89 |
* isSignificant |
* isSignificant |
90 |
* @returns TODO |
* @returns TODO |
91 |
*/ |
*/ |
92 |
public boolean isSignificant(); |
boolean isSignificant(); |
93 |
|
|
94 |
/** |
/** |
95 |
* redo |
* redo |
96 |
* @throws CannotRedoException TODO |
* @throws CannotRedoException TODO |
97 |
*/ |
*/ |
98 |
public void redo() throws CannotRedoException; |
void redo() throws CannotRedoException; |
99 |
|
|
100 |
/** |
/** |
101 |
* replaceEdit |
* replaceEdit |
102 |
* @param anEdit TODO |
* @param anEdit TODO |
103 |
* @returns TODO |
* @returns TODO |
104 |
*/ |
*/ |
105 |
public boolean replaceEdit(UndoableEdit anEdit); |
boolean replaceEdit(UndoableEdit anEdit); |
106 |
|
|
107 |
/** |
/** |
108 |
* undo |
* undo |
109 |
* @throws CannotUndoException TODO |
* @throws CannotUndoException TODO |
110 |
*/ |
*/ |
111 |
public void undo() throws CannotUndoException; |
void undo() throws CannotUndoException; |
112 |
|
|
113 |
|
|
114 |
} // UndoableEdit |
} // UndoableEdit |