org.pietschy.command
Class CommandManagerEvent

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

public class CommandManagerEvent
extends java.util.EventObject

Fired when a command is registered with a CommandManager.

See Also:
CommandManager.addCommandManagerListener(org.pietschy.command.CommandManagerListener), Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CommandManagerEvent(CommandManager source, Command command)
          Constructs a new event.
 
Method Summary
 Command getCommand()
          Gets the command that was registered.
 
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

CommandManagerEvent

public CommandManagerEvent(CommandManager source,
                           Command command)
Constructs a new event.

Parameters:
source - the command container to which the command was registered.
command - the Command that was registered.
Method Detail

getCommand

public Command getCommand()
Gets the command that was registered.

Returns:
the newly registered Command.