|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.binding.support.PropertyChangeSupportUtils
public abstract class PropertyChangeSupportUtils
Consists exclusively of static convenience methods for adding
and removing PropertyChangeListener
s for bound
JavaBean properties.
TODO: Move this code into BeanUtils
Constructor Summary | |
---|---|
PropertyChangeSupportUtils()
|
Method Summary | |
---|---|
static void |
addPropertyChangeListener(Object bean,
String propertyName,
PropertyChangeListener listener)
Adds a named property change listener to the given JavaBean. |
static void |
removePropertyChangeListener(Object bean,
String propertyName,
PropertyChangeListener listener)
Removes a named property change listener to the given JavaBean. |
static boolean |
supportsBoundProperties(Class beanClass)
Checks and answers whether the given class supports bound properties, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyChangeSupportUtils()
Method Detail |
---|
public static boolean supportsBoundProperties(Class beanClass)
public void addPropertyChangeListener(String, PropertyChangeListener); public void removePropertyChangeListener(String, PropertyChangeListener);
beanClass
- the class to test
public static void addPropertyChangeListener(Object bean, String propertyName, PropertyChangeListener listener)
public void addPropertyChangeListener(String, PropertyChangeListener);
bean
- the JavaBean to add a property change handlerpropertyName
- the name of the property to be observedlistener
- the listener to add
PropertyNotBindableException
- if the property change handler cannot be added successfullypublic static void removePropertyChangeListener(Object bean, String propertyName, PropertyChangeListener listener)
public void removePropertyChangeHandler(String, PropertyChangeListener);
bean
- the bean to remove the property change listener frompropertyName
- the name of the observed propertylistener
- the listener to remove
FatalBeanException
- if the property change handler cannot be removed successfully
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |