| java.lang.Object org.wings.util.WeakPropertyChangeSupport
WeakPropertyChangeSupport | public class WeakPropertyChangeSupport implements Serializable(Code) | | This is a utility class that can be used by beans that support bound
properties. You can use an instance of this class as a member field
of your bean and delegate various work to it.
This class is serializable. When it is serialized it will save
(and restore) any listeners that are themselves serializable. Any
non-serializable listeners will be skipped during serialization.
author: Holger Engels |
WeakPropertyChangeSupport | public WeakPropertyChangeSupport(Object sourceBean)(Code) | | Constructs a WeakPropertyChangeSupport object.
Parameters: sourceBean - The bean to be given as the source for any events. |
addPropertyChangeListener | public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code) | | Add a PropertyChangeListener to the listener list.
The listener is registered for all properties.
Parameters: listener - The PropertyChangeListener to be added |
addPropertyChangeListener | public synchronized void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code) | | Add a PropertyChangeListener for a specific property. The listener
will be invoked only when a call on firePropertyChange names that
specific property.
Parameters: propertyName - The name of the property to listen on. Parameters: listener - The PropertyChangeListener to be added |
firePropertyChange | public void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code) | | Report a bound property update to any registered listeners.
No event is fired if old and new are equal and non-null.
Parameters: propertyName - The programmatic name of the propertythat was changed. Parameters: oldValue - The old value of the property. Parameters: newValue - The new value of the property. |
firePropertyChange | public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code) | | Report an int bound property update to any registered listeners.
No event is fired if old and new are equal and non-null.
This is merely a convenience wrapper around the more general
firePropertyChange method that takes Object values.
Parameters: propertyName - The programmatic name of the propertythat was changed. Parameters: oldValue - The old value of the property. Parameters: newValue - The new value of the property. |
firePropertyChange | public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code) | | Report a boolean bound property update to any registered listeners.
No event is fired if old and new are equal and non-null.
This is merely a convenience wrapper around the more general
firePropertyChange method that takes Object values.
Parameters: propertyName - The programmatic name of the propertythat was changed. Parameters: oldValue - The old value of the property. Parameters: newValue - The new value of the property. |
firePropertyChange | public void firePropertyChange(PropertyChangeEvent evt)(Code) | | Fire an existing PropertyChangeEvent to any registered listeners.
No event is fired if the given event's old and new values are
equal and non-null.
Parameters: evt - The PropertyChangeEvent object. |
hasListeners | public synchronized boolean hasListeners(String propertyName)(Code) | | Check if there are any listeners for a specific property.
Parameters: propertyName - the property name. true if there are ore or more listeners for the given property |
removePropertyChangeListener | public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code) | | Remove a PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
Parameters: listener - The PropertyChangeListener to be removed |
removePropertyChangeListener | public synchronized void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code) | | Remove a PropertyChangeListener for a specific property.
Parameters: propertyName - The name of the property that was listened on. Parameters: listener - The PropertyChangeListener to be removed |
|
|