All Packages Class Hierarchy This Package Previous Next Index
Class sunw.beanbox.PropertyHookup
java.lang.Object
|
+----sunw.beanbox.PropertyHookup
- public class PropertyHookup
- extends Object
- implements PropertyChangeListener, Serializable
-
PropertyHookup(Object)
- Constructor for a new property hookup adaptor.
-
attach(Object, String, Method, Object, Method)
- Create a property hookup, so that a change to the named bound
property on the source object turns into a call on the "setter"
method of the given target object.
-
attach(String, Object, Method)
- Version of the above for when the objects have been initialized somehow
-
getSetterMethod(Object)
-
-
getTargetObject(Object)
-
-
getTargetsByProperty()
-
-
propertyChange(PropertyChangeEvent)
- This is the method that gets called when a bound property
changes on the source object.
-
vetoablePropertyChange(PropertyChangeEvent)
-
PropertyHookup
public PropertyHookup(Object source)
- Constructor for a new property hookup adaptor.
attach
public void attach(Object source,
String propertyName,
Method getter,
Object targetObject,
Method setter)
- Create a property hookup, so that a change to the named bound
property on the source object turns into a call on the "setter"
method of the given target object.
attach
public void attach(String propertyName,
Object targetObject,
Method setter)
- Version of the above for when the objects have been initialized somehow
propertyChange
public synchronized void propertyChange(PropertyChangeEvent evt)
- This is the method that gets called when a bound property
changes on the source object.
We map the property name to a list of targets and then
call each of the target "setter" methods.
vetoablePropertyChange
public void vetoablePropertyChange(PropertyChangeEvent evt) throws PropertyVetoException
getTargetsByProperty
public Hashtable getTargetsByProperty()
getTargetObject
public Object getTargetObject(Object o)
getSetterMethod
public Method getSetterMethod(Object o)
All Packages Class Hierarchy This Package Previous Next Index