public class ChangeEvent extends EventObject
source
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
getSource
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.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
Copyright © 2014 BioJava. All rights reserved.