apollo.editor
Class DeleteTransaction

java.lang.Object
  extended by apollo.editor.Transaction
      extended by apollo.editor.DeleteTransaction
All Implemented Interfaces:
java.io.Serializable

public class DeleteTransaction
extends Transaction

The transaction class for deleting operation in Apollo. This class can handle one SeqFeatureI only.

Author:
wgm
See Also:
Serialized Form

Field Summary
 
Fields inherited from class apollo.editor.Transaction
author, date, logger, NEW, newProperties, OLD, oldProperties
 
Constructor Summary
DeleteTransaction()
          Default Constructor.
DeleteTransaction(java.lang.Object source, SeqFeatureI feature, TransactionSubpart subpart, java.lang.Object subpartValue, int subpartRank)
           
DeleteTransaction(SeqFeatureI feature, java.lang.Object source)
           
DeleteTransaction(SeqFeatureI feature, SeqFeatureI parent)
           
DeleteTransaction(SeqFeatureI feature, SeqFeatureI parent, java.lang.Object source)
          source should come first to be consistent with add trans
DeleteTransaction(SeqFeatureI feature, TransactionSubpart subpart)
           
DeleteTransaction(SeqFeatureI feature, TransactionSubpart subpart, java.lang.Object subpartValue)
           
 
Method Summary
 void editModel()
           
 AnnotationChangeEvent generateAnnotationChangeEvent()
          sets ace source to trans source.
 AnnotationChangeEvent generateUndoChangeEvent()
          sets ace source to trans source.
 SeqFeatureI getDeletedFeature()
          Get the deleted SeqFeatureI object.
 SeqFeatureI getDeletedFeatureClone()
           
 boolean isDelete()
           
 java.lang.String oneLineSummary()
          Short (one-line) summary of the object; concise alternative to toString() that displays every instance variable set in one of the constructors, plus date and author.
 java.lang.String toString()
           
 void undo()
          for now does nothing - subclasses implement
 
Methods inherited from class apollo.editor.Transaction
addProperty, generateAnnotationChangeEvent, generateUndoChangeEvent, getAuthor, getClassString, getDate, getLeafTransactions, getNewId, getNewSplitFeature, getNewSubpartValue, getObjectClass, getOldComment, getOldId, getOldString, getOldSubpartValue, getOperation, getOperationString, getParentFeature, getParentFeatureClone, getParentTransaction, getProperty, getRank, getSeqFeature, getSeqFeatureClone, getSubpart, getSubpartRank, getSubpartString, getTransaction, hasKids, hasParentTransaction, isAdd, isAddPeptide, isCompound, isMerge, isSplit, isUpdate, isUpdateParent, setAuthor, setDate, setDate, setNewId, setNewSubpartValue, setObjectClass, setOldId, setOldSubpartValue, setOperation, setOperation, setParentFeature, setRank, setSeqFeature, setSource, setSubpart, setSubpartRank, size, subpartIsString, toString, updateClonedTranscriptIdsAndNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteTransaction

public DeleteTransaction()
Default Constructor.


DeleteTransaction

public DeleteTransaction(SeqFeatureI feature,
                         SeqFeatureI parent)

DeleteTransaction

public DeleteTransaction(SeqFeatureI feature,
                         java.lang.Object source)

DeleteTransaction

public DeleteTransaction(SeqFeatureI feature,
                         SeqFeatureI parent,
                         java.lang.Object source)
source should come first to be consistent with add trans


DeleteTransaction

public DeleteTransaction(SeqFeatureI feature,
                         TransactionSubpart subpart)

DeleteTransaction

public DeleteTransaction(SeqFeatureI feature,
                         TransactionSubpart subpart,
                         java.lang.Object subpartValue)

DeleteTransaction

public DeleteTransaction(java.lang.Object source,
                         SeqFeatureI feature,
                         TransactionSubpart subpart,
                         java.lang.Object subpartValue,
                         int subpartRank)
Method Detail

isDelete

public boolean isDelete()
Overrides:
isDelete in class Transaction

getDeletedFeature

public SeqFeatureI getDeletedFeature()
Get the deleted SeqFeatureI object.

Overrides:
getDeletedFeature in class Transaction

getDeletedFeatureClone

public SeqFeatureI getDeletedFeatureClone()

generateAnnotationChangeEvent

public AnnotationChangeEvent generateAnnotationChangeEvent()
Description copied from class: Transaction
sets ace source to trans source. subclasses override this


generateUndoChangeEvent

public AnnotationChangeEvent generateUndoChangeEvent()
Description copied from class: Transaction
sets ace source to trans source. subclasses override this


editModel

public void editModel()

undo

public void undo()
Description copied from class: Transaction
for now does nothing - subclasses implement


toString

public java.lang.String toString()
Overrides:
toString in class Transaction

oneLineSummary

public java.lang.String oneLineSummary()
Short (one-line) summary of the object; concise alternative to toString() that displays every instance variable set in one of the constructors, plus date and author.

Overrides:
oneLineSummary in class Transaction