| java.lang.Object fr.aliacom.bean.BeanUtils
BeanUtils | final public class BeanUtils (Code) | | This class provides some utility methods
to work with JavaBeans.
Those methods provide read/write access to properties
and allow property change listener management.
author: tom author: (C) 2001, 2002 Thomas Cataldo |
addPropertyChangeListener | public static void addPropertyChangeListener(Object javaBean, String property, PropertyChangeListener pcl)(Code) | | Try to add a property change listener to a JavaBean.
The method returns silently when the bean does not support
property change notifications.
The listener is added through reflexivity. It checks the existance
of an addPropertyChangeListener(String, PropertyChangeListener)
method.
Parameters: javaBean - the bean Parameters: property - Parameters: pcl - |
getValue | public static Object getValue(Object bean, String property)(Code) | | Returns the value of a property in a java bean.
This will throw a runtime exception if the property does not exist.
Parameters: bean - the java bean Parameters: property - the property to query the value of the property in the bean. |
removePropertyChangeListener | public static void removePropertyChangeListener(Object javaBean, String property, PropertyChangeListener pcl)(Code) | | Removes a propertyChangeListener from
a JavaBean using reflexivity.
Parameters: javaBean - Parameters: property - Parameters: pcl - |
setValue | public static void setValue(Object bean, String property, Object value)(Code) | | Sets the value of a property in a JavaBean.
Method setValue.
Parameters: bean - Parameters: property - Parameters: value - |
|
|