|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
apollo.editor.FeatureChangeEvent
public abstract class FeatureChangeEvent
A controller managed event class which signals when a change is made to a set of features and what type of change occurred. Objects interested in listening for these event should implement the FeatureChangeListener interface and register with the controller.
| Field Summary | |
|---|---|
static int |
ADD
Replace these with TransactionOperation! |
static int |
DELETE
|
protected static org.apache.log4j.Logger |
logger
|
static int |
MERGE
|
protected SeqFeatureI |
parentFeature
parent only explictly set for deletes |
static int |
REDRAW
|
static int |
REPLACE
Replace means rip out the old, put in new feat |
static int |
SPLIT
|
static int |
SYNC
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
protected |
FeatureChangeEvent(java.lang.Object source)
For edit session done event. |
protected |
FeatureChangeEvent(java.lang.Object source,
SeqFeatureI changedFeature)
No subpart |
|
FeatureChangeEvent(java.lang.Object source,
SeqFeatureI changeTop,
int operation,
SeqFeatureI feature1,
SeqFeatureI feature2)
This constructor needs to be vanquished i think. |
protected |
FeatureChangeEvent(java.lang.Object source,
SeqFeatureI changedFeature,
TransactionSubpart subpart)
With subpart |
| Method Summary | |
|---|---|
SeqFeatureI |
getAddedFeature()
Convenience. |
SeqFeatureI |
getChangedFeature()
This is the feature that has been added,deleted,updated,... |
SeqFeatureI |
getChangeTop()
|
int |
getOperation()
|
protected java.lang.String |
getOperationAsString()
|
SeqFeatureI |
getParentFeature()
|
AnnotatedFeatureI |
getReplacedFeature()
Returns feature replaced for replace event. |
java.lang.Object |
getSource()
|
TransactionSubpart |
getSubpart()
Returns null if no subpart |
UpdateDetailsI |
getUpdateDetails()
Update event has a bunch of stuff - need to be able to acces this from superclass - separate UpdateDetail class with update stuff? EventDetail? for now just get the update event |
boolean |
hasSubpart()
|
boolean |
isAdd()
|
boolean |
isCompound()
whether event is a compound event - ie contains child transactions/events. |
boolean |
isDelete()
|
boolean |
isEndOfEditSession()
once compound transactions are fully in place i think this can be phased out essentially this can be seen as a hack around a lack of compound transactions. |
boolean |
isExonChange()
Replaces Object Class EXON |
boolean |
isMerge()
|
boolean |
isMove()
Move is a special case of UPDATE - updating parent subpart AnnotationUpdateEvent overrides this |
boolean |
isRootAnnotChange()
This takes place of ObjectClass ANNOTATION |
boolean |
isSplit()
|
boolean |
isSync()
|
boolean |
isTranscriptChange()
Replaces Object Class TRANSCRIPT |
boolean |
isUpdate()
Default false - overridden by AnnotationUpdateEvent |
protected void |
setChangeTop(SeqFeatureI changeTop)
|
void |
setParentFeature(SeqFeatureI parent)
Set the parent of the edited feature. |
protected void |
setReplacedFeature(AnnotatedFeatureI replacedFeature)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
public static final int ADD
public static final int DELETE
public static final int REDRAW
public static final int SYNC
public static final int SPLIT
public static final int MERGE
public static final int REPLACE
protected SeqFeatureI parentFeature
| Constructor Detail |
|---|
public FeatureChangeEvent(java.lang.Object source,
SeqFeatureI changeTop,
int operation,
SeqFeatureI feature1,
SeqFeatureI feature2)
protected FeatureChangeEvent(java.lang.Object source,
SeqFeatureI changedFeature)
protected FeatureChangeEvent(java.lang.Object source,
SeqFeatureI changedFeature,
TransactionSubpart subpart)
protected FeatureChangeEvent(java.lang.Object source)
| Method Detail |
|---|
public boolean isEndOfEditSession()
public java.lang.Object getSource()
getSource in class java.util.EventObjectpublic SeqFeatureI getChangeTop()
protected void setChangeTop(SeqFeatureI changeTop)
public int getOperation()
public boolean isRootAnnotChange()
public boolean isTranscriptChange()
public boolean isExonChange()
protected java.lang.String getOperationAsString()
public boolean isAdd()
public SeqFeatureI getAddedFeature()
public SeqFeatureI getChangedFeature()
public void setParentFeature(SeqFeatureI parent)
public SeqFeatureI getParentFeature()
public boolean isDelete()
public boolean isMerge()
public boolean isSplit()
public boolean isMove()
public AnnotatedFeatureI getReplacedFeature()
protected void setReplacedFeature(AnnotatedFeatureI replacedFeature)
public boolean isSync()
public boolean isUpdate()
public UpdateDetailsI getUpdateDetails()
public boolean hasSubpart()
public TransactionSubpart getSubpart()
public boolean isCompound()
public java.lang.String toString()
toString in class java.util.EventObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||