com.guiseframework.event
Class CommandEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.globalmentor.event.AbstractEvent
          extended by com.guiseframework.event.AbstractGuiseEvent
              extended by com.guiseframework.event.AbstractInputEvent
                  extended by com.guiseframework.event.AbstractFocusedInputEvent
                      extended by 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CommandEvent(java.lang.Object source, Command command)
          Command constructor.
CommandEvent(java.lang.Object source, CommandEvent commandEvent)
          Copy constructor that specifies a different source.
CommandEvent(java.lang.Object source, CommandInput commandInput)
          Command input constructor.
 
Method Summary
 Command getCommand()
          The command.
 CommandInput getInput()
           
 
Methods inherited from class com.guiseframework.event.AbstractInputEvent
consume, isConsumed
 
Methods inherited from class com.guiseframework.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.guiseframework.event.InputEvent
consume, isConsumed
 
Methods inherited from interface com.guiseframework.event.GuiseEvent
getSession
 
Methods inherited from interface com.globalmentor.event.Event
getSource
 

Constructor Detail

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.
Method Detail

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.