Package io.guise.framework.event
Class ComponentEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.globalmentor.event.AbstractEvent
-
- io.guise.framework.event.AbstractGuiseEvent
-
- io.guise.framework.event.AbstractTargetedGuiseEvent
-
- io.guise.framework.event.ComponentEvent
-
- All Implemented Interfaces:
com.globalmentor.event.Event
,com.globalmentor.event.TargetedEvent
,GuiseEvent
,java.io.Serializable
public class ComponentEvent extends AbstractTargetedGuiseEvent
An event relating to a component. The event target indicates the object that originally fired the event.- Author:
- Garret Wilson
- See Also:
CompositeComponentListener
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentEvent(java.lang.Object source, Component component)
Source and component constructor.ComponentEvent(java.lang.Object source, ComponentEvent componentEvent)
Copy constructor that specifies a different source.ComponentEvent(java.lang.Object source, java.lang.Object target, Component component)
Source, target, and component constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getComponent()
-
Methods inherited from class io.guise.framework.event.AbstractTargetedGuiseEvent
getTarget
-
Methods inherited from class io.guise.framework.event.AbstractGuiseEvent
getSession
-
-
-
-
Constructor Detail
-
ComponentEvent
public ComponentEvent(java.lang.Object source, Component component)
Source and component constructor. The target will be set to be the same as the given source.- Parameters:
source
- The object on which the event initially occurred.component
- The component affected by the event.- Throws:
java.lang.NullPointerException
- if the given source and/or component isnull
.
-
ComponentEvent
public ComponentEvent(java.lang.Object source, java.lang.Object target, Component component)
Source, target, and component constructor.- Parameters:
source
- The object on which the event initially occurred.target
- The target of the event.component
- The component affected by the event.- Throws:
java.lang.NullPointerException
- if the given source, target, and/or component isnull
.
-
ComponentEvent
public ComponentEvent(java.lang.Object source, ComponentEvent componentEvent)
Copy constructor that specifies a different source.- Parameters:
source
- The object on which the event initially occurred.componentEvent
- The event the properties of which will be copied.- Throws:
java.lang.NullPointerException
- if the given source and/or event isnull
.
-
-
Method Detail
-
getComponent
public Component getComponent()
- Returns:
- The component affected by the event.
-
-