public class SwingConcreteAddSequenceEdit<T> extends SwingSequenceEdit<T> implements SwingAddSequenceEdit
AlignmentModel.SwingUndoAlignmentModelsequenceID| 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() |
getSequenceIDgetModel, registerDocumentChangeaddEdit, canRedo, canUndo, die, getIsSubedit, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, setIsSubeditpublic 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.UndoableEditredo in class AbstractDocumentEditjavax.swing.undo.CannotRedoExceptionpublic void undo() throws javax.swing.undo.CannotUndoException
undo in interface javax.swing.undo.UndoableEditundo in class AbstractDocumentEditjavax.swing.undo.CannotUndoExceptionpublic java.lang.String getPresentationName()
getPresentationName in interface javax.swing.undo.UndoableEditpublic java.lang.String getNewSequenceID()
SwingAddSequenceEditgetNewSequenceID in interface SwingAddSequenceEditnull of this edit has never been executed