This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.event
class SwingPropertyChangeSupport

java.lang.Object extended by java.beans.PropertyChangeSupport extended by javax.swing.event.SwingPropertyChangeSupport
All Implemented Interfaces:
Serializable

public final class SwingPropertyChangeSupport
extends PropertyChangeSupport

This subclass of {@code java.beans.PropertyChangeSupport} is almost identical in functionality. The only difference is if constructed with {@code SwingPropertyChangeSupport(sourceBean, true)} it ensures listeners are only ever notified on the Event Dispatch Thread.


Constructor Summary

          Constructs a SwingPropertyChangeSupport object.
SwingPropertyChangeSupport(Object sourceBean, boolean notifyOnEDT)

          Constructs a SwingPropertyChangeSupport object.
 
Method Summary
 void

          Report a bound property update to any registered listeners.
 boolean

          Returns property.
 
Methods inherited from class java.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingPropertyChangeSupport

public SwingPropertyChangeSupport(Object sourceBean)
Constructs a SwingPropertyChangeSupport object.

Parameters:
sourceBean - The bean to be given as the source for any events.

SwingPropertyChangeSupport

public SwingPropertyChangeSupport(Object sourceBean,
                                  boolean notifyOnEDT)
Constructs a SwingPropertyChangeSupport object.

Parameters:
sourceBean - the bean to be given as the source for any events
notifyOnEDT - whether to notify listeners on the Event Dispatch Thread only
Method Detail

firePropertyChange

public void firePropertyChange(PropertyChangeEvent evt)
{@inheritDoc}

If {@link #isNotifyOnEDT} is {@code true} and called off the Event Dispatch Thread this implementation uses {@code SwingUtilities.invokeLater} to send out the notification on the Event Dispatch Thread. This ensures listeners are only ever notified on the Event Dispatch Thread.

Overrides:
firePropertyChange in class PropertyChangeSupport
Parameters:
evt

isNotifyOnEDT

public final boolean isNotifyOnEDT()
Returns {@code notifyOnEDT} property.

Returns:
{@code notifyOnEDT} property


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.