1 7 8 package javax.swing.undo; 9 10 import javax.swing.event.*; 11 12 19 20 public interface UndoableEdit { 21 24 public void undo() throws CannotUndoException ; 25 26 29 public boolean canUndo(); 30 31 34 public void redo() throws CannotRedoException ; 35 36 39 public boolean canRedo(); 40 41 53 public void die(); 54 55 71 public boolean addEdit(UndoableEdit anEdit); 72 73 87 public boolean replaceEdit(UndoableEdit anEdit); 88 89 98 public boolean isSignificant(); 99 100 104 public String getPresentationName(); 105 106 111 public String getUndoPresentationName(); 112 113 118 public String getRedoPresentationName(); 119 } 120 | Popular Tags |