|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtj.core.model.ModelChangedEvent
public class ModelChangedEvent
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.mtj.core.model.IModelChangedEvent |
|---|
CHANGE, INSERT, REMOVE, WORLD_CHANGED |
| Constructor Summary | |
|---|---|
ModelChangedEvent(IModelChangeProvider provider,
int type,
Object[] objects,
String changedProperty)
The constructor of the event. |
|
ModelChangedEvent(IModelChangeProvider provider,
Object object,
String changedProperty,
Object oldValue,
Object newValue)
A constructor that should be used for changes of object properties. |
|
| Method Summary | |
|---|---|
Object[] |
getChangedObjects()
Returns an array of model objects that are affected by the change. |
String |
getChangedProperty()
Returns a name of the object's property that has been changed if change type is CHANGE. |
IModelChangeProvider |
getChangeProvider()
Returns the provider that fired this event. |
int |
getChangeType()
Returns the type of change that occurred in the model (one of INSERT, REMOVE, CHANGE or
WORLD_CHANGED ). |
Object |
getNewValue()
When model change is of type CHANGE, this method is used to
obtain the new value of the property (after the change). |
Object |
getOldValue()
When model change is of type CHANGE, this method is used to
obtain the old value of the property (before the change). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelChangedEvent(IModelChangeProvider provider,
int type,
Object[] objects,
String changedProperty)
provider - the change providertype - the event typeobjects - the changed objectschangedProperty - or null if not applicable
public ModelChangedEvent(IModelChangeProvider provider,
Object object,
String changedProperty,
Object oldValue,
Object newValue)
provider - the event providerobject - affected objectchangedProperty - changed property of the affected objectoldValue - the value before the changenewValue - the value after the change| Method Detail |
|---|
public Object[] getChangedObjects()
IModelChangedEvent
getChangedObjects in interface IModelChangedEventpublic String getChangedProperty()
IModelChangedEvent
getChangedProperty in interface IModelChangedEventnull
if type is not CHANGE or if more than one property has been
changed.public IModelChangeProvider getChangeProvider()
IModelChangedEvent
getChangeProvider in interface IModelChangedEventpublic int getChangeType()
IModelChangedEventINSERT, REMOVE, CHANGE or
WORLD_CHANGED ).
getChangeType in interface IModelChangedEventpublic Object getNewValue()
IModelChangedEventCHANGE, this method is used to
obtain the new value of the property (after the change).
getNewValue in interface IModelChangedEventpublic Object getOldValue()
IModelChangedEventCHANGE, this method is used to
obtain the old value of the property (before the change).
getOldValue in interface IModelChangedEvent
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||