gishur.gui2.adapter
Class PropertyPropertyAdapter

java.lang.Object
  |
  +--gishur.gui2.SourcePropertyAdapter
        |
        +--gishur.gui2.adapter.PropertyPropertyAdapter

public class PropertyPropertyAdapter
extends SourcePropertyAdapter

A SourcePropertyAdapter, that reads another property from another given DrawAtom.

Version:
1.0
Author:
Thomas Wolf

Constructor Summary
PropertyPropertyAdapter(java.lang.String name)
          Constructs a new PropertyPropertyAdapter with the specified source-property-name.
PropertyPropertyAdapter(java.lang.String name, DrawAtom atom)
          Constructs a new PropertyPropertyAdapter with the specified source-property-name and source-DrawAtom.
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyPropertyAdapter

public PropertyPropertyAdapter(java.lang.String name,
                               DrawAtom atom)
Constructs a new PropertyPropertyAdapter with the specified source-property-name and source-DrawAtom.
Parameters:
name - the name of the source property to read
atom - the DrawAtom, where to read the property from

PropertyPropertyAdapter

public PropertyPropertyAdapter(java.lang.String name)
Constructs a new PropertyPropertyAdapter with the specified source-property-name.
Parameters:
name - the name of the source property to read
Method Detail

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