ABLE, Version 1.1b

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

Field Summary
protected  AbleBean destObj
           
protected  java.lang.reflect.Method getter
           
protected  java.lang.String getterName
           
protected  java.lang.reflect.Method setter
           
protected  java.lang.String setterName
           
protected  AbleBean sourceObj
           
protected  java.lang.String srcPropertyName
           
protected  java.lang.String targetPropertyName
           
protected  boolean valid
           
 
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.
 
Method Summary
 AbleBean getDest()
           
 java.lang.reflect.Method getGetter()
           
 java.lang.reflect.Method getSetter()
           
 java.lang.String getSetterName()
           
 AbleBean getSource()
           
 java.lang.String getSrcPropertyName()
           
 java.lang.String getTargetPropertyName()
           
 java.lang.String toString()
          return the property connection formatted as a string for display
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.
Method Detail

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, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'