|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.editor.WeakPropertyChangeSupport
The WeakPropertyChangeSupport
is based on the
PropertyChangeSupport
, but uses
WeakReferences
to store listener references. This
allows the listener to get garbage collected without having to
detach explicitly.
Constructor Summary | |
WeakPropertyChangeSupport(java.lang.Object source)
Construct a new WeakPropertyChangeSupport . |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to listening for
property changes. |
void |
firePropertyChange(java.beans.PropertyChangeEvent event)
Fire a PropertyChangeEvent indicating that the given
property has changed. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fire a PropertyChangeEvent indicating that the given
property has changed. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener so that it no longer
receives property changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WeakPropertyChangeSupport(java.lang.Object source)
WeakPropertyChangeSupport
. The
given source is used as the source for
PropertyChangeEvents
.
source
- the source of property changesMethod Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
to listening for
property changes.
listener
- the listener to addpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
so that it no longer
receives property changes.
listener
- the listener to removepublic void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
PropertyChangeEvent
indicating that the given
property has changed. Note that if the values are equal, the
event will not be fired.
propertyName
- the name of the propertyoldValue
- the old valuenewValue
- the new valuepublic void firePropertyChange(java.beans.PropertyChangeEvent event)
PropertyChangeEvent
indicating that the given
property has changed. Note that if the the values are equal,
the event will not be fired.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.