Package org.apache.pivot.beans
Class BeanMonitor
- java.lang.Object
-
- org.apache.pivot.beans.BeanMonitor
-
public class BeanMonitor extends java.lang.Object
Class for monitoring Java bean property changes.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LISTENERS_SUFFIX
static java.lang.String
PROPERTY_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.Object
getBean()
Returns the bean object that this monitor wraps.ListenerList<PropertyChangeListener>
getPropertyChangeListeners()
boolean
isNotifying(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:
true
if the property fires change events;false
otherwise.
-
getPropertyChangeListeners
public ListenerList<PropertyChangeListener> getPropertyChangeListeners()
-
-