|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.editor.WeakPropertyChangeSupport
public final class 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 changes| Method 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 remove
public 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.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||