|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.text.GapContent.RemoveUndo
UndoableEdit created for removes.
| Field Summary | |
protected int |
length
Length of string removed. |
protected int |
offset
Where the string was removed from. |
protected Vector |
posRefs
An array of instances of UndoPosRef for the Positions in the range that was removed, valid before undo. |
protected String |
string
The string that was removed. |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
| Constructor Summary | |
protected |
GapContent.RemoveUndo(int offset,
String string)
|
| Method Summary | |
void |
redo()
Throws CannotRedoException if canRedo
returns false. |
void |
undo()
Throws CannotUndoException if canUndo
returns false. |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int offset
protected int length
protected String string
protected Vector posRefs
| Constructor Detail |
protected GapContent.RemoveUndo(int offset,
String string)
| Method Detail |
public void undo()
throws CannotUndoException
AbstractUndoableEditCannotUndoException if canUndo
returns false. Sets hasBeenDone
to false. Subclasses should override to undo the
operation represented by this edit. Override should begin with
a call to super.
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoException - if canUndo
returns falseAbstractUndoableEdit.canUndo()
public void redo()
throws CannotRedoException
AbstractUndoableEditCannotRedoException if canRedo
returns false. Sets hasBeenDone to true.
Subclasses should override to redo the operation represented by
this edit. Override should begin with a call to super.
redo in interface UndoableEditredo in class AbstractUndoableEditCannotRedoException - if canRedo
returns falseAbstractUndoableEdit.canRedo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||