Package io.guise.framework.event
Class CommandEvent
java.lang.Object
java.util.EventObject
com.globalmentor.event.AbstractEvent
io.guise.framework.event.AbstractGuiseEvent
io.guise.framework.event.AbstractInputEvent
io.guise.framework.event.AbstractFocusedInputEvent
io.guise.framework.event.CommandEvent
- All Implemented Interfaces:
com.globalmentor.event.Event
,FocusedInputEvent
,GuiseEvent
,InputEvent
,Serializable
A focused event providing information on an input user command.
- Author:
- Garret Wilson
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionCommandEvent
(Object source, CommandEvent commandEvent) Copy constructor that specifies a different source.CommandEvent
(Object source, Command command) Command constructor.CommandEvent
(Object source, CommandInput commandInput) Command input constructor. -
Method Summary
Methods inherited from class io.guise.framework.event.AbstractInputEvent
consume, isConsumed
Methods inherited from class io.guise.framework.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
Methods inherited from interface io.guise.framework.event.GuiseEvent
getSession
Methods inherited from interface io.guise.framework.event.InputEvent
consume, isConsumed
-
Constructor Details
-
CommandEvent
Command constructor.- Parameters:
source
- The object on which the event initially occurred.command
- The command.- Throws:
NullPointerException
- if the given source and/or command isnull
.
-
CommandEvent
Command input constructor.- Parameters:
source
- The object on which the event initially occurred.commandInput
- The command input the properties of which will be copied.- Throws:
NullPointerException
- if the given source and/or input isnull
.
-
CommandEvent
Copy constructor that specifies a different source.- Parameters:
source
- The object on which the event initially occurred.commandEvent
- The event the properties of which will be copied.- Throws:
NullPointerException
- if the given source and/or event isnull
.
-
-
Method Details
-
getCommand
- Returns:
- The command.
-
getInput
- Returns:
- The input associated with this event, or
null
if there is no input associated with this event.
-