|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
com.wirefusion.undo.UndoableStringEdit
public abstract class UndoableStringEdit
An undoable edit, used for String edits. To use this class, a subclass that implements the setValue method must be created.
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
UndoableStringEdit(java.lang.String oldValue,
java.lang.String newValue)
Constructs a new UndoableStringEdit. |
|
| Method Summary | |
|---|---|
java.lang.String |
getPresentationName()
Returns a string representation for the undoable edit. |
void |
redo()
Redoes the edit |
abstract void |
setValue(java.lang.String value)
Implementations of this method must set the field that the undoable value originates from to "value". |
void |
undo()
Undoes the edit |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UndoableStringEdit(java.lang.String oldValue,
java.lang.String newValue)
oldValue - the value before the editnewValue - the value after the edit| Method Detail |
|---|
public java.lang.String getPresentationName()
getPresentationName in interface javax.swing.undo.UndoableEditgetPresentationName in class javax.swing.undo.AbstractUndoableEditpublic abstract void setValue(java.lang.String value)
value - a value of the same type as the undoable valuepublic void undo()
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.AbstractUndoableEditpublic void redo()
redo in interface javax.swing.undo.UndoableEditredo in class javax.swing.undo.AbstractUndoableEdit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||