|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.biojava.utils.ChangeEvent
public class ChangeEvent
Event which encapsulates a change in any mutable BioJava object.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ChangeEvent(Object source,
ChangeType type)
Construct a ChangeEvent with no change details. |
|
ChangeEvent(Object source,
ChangeType type,
Object change)
Construct a ChangeEvent specifying a new value for a property, or an object to be added to a collection. |
|
ChangeEvent(Object source,
ChangeType type,
Object change,
Object previous)
Construct a ChangeEvent specifying a new value for a property, and giving the previous value. |
|
ChangeEvent(Object source,
ChangeType type,
Object change,
Object previous,
ChangeEvent chain)
Construct a ChangeEvent to be fired because another ChangeEvent has been received from a property object. |
Method Summary | |
---|---|
ChangeEvent |
getChainedEvent()
Return the event which caused this to be fired, or null
if this change was not caused by another event. |
Object |
getChange()
Return an object which is to be the new value of some property, or is to be added to a collection. |
Object |
getPrevious()
Return the old value of a property being changed. |
ChangeType |
getType()
Find the type of this event. |
String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChangeEvent(Object source, ChangeType type)
source
- The object being changed.type
- The type of change being made.public ChangeEvent(Object source, ChangeType type, Object change)
source
- The object being changed.type
- The type of change being made.change
- The new value of the property being changed.public ChangeEvent(Object source, ChangeType type, Object change, Object previous)
source
- The object being changed.type
- The type of change being made.change
- The new value of the property being changed.previous
- The old value of the property being changed.public ChangeEvent(Object source, ChangeType type, Object change, Object previous, ChangeEvent chain)
source
- The object being changed.type
- The type of change being made.change
- The new value of the property being changed.previous
- The old value of the property being changed.chain
- The event which caused this event to be fired.Method Detail |
---|
public ChangeType getType()
public Object getChange()
null
is this is not meaningful.
public Object getPrevious()
null
is this is not meaningful.
public ChangeEvent getChainedEvent()
null
if this change was not caused by another event.
public String toString()
toString
in class EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |