public class AbstractBean
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Implements the methods required for adding and removing property change listeners.
Modifier and Type | Field and Description |
---|---|
protected java.beans.PropertyChangeSupport |
propertySupport |
Constructor and Description |
---|
AbstractBean() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a
PropertyChangeListener which can optionally be wrapped
into a WeakPropertyChangeListener . |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a
PropertyChangeListener which can optionally be wrapped
into a WeakPropertyChangeListener . |
AbstractBean |
clone() |
protected void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue) |
protected void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue) |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue) |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a
PropertyChangeListener . |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a
PropertyChangeListener . |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
which can optionally be wrapped
into a WeakPropertyChangeListener
.listener
- public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
PropertyChangeListener
which can optionally be wrapped
into a WeakPropertyChangeListener
.listener
- public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
. If the listener was added
wrapped into a WeakPropertyChangeListener
, the
WeakPropertyChangeListener
is removed.listener
- public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
PropertyChangeListener
. If the listener was added
wrapped into a WeakPropertyChangeListener
, the
WeakPropertyChangeListener
is removed.listener
- protected void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
protected void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public AbstractBean clone()
clone
in class java.lang.Object
public java.beans.PropertyChangeListener[] getPropertyChangeListeners()