public abstract class SwingTokenEdit<T> extends LibrAlignSwingAlignmentEdit<T>
SwingUndoAlignmentModel
Modifier and Type | Field and Description |
---|---|
protected int |
beginIndex |
protected java.lang.String |
sequenceID |
protected java.util.Collection<? extends T> |
tokens |
Constructor and Description |
---|
SwingTokenEdit(SwingUndoAlignmentModel<T> provider,
java.lang.String sequenceID,
int beginIndex,
java.util.Collection<? extends T> tokens) |
Modifier and Type | Method and Description |
---|---|
int |
getBeginIndex()
Returns the index in the sequence where this token edit is taking place.
|
protected abstract java.lang.String |
getOperationName() |
java.lang.String |
getPresentationName() |
java.lang.String |
getSequenceID()
Returns the sequence ID this edit deals with.
|
java.util.Collection<? extends T> |
getTokens()
Returns the list of tokens this edit deals with.
|
getModel, registerDocumentChange
addEdit, canRedo, canUndo, die, getIsSubedit, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, setIsSubedit, undo
protected java.lang.String sequenceID
protected int beginIndex
public SwingTokenEdit(SwingUndoAlignmentModel<T> provider, java.lang.String sequenceID, int beginIndex, java.util.Collection<? extends T> tokens)
public java.lang.String getSequenceID()
public int getBeginIndex()
public java.util.Collection<? extends T> getTokens()
SwingSetTokensEdit
.protected abstract java.lang.String getOperationName()
public java.lang.String getPresentationName()