public abstract class SwingTokenEdit<T> extends LibrAlignSwingAlignmentEdit<T>
SwingUndoAlignmentModel
Modifier and Type | Field and Description |
---|---|
protected int |
beginIndex |
protected String |
sequenceID |
protected Collection<? extends T> |
tokens |
Constructor and Description |
---|
SwingTokenEdit(SwingUndoAlignmentModel<T> provider,
String sequenceID,
int beginIndex,
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 String |
getOperationName() |
String |
getPresentationName() |
String |
getSequenceID()
Returns the sequence ID this edit deals with.
|
Collection<? extends T> |
getTokens()
Returns the list of tokens this edit deals with.
|
getProvider, registerDocumentChange
addEdit, canRedo, canUndo, die, getIsSubedit, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, setIsSubedit, undo
protected String sequenceID
protected int beginIndex
protected Collection<? extends T> tokens
public SwingTokenEdit(SwingUndoAlignmentModel<T> provider, String sequenceID, int beginIndex, Collection<? extends T> tokens)
public String getSequenceID()
public int getBeginIndex()
public Collection<? extends T> getTokens()
SwingSetTokensEdit
.protected abstract String getOperationName()
public String getPresentationName()