com.guiseframework.event
Class AbstractTargetedGuiseEvent
java.lang.Object
java.util.EventObject
com.globalmentor.event.AbstractEvent
com.guiseframework.event.AbstractGuiseEvent
com.guiseframework.event.AbstractTargetedGuiseEvent
- All Implemented Interfaces:
- com.globalmentor.event.Event, com.globalmentor.event.TargetedEvent, GuiseEvent, java.io.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:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Method Summary |
java.lang.Object |
getTarget()
Returns the object to which the event applies. |
| 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 |
AbstractTargetedGuiseEvent
public AbstractTargetedGuiseEvent(java.lang.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:
java.lang.NullPointerException - if the given source is null.
AbstractTargetedGuiseEvent
public AbstractTargetedGuiseEvent(java.lang.Object source,
java.lang.Object target)
- Source and target constructor.
- Parameters:
source - The object on which the event initially occurred.target - The target of the event.
- Throws:
java.lang.NullPointerException - if the given source and/or target is null.
getTarget
public java.lang.Object getTarget()
- Returns the object to which the event applies.
This may be a different than source, which is the object that generated this event instance.
- Specified by:
getTarget in interface com.globalmentor.event.TargetedEvent
- Returns:
- The target of the event.
Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.