com.taco.swinger
Class SwingNotificationStrategy

java.lang.Object
  extended by com.taco.data.AbstractNotificationStrategy
      extended by com.taco.swinger.SwingNotificationStrategy
All Implemented Interfaces:
INotificationStrategy, java.io.Serializable

public class SwingNotificationStrategy
extends AbstractNotificationStrategy
implements java.io.Serializable

A notification strategy that notifies each listener using the event-dispatching thread.

See Also:
Serialized Form

Nested Class Summary
protected static class SwingNotificationStrategy.NotifyTask
          A task which notifies a listener of an event.
 
Field Summary
static SwingNotificationStrategy instance
          The singleton instance of this class.
 
Constructor Summary
protected SwingNotificationStrategy()
          Since this class is implemented as a singleton, its sole constructor is protected.
 
Method Summary
 void notifyListeners(java.beans.PropertyChangeEvent event, java.util.Collection listeners, IObjectFilter listenerFilter)
          Notify all listeners of a new property change event.
 
Methods inherited from class com.taco.data.AbstractNotificationStrategy
notifyListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final SwingNotificationStrategy instance
The singleton instance of this class.

Constructor Detail

SwingNotificationStrategy

protected SwingNotificationStrategy()
Since this class is implemented as a singleton, its sole constructor is protected.

Method Detail

notifyListeners

public void notifyListeners(java.beans.PropertyChangeEvent event,
                            java.util.Collection listeners,
                            IObjectFilter listenerFilter)
Notify all listeners of a new property change event. If this thread is the event dispatch thread, they will be notified immediately. Otherwise, the notification event will be queued on the event dispatch thread.

Specified by:
notifyListeners in interface INotificationStrategy