public class SwingConcreteAddSequenceEdit<T> extends SwingSequenceEdit<T> implements SwingAddSequenceEdit
AlignmentModel
.SwingUndoAlignmentModel
sequenceID
Constructor and Description |
---|
SwingConcreteAddSequenceEdit(SwingUndoAlignmentModel<T> model,
java.lang.String name,
java.lang.String sequenceID)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNewSequenceID()
The ID the newly inserted sequence was assigned to.
|
java.lang.String |
getPresentationName() |
void |
redo() |
void |
undo() |
getSequenceID
getModel, registerDocumentChange
addEdit, canRedo, canUndo, die, getIsSubedit, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, setIsSubedit
public SwingConcreteAddSequenceEdit(SwingUndoAlignmentModel<T> model, java.lang.String name, java.lang.String sequenceID)
model
- the alignment model creating this editname
- the name of the new sequencesequenceID
- the ID of the new sequence (Maybe null
, of the underlying model shall create an ID for it.)public void redo() throws javax.swing.undo.CannotRedoException
redo
in interface javax.swing.undo.UndoableEdit
redo
in class AbstractDocumentEdit
javax.swing.undo.CannotRedoException
public void undo() throws javax.swing.undo.CannotUndoException
undo
in interface javax.swing.undo.UndoableEdit
undo
in class AbstractDocumentEdit
javax.swing.undo.CannotUndoException
public java.lang.String getPresentationName()
getPresentationName
in interface javax.swing.undo.UndoableEdit
public java.lang.String getNewSequenceID()
SwingAddSequenceEdit
getNewSequenceID
in interface SwingAddSequenceEdit
null
of this edit has never been executed