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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 readatom
- 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
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 namesource
- the source object to useprop
- the PropertyStatusReader
- Returns:
- property value