public class DefaultSequenceEdit extends AbstractSequenceEdit
Constructor and Description |
---|
DefaultSequenceEdit(Sequence previous,
Sequence sequence) |
DefaultSequenceEdit(Sequence previous,
Sequence sequence,
java.awt.Image icon) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo() |
void |
undo()
Throws
CannotUndoException if canUndo returns false . |
getSequence
addEdit, canUndo, die, getIcon, getPresentationName, getRedoPresentationName, getSource, getUndoPresentationName, isMergeable, isSignificant, redo, replaceEdit, setMergeable, toString
public DefaultSequenceEdit(Sequence previous, Sequence sequence, java.awt.Image icon)
public DefaultSequenceEdit(Sequence previous, Sequence sequence)
public void undo() throws javax.swing.undo.CannotUndoException
AbstractIcyUndoableEdit
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.undo
in interface javax.swing.undo.UndoableEdit
undo
in class AbstractIcyUndoableEdit
javax.swing.undo.CannotUndoException
- if canUndo
returns false
AbstractIcyUndoableEdit.canUndo()
public boolean canRedo()
canRedo
in interface javax.swing.undo.UndoableEdit
canRedo
in class AbstractIcyUndoableEdit