org.pietschy.command

Class CommandManagerEvent


public class CommandManagerEvent
extends EventObject

Fired when a command is registered with a CommandManager.
See Also:
CommandManager.addCommandManagerListener(CommandManagerListener)

Constructor Summary

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

Method Summary

Command
getCommand()
Gets the command that was registered.

Constructor Details

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 Details

getCommand

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