Class AbstractTargetedGuiseEvent

java.lang.Object
java.util.EventObject
com.globalmentor.event.AbstractEvent
io.guise.framework.event.AbstractGuiseEvent
io.guise.framework.event.AbstractTargetedGuiseEvent
All Implemented Interfaces:
com.globalmentor.event.Event, com.globalmentor.event.TargetedEvent, GuiseEvent, Serializable
Direct Known Subclasses:
ActionEvent, ComponentEvent, EditEvent, NotificationEvent

public class AbstractTargetedGuiseEvent extends AbstractGuiseEvent implements com.globalmentor.event.TargetedEvent
An abstract implementation of a Guise event that is targeted. The event target indicates the component that originally initiated the action.
Author:
Garret Wilson
See Also:
  • Constructor Details

    • AbstractTargetedGuiseEvent

      public AbstractTargetedGuiseEvent(Object source)
      Source constructor. The target will be set to be the same as the given source.
      Parameters:
      source - The object on which the event initially occurred.
      Throws:
      NullPointerException - if the given source is null.
    • AbstractTargetedGuiseEvent

      public AbstractTargetedGuiseEvent(Object source, Object target)
      Source and target constructor.
      Parameters:
      source - The object on which the event initially occurred.
      target - The target of the event.
      Throws:
      NullPointerException - if the given source and/or target is null.
  • Method Details

    • getTarget

      public Object getTarget()
      Specified by:
      getTarget in interface com.globalmentor.event.TargetedEvent