|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.common.frameworks.datamodel.DataModelEvent
public final class DataModelEvent
This event is used to communicate property changes from IDataModels to their IDataModelListeners.
This class may be instantiated; it is not intended to be subclassed.
IDataModel.addListener(IDataModelListener)
,
IDataModelListener
Field Summary | |
---|---|
static int |
ENABLE_CHG
A flag used to specify the property's enablment has changed. |
static int |
VALID_VALUES_CHG
A flag used to specify the property's valid values have changed. |
static int |
VALUE_CHG
A flag used to specify the property's value has changed. |
Constructor Summary | |
---|---|
DataModelEvent(IDataModel dataModel,
java.lang.String propertyName,
int flag)
Constructor for DataModelEvent. |
Method Summary | |
---|---|
IDataModel |
getDataModel()
Returns the IDataModel whose property has changed. |
int |
getFlag()
Returns the flag indicating the event type. |
java.lang.Object |
getProperty()
Convenience method to return the IDataModel's property. |
java.lang.String |
getPropertyName()
Returns the name of the changed property. |
DataModelPropertyDescriptor[] |
getValidPropertyDescriptors()
Convenience method to return the IDataModel property's valid property descriptors. |
boolean |
isPropertyEnabled()
Convenience method to return the IDataModel property's enablement state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VALUE_CHG
A flag used to specify the property's value has changed.
IDataModel.getProperty(String)
,
getFlag()
,
Constant Field Valuespublic static final int ENABLE_CHG
A flag used to specify the property's enablment has changed.
IDataModel.isPropertyEnabled(String)
,
getFlag()
,
Constant Field Valuespublic static final int VALID_VALUES_CHG
A flag used to specify the property's valid values have changed.
IDataModel.getValidPropertyDescriptors(String)
,
getFlag()
,
Constant Field ValuesConstructor Detail |
---|
public DataModelEvent(IDataModel dataModel, java.lang.String propertyName, int flag)
Constructor for DataModelEvent.
dataModel
- the IDataModel whose property has changedpropertyName
- the name of the changed propertyflag
- contains a flag specifiying the event typeMethod Detail |
---|
public IDataModel getDataModel()
Returns the IDataModel whose property has changed.
public java.lang.String getPropertyName()
Returns the name of the changed property.
public int getFlag()
Returns the flag indicating the event type. Valid types are:
PROPERTY_CHG
VALID_VALUES_CHG
ENABLE_CHG
public java.lang.Object getProperty()
Convenience method to return the IDataModel's property. This is equavalent to:
getDataModel().getProperty(getPropertyName())
.
IDataModel.getProperty(String)
public boolean isPropertyEnabled()
Convenience method to return the IDataModel property's enablement state. This is equavalent
to: getDataModel().isPropertyEnabled(getPropertyName())
.
IDataModel.isPropertyEnabled(String)
public DataModelPropertyDescriptor[] getValidPropertyDescriptors()
Convenience method to return the IDataModel property's valid property descriptors. This is
equavalent to: getDataModel().getValidPropertyDescriptors(getPropertyName())
.
IDataModel.getValidPropertyDescriptors(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |