com.guiseframework.event
Class NotificationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.globalmentor.event.AbstractEvent
          extended by com.guiseframework.event.AbstractGuiseEvent
              extended by com.guiseframework.event.AbstractTargetedGuiseEvent
                  extended by com.guiseframework.event.NotificationEvent
All Implemented Interfaces:
com.globalmentor.event.Event, com.globalmentor.event.TargetedEvent, GuiseEvent, java.io.Serializable

public class NotificationEvent
extends AbstractTargetedGuiseEvent

An event indicating there should be a notification message of some event or state. The event target indicates the object that originally fired the event.

Author:
Garret Wilson
See Also:
NotificationListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NotificationEvent(java.lang.Object source, Notification notification)
          Source and notification constructor.
NotificationEvent(java.lang.Object source, NotificationEvent notificationEvent)
          Copy constructor that specifies a different source.
NotificationEvent(java.lang.Object source, java.lang.Object target, Notification notification)
          Source, target, and notification constructor.
 
Method Summary
 
Methods inherited from class com.guiseframework.event.AbstractTargetedGuiseEvent
getTarget
 
Methods inherited from class com.guiseframework.event.AbstractGuiseEvent
getSession
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.globalmentor.event.Event
getSource
 

Constructor Detail

NotificationEvent

public NotificationEvent(java.lang.Object source,
                         Notification notification)
Source and notification constructor. The target will be set to be the same as the given source.

Parameters:
source - The object on which the event initially occurred.
notification - The notification information.
Throws:
java.lang.NullPointerException - if the given source and/or notification is null.

NotificationEvent

public NotificationEvent(java.lang.Object source,
                         java.lang.Object target,
                         Notification notification)
Source, target, and notification constructor.

Parameters:
source - The object on which the event initially occurred.
target - The target of the event.
notification - The notification information.
Throws:
java.lang.NullPointerException - if the given source, target, and/or notification is null.

NotificationEvent

public NotificationEvent(java.lang.Object source,
                         NotificationEvent notificationEvent)
Copy constructor that specifies a different source.

Parameters:
source - The object on which the event initially occurred.
notificationEvent - The event the properties of which will be copied.
Throws:
java.lang.NullPointerException - if the given source and/or event is null.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.