|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.AblePropertyConnection
The AblePropertyConnection defines a serializable 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 by its setter method.
Field Summary | |
---|---|
protected AbleBean |
destObj
The bean listening for properties changing in the sourceObj . |
protected java.lang.reflect.Method |
getter
The method used to obtain the value of the property srcPropertyName in the sourceObj . |
protected java.lang.String |
getterName
The name of the method used to obtain the value of the property srcPropertyName . |
protected java.lang.reflect.Method |
setter
The method used to set the value of the property targetPropertyName in the destObj . |
protected java.lang.String |
setterName
The name of the method used to set the value of the property targetPropertyName . |
protected AbleBean |
sourceObj
The bean owning the property whose value is changing. |
protected java.lang.String |
srcPropertyName
The property of interest in the sourceObj . |
protected java.lang.String |
targetPropertyName
The property to be changed in the destObj when the srcPropertyName changes. |
protected boolean |
valid
true if connection is valid - otherwise false . |
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()
Returns the bean listening for changes to the property of interest. |
java.lang.reflect.Method |
getGetter()
Returns the method which provides the value of the property of interest. |
java.lang.reflect.Method |
getSetter()
Returns the method used to update the listening bean when the property of interest changes. |
java.lang.String |
getSetterName()
Returns the name of the method used to update the listening bean when the property of interest changes. |
AbleBean |
getSource()
Returns the bean which owns the property of interest. |
java.lang.String |
getSrcPropertyName()
Returns the name of the property of interest. |
java.lang.String |
getTargetPropertyName()
Returns the name of the property to be updated in the listening bean when the property of interest changes. |
java.lang.String |
toString()
Returns the property connection formatted as a string for display in the format: sourceBeanName:sourcePropertyName...targetBeanName:targetPropertyName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AbleBean sourceObj
protected AbleBean destObj
sourceObj
.protected transient java.lang.reflect.Method getter
srcPropertyName
in the sourceObj
.protected transient java.lang.reflect.Method setter
targetPropertyName
in the destObj
.protected java.lang.String getterName
srcPropertyName
.protected java.lang.String setterName
targetPropertyName
.protected java.lang.String srcPropertyName
sourceObj
.protected java.lang.String targetPropertyName
destObj
when the srcPropertyName
changes.protected boolean valid
true
if connection is valid - otherwise false
.Constructor Detail |
public AblePropertyConnection(AbleBean source, java.lang.String propertyName, java.lang.String getterName, AbleBean targetObject, java.lang.String setterName) throws AbleException
This constructor assumes the source srcPropertyName
and
target targetPropertyName
have the same name.
source
- The bean owning the property of interest.propertyName
- The property of interest in that source bean.getterName
- The name of the method which returns the property of interest.targetObject
- The bean listening for changes in the specified property.setterName
- The method to be called on listening bean's when the specified property changes.AbleException
- If an error occurs,such as when there is no 'getter' method for
the source or there is no 'setter' method for the target for the specified
property name.public AblePropertyConnection(AbleBean source, java.lang.String srcPropertyName, AbleBean targetObject, java.lang.String targetPropertyName) throws java.rmi.RemoteException
This constructor uses introspection to resolve the getter/setter methods.
source
- The bean owning the property of interest.srcPropertyName
- The property of interest in that source bean.targetObject
- The bean listening for changes in the specified property.targetPropertyName
- The property to be set in the target bean.AbleException
- If an error occurs,such as when there is no 'getter' method for
the source or there is no 'setter' method for the target for the specified
property name.Method Detail |
public AbleBean getSource()
public AbleBean getDest()
public java.lang.String getSrcPropertyName()
public java.lang.String getTargetPropertyName()
public java.lang.String getSetterName()
public java.lang.reflect.Method getSetter()
public java.lang.reflect.Method getGetter()
public java.lang.String toString()
toString
in class java.lang.Object
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |