Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.undo.AbstractUndoableEdit
An abstract implementation of UndoableEdit, implementing simple responses to all boolean methods in that interface.
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.RedoName. |
String |
getUndoPresentationName()
If getPresentationName() returns "", returns AbstractUndoableEdit.UndoName. |
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()
Returns a string that displays and identifies this object's properties. |
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()
CompoundEdit.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(javax.swing.undo.UndoableEdit)
public boolean replaceEdit(UndoableEdit anEdit)
UndoableEdit.replaceEdit(javax.swing.undo.UndoableEdit)
public boolean isSignificant()
UndoableEdit.isSignificant()
public String getPresentationName()
getUndoPresentationName()
,
getRedoPresentationName()
public String getUndoPresentationName()
getPresentationName()
public String getRedoPresentationName()
getPresentationName()
public String toString()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |