|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjve.generated.ObjectReference
This class is a wrapper that references an Object: boundObject. The boundObject is noted by [Object, property]. If a property is given, the boundObject is Object.getProperty(), eithewise it boundObject == Object. A property can be nested. i.e., the boundObject for [Object, "foo.bar"] is Object.getFoo().getBar()
The ObjectReference class provide property resolution, and event modeling support for bounded properties.
| Field Summary | |
static boolean |
debug
|
| Fields inherited from interface jve.generated.IBoundObject |
DELIMITER, PROPERTY_OBJ_CHANGED |
| Constructor Summary | |
ObjectReference()
Construct an uninitialized ObjectReference |
|
ObjectReference(java.lang.Object source,
java.lang.String property)
Construct an ObjectReference initialized with its source object and property. |
|
| Method Summary | |
void |
actionPerformed(IActionBinder action)
Notify an argument of an action. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a propertyChangeListener that will listen to property changes on the object being referenced (the final object, including the value of subproperties). |
java.lang.Object |
getObject()
Get the value of this ObjectReference. |
java.lang.String |
getProperty()
Return the property of the source object being referenced by this ObjectReference |
java.lang.Object |
getSourceObject()
Get the source object that's bound to this ObjectReference |
java.lang.Class |
getType()
Get the type of the ObjectReference. |
void |
refresh()
Refresh this ObjectReference. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove an existing property change listener from the listener list. |
void |
setProperty(java.lang.String property)
Set the property to be used for this ObjectReference. |
void |
setSourceObject(java.lang.Object obj)
Set the source object this ObjectReference will be bound to. |
void |
setSourceObject(java.lang.Object object,
java.lang.String property)
Set the source object and target property simultaneously. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean debug
| Constructor Detail |
public ObjectReference()
public ObjectReference(java.lang.Object source,
java.lang.String property)
source - the source objectproperty - a property on the source object (may be null)| Method Detail |
public java.lang.String getProperty()
getProperty in interface IBoundObjectpublic void refresh()
refresh in interface IBoundObjectpublic void setProperty(java.lang.String property)
setProperty in interface IBoundObjectproperty - is the property to use on #getObjectpublic java.lang.Object getSourceObject()
getSourceObject in interface IBoundObjectpublic void setSourceObject(java.lang.Object obj)
setSourceObject in interface IBoundObjectobj - the source object
public void setSourceObject(java.lang.Object object,
java.lang.String property)
IBoundObject
setSourceObject in interface IBoundObjectobject - the source objectproperty - the target propertypublic java.lang.Object getObject()
getObject in interface IBoundObjectpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener in interface IBoundObjectl - the listener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener in interface IBoundObjectl - the listener to remove.public void actionPerformed(IActionBinder action)
IBoundObject.
actionPerformed in interface IBoundObjectaction - the action that has occurred.IActionBinder
public java.lang.Class getType()
throws java.lang.IllegalStateException
getType in interface IBoundObjectjava.lang.IllegalStateException - if the target object can not be determined due to a
miss-configuration. The exception includes a message denoting the reason.public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||