Package Class Use Tree Index Help 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 ObjectReferenceObjectReference(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).protected void addPropertyListeners()
protected void firePropertyChanged(java.beans.PropertyChangeEvent event)
protected void firePropertyChanged(java.lang.String property, java.lang.Object oldVal, java.lang.Object newVal)
protected java.lang.String getErrorMessage()
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 ObjectReferenceprotected java.lang.Object getPureSourceObject()
Get the final source object being referenced.java.lang.Object getSourceObject()
Get the source object that's bound to this ObjectReferencejava.lang.Class getType()
Get the type of the ObjectReference.protected void log(java.lang.String s)
protected void log(java.lang.Throwable t)
The log(xxx) methods are called in case of a failure.void refresh()
Refresh this ObjectReference.protected void refreshPropertyHelper()
Create and cache a new PropertyHelper to reflect the current source object and property.void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove an existing property change listener from the listener list.protected void removePropertyListeners()
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 clone, equals, finalize, 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)
Method Detail
protected void log(java.lang.Throwable t)
protected void log(java.lang.String s)
public java.lang.String getProperty()
protected java.lang.Object getPureSourceObject()
protected void refreshPropertyHelper()
public void refresh()
public void setProperty(java.lang.String property)
public java.lang.Object getSourceObject()
protected void removePropertyListeners()
protected void addPropertyListeners()
public void setSourceObject(java.lang.Object obj)
public void setSourceObject(java.lang.Object object, java.lang.String property)
public java.lang.Object getObject()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
public void actionPerformed(IActionBinder action)
protected void firePropertyChanged(java.lang.String property, java.lang.Object oldVal, java.lang.Object newVal)
protected void firePropertyChanged(java.beans.PropertyChangeEvent event)
public java.lang.Class getType() throws java.lang.IllegalStateException
protected java.lang.String getErrorMessage()
public java.lang.String toString()
Package Class Use Tree Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD