Class NotificationEvent

All Implemented Interfaces:
com.globalmentor.event.Event, com.globalmentor.event.TargetedEvent, GuiseEvent, 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:
  • Constructor Details

    • NotificationEvent

      public NotificationEvent(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:
      NullPointerException - if the given source and/or notification is null.
    • NotificationEvent

      public NotificationEvent(Object source, 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:
      NullPointerException - if the given source, target, and/or notification is null.
    • NotificationEvent

      public NotificationEvent(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:
      NullPointerException - if the given source and/or event is null.