com.ibm.able
Class AblePropertyConnection
java.lang.Object
|
+--com.ibm.able.AblePropertyConnection
- public class AblePropertyConnection
- extends java.lang.Object
- implements java.io.Serializable
This class defines a PropertyChange connection between an AbleBean
property and another AbleBean listener and its corresponding
property. When the source bean fires a PropertyChangeEvent, the
changed value gets sent to the target bean using its setter method.
- Version:
- $Revision: 1.3 $, $Date: 2000/04/04 13:58:26 $
- See Also:
- Serialized Form
Constructor Summary |
AblePropertyConnection(AbleBean source,
java.lang.String srcPropertyName,
AbleBean targetObject,
java.lang.String targetPropertyName)
Create a property connection, 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. |
AblePropertyConnection(AbleBean source,
java.lang.String propertyName,
java.lang.String getterName,
AbleBean targetObject,
java.lang.String setterName)
Create a property connection, 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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
sourceObj
protected AbleBean sourceObj
destObj
protected AbleBean destObj
getter
protected transient java.lang.reflect.Method getter
setter
protected transient java.lang.reflect.Method setter
setterName
protected java.lang.String setterName
getterName
protected java.lang.String getterName
srcPropertyName
protected java.lang.String srcPropertyName
targetPropertyName
protected java.lang.String targetPropertyName
valid
protected boolean valid
AblePropertyConnection
public AblePropertyConnection(AbleBean source,
java.lang.String propertyName,
java.lang.String getterName,
AbleBean targetObject,
java.lang.String setterName)
- Create a property connection, 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.
This method assumes source and target has same name.
Note: this is not currently used!!!
AblePropertyConnection
public AblePropertyConnection(AbleBean source,
java.lang.String srcPropertyName,
AbleBean targetObject,
java.lang.String targetPropertyName)
- Create a property connection, 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.
This method uses BeanInfo to resolve the getter/setter methods.
getSource
public AbleBean getSource()
getDest
public AbleBean getDest()
getSrcPropertyName
public java.lang.String getSrcPropertyName()
getTargetPropertyName
public java.lang.String getTargetPropertyName()
getSetterName
public java.lang.String getSetterName()
getSetter
public java.lang.reflect.Method getSetter()
getGetter
public java.lang.reflect.Method getGetter()
toString
public java.lang.String toString()
- return the property connection formatted as a string for display
- Overrides:
- toString in class java.lang.Object
ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'