org.pietschy.command

Class CommandEvent


public class CommandEvent
extends EventObject

Fired both before and after a command executes.
See Also:
ActionCommand, ActionCommand.addCommandListener(CommandListener)

Constructor Summary

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

Method Summary

ActionCommand
getCommand()
Gets the Command being executed.

Constructor Details

CommandEvent

public CommandEvent(Command source)
Constructs a new event for the specified Command.
Parameters:
source - the Command that is being executed.

Method Details

getCommand

public ActionCommand getCommand()
Gets the Command being executed.
Returns:
the Command being executed.