|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.actf.model.events.ModelChangeEvent
public class ModelChangeEvent
an event object fired by IModel
instances
IModel
,
Serialized FormField Summary | |
---|---|
protected int |
eventType
|
protected Object |
newValue
|
static int |
NODE_INSERTED
|
static int |
NODE_MODIFIED
|
static int |
NODE_REMOVED
|
protected Object |
oldValue
|
protected String |
propName
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ModelChangeEvent(Object targetElement,
int eventType)
create a new model change event with the targetElement as the event source. |
|
ModelChangeEvent(Object targetElement,
int eventType,
String propName,
Object oldValue,
Object newValue)
create a model change event. |
Method Summary | |
---|---|
int |
getEventType()
get the type of event |
String |
getModifiedPropertyName()
get the name of the property that was modified |
Object |
getNewValue()
get the new value of the modified property |
Object |
getOldValue()
get the former value of the modified property |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NODE_INSERTED
public static final int NODE_REMOVED
public static final int NODE_MODIFIED
protected String propName
protected int eventType
protected Object oldValue
protected Object newValue
Constructor Detail |
---|
public ModelChangeEvent(Object targetElement, int eventType)
targetElement
- eventType
- one of the constants in this classpublic ModelChangeEvent(Object targetElement, int eventType, String propName, Object oldValue, Object newValue)
NODE_MODIFIED
.
targetElement
- source of event within the modelpropName
- name of property modifiedoldValue
- newValue
- Method Detail |
---|
public int getEventType()
public String getModifiedPropertyName()
public Object getOldValue()
public Object getNewValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |