org.pietschy.command
Class CommandEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.pietschy.command.CommandEvent
All Implemented Interfaces:
java.io.Serializable

public class CommandEvent
extends java.util.EventObject

Fired both before and after a command executes.

See Also:
ActionCommand, ActionCommand.addCommandListener(org.pietschy.command.CommandListener), Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CommandEvent(Command source)
          Constructs a new event for the specified Command.
 
Method Summary
 ActionCommand getCommand()
          Gets the Command being executed.
 
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
 

Constructor Detail

CommandEvent

public CommandEvent(Command source)
Constructs a new event for the specified Command.

Parameters:
source - the Command that is being executed.
Method Detail

getCommand

public ActionCommand getCommand()
Gets the Command being executed.

Returns:
the Command being executed.