Package org.apache.pivot.beans
Class BeanMonitor
- java.lang.Object
-
- org.apache.pivot.beans.BeanMonitor
-
public class BeanMonitor extends java.lang.ObjectClass for monitoring Java bean property changes.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLISTENERS_SUFFIXstatic java.lang.StringPROPERTY_CHANGE_SUFFIX
-
Constructor Summary
Constructors Constructor Description BeanMonitor(java.lang.Object bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetBean()Returns the bean object that this monitor wraps.ListenerList<PropertyChangeListener>getPropertyChangeListeners()booleanisNotifying(java.lang.String key)Tests whether a property fires change events.
-
-
-
Field Detail
-
LISTENERS_SUFFIX
public static final java.lang.String LISTENERS_SUFFIX
- See Also:
- Constant Field Values
-
PROPERTY_CHANGE_SUFFIX
public static final java.lang.String PROPERTY_CHANGE_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBean
public java.lang.Object getBean()
Returns the bean object that this monitor wraps.- Returns:
- The object we are wrapping.
-
isNotifying
public boolean isNotifying(java.lang.String key)
Tests whether a property fires change events.- Parameters:
key- The property name.- Returns:
trueif the property fires change events;falseotherwise.
-
getPropertyChangeListeners
public ListenerList<PropertyChangeListener> getPropertyChangeListeners()
-
-