public abstract class SwingInsertRemoveTokensEdit<T> extends SwingTokenEdit<T>
AlignmentModel.SwingUndoAlignmentModelbeginIndex, sequenceID, tokens| Constructor and Description |
|---|
SwingInsertRemoveTokensEdit(SwingUndoAlignmentModel<T> provider,
java.lang.String sequenceID,
int index)
Creates a new instance of this class used to remove a single token from a sequence.
|
SwingInsertRemoveTokensEdit(SwingUndoAlignmentModel<T> provider,
java.lang.String sequenceID,
int beginIndex,
java.util.Collection<? extends T> tokens)
Creates a new instance of this class used to insert a new set of tokens into a sequence.
|
SwingInsertRemoveTokensEdit(SwingUndoAlignmentModel<T> provider,
java.lang.String sequenceID,
int beginIndex,
int endIndex)
Creates a new instance of this class used to remove a set of tokens from a sequence.
|
SwingInsertRemoveTokensEdit(SwingUndoAlignmentModel<T> provider,
java.lang.String sequenceID,
int index,
T token)
Creates a new instance of this class used to insert a new single token into a sequence.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
insert()
Performs the insert operation (either of the new token(s) for insertions or the previously removed
token(s) for deletions).
|
protected void |
remove()
Performs the remove operation.
|
getBeginIndex, getOperationName, getPresentationName, getSequenceID, getTokensgetModel, registerDocumentChangeaddEdit, canRedo, canUndo, die, getIsSubedit, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, setIsSubedit, undopublic SwingInsertRemoveTokensEdit(SwingUndoAlignmentModel<T> provider, java.lang.String sequenceID, int beginIndex, java.util.Collection<? extends T> tokens)
provider - the data provider creating this instancesequenceID - the identifier the sequence where the token is containedbeginIndex - the index where the new tokens shall be inserted
(The first element in the sequence has the index 0.)tokens - the new tokens for the specified positionpublic SwingInsertRemoveTokensEdit(SwingUndoAlignmentModel<T> provider, java.lang.String sequenceID, int index, T token)
provider - the data provider creating this instancesequenceID - the identifier the sequence where the token is containedindex - the index where the new token shall be inserted
(The first element in the sequence has the index 0.)token - the new token for the specified positionpublic SwingInsertRemoveTokensEdit(SwingUndoAlignmentModel<T> provider, java.lang.String sequenceID, int beginIndex, int endIndex)
SwingTokenEdit.tokens during the execution of this constructor.provider - the data provider creating this instancesequenceID - the identifier the sequence where the token is containedbeginIndex - the index of the first element to be removed
(The first element in the sequence has the index 0.)endIndex - the index after the last element to be removedpublic SwingInsertRemoveTokensEdit(SwingUndoAlignmentModel<T> provider, java.lang.String sequenceID, int index)
SwingTokenEdit.tokens during the execution
of this constructor.provider - the data provider creating this instancesequenceID - the identifier the sequence where the token is containedindex - the index of the element to be removed
(The first element in the sequence has the index 0.)