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.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | notifyOnEDT
whether to notify listeners on EDT |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.2 for interoperability.
|
| Access | Constructor and Description |
|---|---|
| public | SwingPropertyChangeSupport(Object
The bean to be given as the source for any
events. sourceBean)Constructs a SwingPropertyChangeSupport object. |
| public | SwingPropertyChangeSupport(Object
the bean to be given as the source for any events sourceBean, boolean whether to notify listeners on the Event
Dispatch Thread only notifyOnEDT)Constructs a SwingPropertyChangeSupport object. |
| Modifier and Type | Method and Description |
|---|---|
| public void | firePropertyChange(final PropertyChangeEvent evt)
Overrides java. Fires a property change event to listeners that have been registered to track updates of all properties or a property with the specified name. |
| public boolean |
| notifyOnEDT | back to summary |
|---|---|
| private final boolean notifyOnEDT whether to notify listeners on EDT
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.2 for interoperability. | |
| SwingPropertyChangeSupport | back to summary |
|---|---|
| public SwingPropertyChangeSupport(Object sourceBean) Constructs a SwingPropertyChangeSupport object.
| |
| SwingPropertyChangeSupport | back to summary |
|---|---|
| public SwingPropertyChangeSupport(Object sourceBean, boolean notifyOnEDT) Constructs a SwingPropertyChangeSupport object.
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(final PropertyChangeEvent evt) Overrides java. Doc from java. Fires a property change event to listeners that have been registered to track updates of all properties or a property with the specified name. No event is fired if the given event's old and new values are equal and non-null.
If
| |
| isNotifyOnEDT | back to summary |
|---|---|
| public boolean isNotifyOnEDT() Returns
| |