br.edu.fei.dcc.raciocinioespacial.editor.shapes.model
Class ModelElement

java.lang.Object
  extended by br.edu.fei.dcc.raciocinioespacial.editor.shapes.model.ModelElement
All Implemented Interfaces:
java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource
Direct Known Subclasses:
Shape, ShapesDiagram

public abstract class ModelElement
extends java.lang.Object
implements org.eclipse.ui.views.properties.IPropertySource, java.io.Serializable

Abstract prototype of our elements model.

This class gives the needed resources for all elements that may be created.

See Also:
Serialized Form

Constructor Summary
ModelElement()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Add a PropertyChangeListener not null for the object.
 java.lang.Object getEditableValue()
          Return itself!
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
          Classes, which will heritage from this class, must implement this method.
 java.lang.Object getPropertyValue(java.lang.Object id)
          Classes, which will heritage from this class, must implement this method.
 boolean isPropertySet(java.lang.Object id)
          Classes, which will heritage from this class, must implement this method.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Remove a PropertyChangeListener.
 void resetPropertyValue(java.lang.Object id)
          Classes, which will heritage from this class, must implement this method.
 void setPropertyValue(java.lang.Object id, java.lang.Object value)
          Classes, which will heritage from this class, must implement this method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelElement

public ModelElement()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener not null for the object.


getEditableValue

public java.lang.Object getEditableValue()
Return itself!

Specified by:
getEditableValue in interface org.eclipse.ui.views.properties.IPropertySource

getPropertyDescriptors

public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
Classes, which will heritage from this class, must implement this method.

Specified by:
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object id)
Classes, which will heritage from this class, must implement this method.

Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

isPropertySet

public boolean isPropertySet(java.lang.Object id)
Classes, which will heritage from this class, must implement this method.

Specified by:
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySource

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener.


resetPropertyValue

public void resetPropertyValue(java.lang.Object id)
Classes, which will heritage from this class, must implement this method.

Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

setPropertyValue

public void setPropertyValue(java.lang.Object id,
                             java.lang.Object value)
Classes, which will heritage from this class, must implement this method.

Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource