org.apache.pivot.beans
Class BeanMonitor

java.lang.Object
  extended by org.apache.pivot.beans.BeanMonitor

public class BeanMonitor
extends Object

Class for monitoring Java bean property changes.


Field Summary
static String LISTENERS_SUFFIX
           
static String PROPERTY_CHANGE_SUFFIX
           
 
Constructor Summary
BeanMonitor(Object bean)
           
 
Method Summary
 Object getBean()
          Returns the bean object that this monitor wraps.
 ListenerList<PropertyChangeListener> getPropertyChangeListeners()
           
 boolean isNotifying(String key)
          Tests whether a property fires change events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LISTENERS_SUFFIX

public static final String LISTENERS_SUFFIX
See Also:
Constant Field Values

PROPERTY_CHANGE_SUFFIX

public static final String PROPERTY_CHANGE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

BeanMonitor

public BeanMonitor(Object bean)
Method Detail

getBean

public Object getBean()
Returns the bean object that this monitor wraps.


isNotifying

public boolean isNotifying(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()