|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.gui2.SourcePropertyAdapter | +--gishur.gui2.adapter.ObjectAdapter
A SourcePropertyAdapter
, that maps a palette of objects to
other objects. The objects are read via another SourcePropertyAdapter
.
Constructor Summary | |
ObjectAdapter(SourcePropertyAdapter source)
Constructs a new ObjectAdapter , which gets its objects
from the given SourcePropertyAdapter . |
|
ObjectAdapter(SourcePropertyAdapter source,
ObjectAdapter base)
Constructs a new ObjectAdapter , which gets its objects
from the given SourcePropertyAdapter . |
Method Summary | |
void |
add(java.lang.Object source,
java.lang.Object target)
Maps the given source Object to its target Object . |
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.Object |
nullValue()
Returns the value returned by reading null |
void |
setNullValue(java.lang.Object nu)
Sets the value returned by reading null |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectAdapter(SourcePropertyAdapter source, ObjectAdapter base)
ObjectAdapter
, which gets its objects
from the given SourcePropertyAdapter
.source
- SourcePropertyAdapter
to get objectsbase
- the ObjectAdapter
, which object table to sharepublic ObjectAdapter(SourcePropertyAdapter source)
ObjectAdapter
, which gets its objects
from the given SourcePropertyAdapter
.source
- SourcePropertyAdapter
to get objectMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public void setNullValue(java.lang.Object nu)
null
nu
- the value returned by reading null
public java.lang.Object nullValue()
null
null
public void add(java.lang.Object source, java.lang.Object target)
Object
to its target Object
.source
- the source Object
target
- the target Object
public java.lang.Object getProperty(java.lang.String key, java.lang.Object source, PropertyStatusReader prop)
PropertyStatusReader
).getProperty
in class SourcePropertyAdapter
key
- the property namesource
- the source object to useprop
- the PropertyStatusReader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |