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

Constructor Index

 o PropertyHookup(Object)
Constructor for a new property hookup adaptor.

Method Index

 o 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.
 o attach(String, Object, Method)
Version of the above for when the objects have been initialized somehow
 o getSetterMethod(Object)
 o getTargetObject(Object)
 o getTargetsByProperty()
 o propertyChange(PropertyChangeEvent)
This is the method that gets called when a bound property changes on the source object.
 o vetoablePropertyChange(PropertyChangeEvent)

Constructors

 o PropertyHookup
 public PropertyHookup(Object source)
Constructor for a new property hookup adaptor.

Methods

 o 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.

 o attach
 public void attach(String propertyName,
                    Object targetObject,
                    Method setter)
Version of the above for when the objects have been initialized somehow

 o 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.

 o vetoablePropertyChange
 public void vetoablePropertyChange(PropertyChangeEvent evt) throws PropertyVetoException
 o getTargetsByProperty
 public Hashtable getTargetsByProperty()
 o getTargetObject
 public Object getTargetObject(Object o)
 o getSetterMethod
 public Method getSetterMethod(Object o)

All Packages  Class Hierarchy  This Package  Previous  Next  Index