|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.undo.AbstractUndoableEdit
Field Summary | |
protected static String | RedoName
String returned by getRedoPresentationName() |
protected static String | UndoName
String returned by getUndoPresentationName() |
Constructor Summary | |
AbstractUndoableEdit()
|
Method Summary | |
boolean | addEdit(UndoableEdit anEdit)
This default implementation returns false. |
boolean | canRedo()
Returns true if this edit is alive and hasBeenDone is false. |
boolean | canUndo()
Returns true if this edit is alive and hasBeenDone is true. |
void | die()
Sets alive to false. |
String | getPresentationName()
This default implementation returns "". |
String | getRedoPresentationName()
If getPresentationName() returns "", returns AbstractUndoableEdit. |
String | getUndoPresentationName()
If getPresentationName() returns "", returns AbstractUndoableEdit. |
boolean | isSignificant()
This default implementation returns true. |
void | redo()
Throws CannotRedoException if canRedo() returns false. |
boolean | replaceEdit(UndoableEdit anEdit)
This default implementation returns false. |
String | toString()
|
void | undo()
Throws CannotUndoException if canUndo() returns false. |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
Field Detail |
protected static final String UndoName
protected static final String RedoName
Constructor Detail |
public AbstractUndoableEdit()
Method Detail |
public void die()
public void undo() throws CannotUndoException
canUndo()
public boolean canUndo()
die()
,
undo()
,
redo()
public void redo() throws CannotRedoException
canRedo()
public boolean canRedo()
die()
,
undo()
,
redo()
public boolean addEdit(UndoableEdit anEdit)
UndoableEdit.addEdit(com.sun.java.swing.undo.UndoableEdit)
public boolean replaceEdit(UndoableEdit anEdit)
UndoableEdit.replaceEdit(com.sun.java.swing.undo.UndoableEdit)
public boolean isSignificant()
UndoableEdit.isSignificant()
public String getPresentationName()
getUndoPresentationName()
,
getRedoPresentationName()
public String getUndoPresentationName()
getPresentationName()
public String getRedoPresentationName()
getPresentationName()
public String toString()
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |