gishur.graph.gui
Class GraphElementPropertyAdapter

java.lang.Object
  |
  +--gishur.gui2.SourcePropertyAdapter
        |
        +--gishur.graph.gui.GraphElementPropertyAdapter
Direct Known Subclasses:
GraphElementPropertyExistsAdapter

public class GraphElementPropertyAdapter
extends SourcePropertyAdapter

An adapter based on SourcePropertyAdapter, that reads a special property

Version:
1.0
Author:
Thomas Wolf

Constructor Summary
GraphElementPropertyAdapter(java.lang.String propertyname)
          Constructor.
 
Method Summary
 java.lang.Object getProperty(java.lang.String key, java.lang.Object source, PropertyStatusReader prop)
          Returns a property value with a given key using the source-object (and perhaps the given PropertyStatusReader).
 java.lang.String propertyName()
          Returns the property name to read properties from.
 void setPropertyName(java.lang.String name)
          Sets the property name to read properties from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphElementPropertyAdapter

public GraphElementPropertyAdapter(java.lang.String propertyname)
Constructor.
Parameters:
propertyname - the name of the connected property at the GraphElement.
Method Detail

setPropertyName

public void setPropertyName(java.lang.String name)
Sets the property name to read properties from.
Parameters:
name - the property name

propertyName

public java.lang.String propertyName()
Returns the property name to read properties from.
Returns:
the property name

getProperty

public java.lang.Object getProperty(java.lang.String key,
                                    java.lang.Object source,
                                    PropertyStatusReader prop)
Returns a property value with a given key using the source-object (and perhaps the given PropertyStatusReader).
Overrides:
getProperty in class SourcePropertyAdapter
Parameters:
key - the property name
source - the source object to use
prop - the PropertyStatusReader
Returns:
property value