|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.dtools.statechart.model.ModelElement
public abstract class ModelElement
This software is distributed under the BSD License.
This code is partially based on code that is copyright (c) 2004 Elias Volanakis. See License.txt Abstract prototype of a model element.This class provides features necessary for all model elements, like:
Constructor Summary | |
---|---|
ModelElement()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Attach a non-null PropertyChangeListener to this object. |
java.lang.Object |
getEditableValue()
Returns a value for this property source that can be edited in a property sheet. |
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Children should override this. |
java.lang.Object |
getPropertyValue(java.lang.Object id)
Children should override this. |
boolean |
isPropertySet(java.lang.Object id)
Children should override this. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from this component. |
void |
resetPropertyValue(java.lang.Object id)
Children should override this. |
void |
setPropertyValue(java.lang.Object id,
java.lang.Object value)
Children should override this. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelElement()
Method Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- a non-null PropertyChangeListener instance
java.lang.IllegalArgumentException
- if the parameter is nullpublic java.lang.Object getEditableValue()
My personal rule of thumb:
Override only if necessary.
getEditableValue
in interface org.eclipse.ui.views.properties.IPropertySource
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface org.eclipse.ui.views.properties.IPropertySource
public java.lang.Object getPropertyValue(java.lang.Object id)
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
public boolean isPropertySet(java.lang.Object id)
isPropertySet
in interface org.eclipse.ui.views.properties.IPropertySource
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- a PropertyChangeListener instancepublic void resetPropertyValue(java.lang.Object id)
resetPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
public void setPropertyValue(java.lang.Object id, java.lang.Object value)
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |