org.nuiton.util.beans
Class BeanUtil
java.lang.Object
org.nuiton.util.beans.BeanUtil
public class BeanUtil
- extends Object
Usefull methods around the PropertyChangeListener.
- Since:
- 1.4.1
- Author:
- tchemit
|
Constructor Summary |
protected |
BeanUtil()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADD_PROPERTY_CHANGE_LISTENER
public static final String ADD_PROPERTY_CHANGE_LISTENER
- See Also:
- Constant Field Values
REMOVE_PROPERTY_CHANGE_LISTENER
public static final String REMOVE_PROPERTY_CHANGE_LISTENER
- See Also:
- Constant Field Values
BeanUtil
protected BeanUtil()
addPropertyChangeListener
public static void addPropertyChangeListener(PropertyChangeListener listener,
Object bean)
throws InvocationTargetException,
NoSuchMethodException,
IllegalAccessException
- Add the given
listener to the given bean using the
normalized method named addPropertyChangeListener.
- Parameters:
listener - the listener to addbean - the bean on which the listener is added
- Throws:
InvocationTargetException - if could not invoke the method
addPropertyChangeListener
NoSuchMethodException - if method
addPropertyChangeListener
does not exist on given bean
IllegalAccessException - if an illegal access occurs when
invoking the method
addPropertyChangeListener
removePropertyChangeListener
public static void removePropertyChangeListener(PropertyChangeListener listener,
Object bean)
throws InvocationTargetException,
NoSuchMethodException,
IllegalAccessException
- Remove the given
listener from the given bean using the
normalized method named removePropertyChangeListener.
- Parameters:
listener - the listener to removebean - the bean on which the listener is removed
- Throws:
InvocationTargetException - if could not invoke the method
removePropertyChangeListener
NoSuchMethodException - if method
removePropertyChangeListener
does not exist on given bean
IllegalAccessException - if an illegal access occurs when
invoking the method
removePropertyChangeListener
Copyright © 2004-2010 CodeLutin. All Rights Reserved.