java.lang.Objectjava.beans.PropertyChangeSupport
javax.swing.event.SwingPropertyChangeSupport
public final class SwingPropertyChangeSupport
This subclass of java.beans.PropertyChangeSupport is almost identical in functionality. The only difference is if constructed with SwingPropertyChangeSupport(sourceBean, true) it ensures listeners are only ever notified on the
Event Dispatch Thread
.
This subclass of java.beans.PropertyChangeSupport is identical in functionality -- it sacrifices thread-safety (not a Swing concern) for reduce memory consumption, which helps performance (both big Swing concerns). Most of the overridden methods are only necessary because all of PropertyChangeSupport's instance data is private, without accessor methods.
Constructor Summary | |
---|---|
SwingPropertyChangeSupport
(
Object
sourceBean) Constructs a SwingPropertyChangeSupport object. |
|
![]() ![]() ![]() ![]() |
Method Summary | |
---|---|
![]() |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() |
Methods inherited from class java.lang. Object |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Constructor Detail |
---|
public SwingPropertyChangeSupport(Object sourceBean)
public
SwingPropertyChangeSupport
(
Object
sourceBean, boolean notifyOnEDT)
![]() |
---|
public void
firePropertyChange
(
PropertyChangeEvent
evt)
If
isNotifyOnEDT()
is true and called off the
Event Dispatch Thread
this implementation uses SwingUtilities.invokeLater to send out the notification on the
Event Dispatch Thread
. This ensures listeners are only ever notified on the
Event Dispatch Thread
.
public final boolean
isNotifyOnEDT
()