apollo.editor
Class AnnotationUpdateEvent
java.lang.Object
java.util.EventObject
apollo.editor.FeatureChangeEvent
apollo.editor.AnnotationChangeEvent
apollo.editor.AnnotationUpdateEvent
- All Implemented Interfaces:
- UpdateDetailsI, java.io.Serializable
public class AnnotationUpdateEvent
- extends AnnotationChangeEvent
- implements UpdateDetailsI
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class apollo.editor.AnnotationChangeEvent |
addTransaction, getAnnotTop, getChangedAnnot, getChangeTop, getChildChangeEvent, getDeletedFeature, getNumberOfChildren, getOldId, getOldString, getParentFeature, getSubpartRank, isCommentChange, isStringChange, isUndo, setDeletedFeature, setOldId, setOldString, setSubpartRank, toString |
| Methods inherited from class apollo.editor.FeatureChangeEvent |
getAddedFeature, getChangedFeature, getOperation, getReplacedFeature, getSource, getSubpart, hasSubpart, isAdd, isCompound, isDelete, isEndOfEditSession, isExonChange, isMerge, isRootAnnotChange, isSplit, isSync, isTranscriptChange, setChangeTop, setParentFeature, setReplacedFeature |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnnotationUpdateEvent
public AnnotationUpdateEvent(UpdateTransaction trans)
- New way of doing annotation change events - they are just carriers of
transactions. This deals with all the redundancy between annotation change
events and transactions.
AnnotationUpdateEvent
public AnnotationUpdateEvent(java.lang.Object source,
AnnotatedFeatureI updateFeat,
TransactionSubpart subpart)
AnnotationUpdateEvent
public AnnotationUpdateEvent(java.lang.Object source,
AnnotatedFeatureI updateFeat,
TransactionSubpart subpart,
boolean singularEvent)
isUpdate
public boolean isUpdate()
- Description copied from class:
FeatureChangeEvent
- Default false - overridden by AnnotationUpdateEvent
- Overrides:
isUpdate in class FeatureChangeEvent
isMove
public boolean isMove()
- A "move" is when a parent is updated
- Specified by:
isMove in interface UpdateDetailsI- Overrides:
isMove in class FeatureChangeEvent
getOperationAsString
protected java.lang.String getOperationAsString()
- Overrides:
getOperationAsString in class FeatureChangeEvent
getUpdateDetails
public UpdateDetailsI getUpdateDetails()
- generic way to get details of update
- Overrides:
getUpdateDetails in class FeatureChangeEvent
isStringUpdate
public boolean isStringUpdate()
- Specified by:
isStringUpdate in interface UpdateDetailsI
getOldParent
public SeqFeatureI getOldParent()
- Specified by:
getOldParent in interface UpdateDetailsI
isRangeUpdate
public boolean isRangeUpdate()
- Specified by:
isRangeUpdate in interface UpdateDetailsI
getOldRange
public RangeI getOldRange()
- Specified by:
getOldRange in interface UpdateDetailsI
getNewSequencingErrorPosition
public int getNewSequencingErrorPosition()
- Specified by:
getNewSequencingErrorPosition in interface UpdateDetailsI
getOldInt
public int getOldInt()
- Specified by:
getOldInt in interface UpdateDetailsI
isIntUpdate
public boolean isIntUpdate()
- Specified by:
isIntUpdate in interface UpdateDetailsI
isBooleanUpdate
public boolean isBooleanUpdate()
setOldComment
public void setOldComment(Comment oldComment)
- Description copied from class:
AnnotationChangeEvent
- For comment deletes
- Overrides:
setOldComment in class AnnotationChangeEvent
getOldComment
public Comment getOldComment()
- Specified by:
getOldComment in interface UpdateDetailsI- Overrides:
getOldComment in class AnnotationChangeEvent
isCommentUpdate
public boolean isCommentUpdate()
- Specified by:
isCommentUpdate in interface UpdateDetailsI