javax.swing.text
Class StringContent.InsertUndo
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.text.StringContent.InsertUndo
- All Implemented Interfaces:
- Serializable, UndoableEdit
- Enclosing class:
- StringContent
- class StringContent.InsertUndo
- extends AbstractUndoableEdit
UnoableEdit created for inserts.
Method Summary |
void |
redo()
Throws CannotRedoException if canRedo
returns false. |
void |
undo()
Throws CannotUndoException if canUndo
returns false . |
offset
protected int offset
length
protected int length
string
protected String string
posRefs
protected Vector posRefs
StringContent.InsertUndo
protected StringContent.InsertUndo(int offset,
int length)
undo
public void undo()
throws CannotUndoException
- Description copied from class:
AbstractUndoableEdit
- Throws
CannotUndoException
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.
- Specified by:
undo
in interface UndoableEdit
- Overrides:
undo
in class AbstractUndoableEdit
- Throws:
CannotUndoException
- if canUndo
returns false
- See Also:
AbstractUndoableEdit.canUndo()
redo
public void redo()
throws CannotRedoException
- Description copied from class:
AbstractUndoableEdit
- Throws
CannotRedoException
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.
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class AbstractUndoableEdit
- Throws:
CannotRedoException
- if canRedo
returns false
- See Also:
AbstractUndoableEdit.canRedo()