com.guiseframework.event
Class CommandEvent
java.lang.Object
java.util.EventObject
com.globalmentor.event.AbstractEvent
com.guiseframework.event.AbstractGuiseEvent
com.guiseframework.event.AbstractInputEvent
com.guiseframework.event.AbstractFocusedInputEvent
com.guiseframework.event.CommandEvent
- All Implemented Interfaces:
- com.globalmentor.event.Event, FocusedInputEvent, GuiseEvent, InputEvent, java.io.Serializable
public class CommandEvent
- extends AbstractFocusedInputEvent
A focused event providing information on an input user command.
- Author:
- Garret Wilson
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
| 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 |
CommandEvent
public CommandEvent(java.lang.Object source,
Command command)
- Command constructor.
- Parameters:
source - The object on which the event initially occurred.command - The command.
- Throws:
java.lang.NullPointerException - if the given source and/or command is null.
CommandEvent
public CommandEvent(java.lang.Object source,
CommandInput commandInput)
- 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:
java.lang.NullPointerException - if the given source and/or input is null.
CommandEvent
public CommandEvent(java.lang.Object source,
CommandEvent 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:
java.lang.NullPointerException - if the given source and/or event is null.
getCommand
public Command getCommand()
- The command.
getInput
public CommandInput getInput()
- Returns:
- The command input associated with this event.
Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.