be.ac.vub.cocompose.eclipse.model.datatypes
Class DimensionPropertySource

java.lang.Object
  extended bybe.ac.vub.cocompose.eclipse.model.datatypes.DimensionPropertySource
All Implemented Interfaces:
IPropertySource

public class DimensionPropertySource
extends Object
implements IPropertySource

Eclipse dimension property source.

Since:
0.2.0
Version:
0.2.0
Author:
Dennis Wagelaar

Field Summary
static String ID_HEIGHT
           
static String ID_WIDTH
           
 
Constructor Summary
DimensionPropertySource(Dimension dimension)
          Creates a DimensionPropertySource.
 
Method Summary
 Object getEditableValue()
           
 IPropertyDescriptor[] getPropertyDescriptors()
           
 Object getPropertyValue(Object id)
          Gets the value of the given property.
 Dimension getValue()
          Gets the value of this property source.
 boolean isPropertySet(Object id)
           
 void resetPropertyValue(Object id)
           
 void setPropertyValue(Object id, Object value)
          Sets the value of the given property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_WIDTH

public static final String ID_WIDTH
See Also:
Constant Field Values

ID_HEIGHT

public static final String ID_HEIGHT
See Also:
Constant Field Values
Constructor Detail

DimensionPropertySource

public DimensionPropertySource(Dimension dimension)
Creates a DimensionPropertySource.

Parameters:
dimension - - the subject dimension.
Method Detail

getEditableValue

public Object getEditableValue()
Specified by:
getEditableValue in interface IPropertySource
See Also:
IPropertySource.getEditableValue()

getPropertyDescriptors

public IPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface IPropertySource
See Also:
IPropertySource.getPropertyDescriptors()

getPropertyValue

public Object getPropertyValue(Object id)
Gets the value of the given property.

Specified by:
getPropertyValue in interface IPropertySource
Parameters:
id - - the property id.
Returns:
the property value or null.
See Also:
IPropertySource.getPropertyValue(java.lang.Object)

isPropertySet

public boolean isPropertySet(Object id)
Specified by:
isPropertySet in interface IPropertySource
See Also:
IPropertySource.isPropertySet(java.lang.Object)

resetPropertyValue

public void resetPropertyValue(Object id)
Specified by:
resetPropertyValue in interface IPropertySource
See Also:
IPropertySource.resetPropertyValue(java.lang.Object)

setPropertyValue

public void setPropertyValue(Object id,
                             Object value)
Sets the value of the given property.

Specified by:
setPropertyValue in interface IPropertySource
Parameters:
id - - the property id.
value - - the new value for the property.
See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)

getValue

public Dimension getValue()
Gets the value of this property source.

Returns:
the property value.