org.springframework.richclient.command
Class CommandRegistryEvent
java.lang.Object
java.util.EventObject
org.springframework.richclient.command.CommandRegistryEvent
- All Implemented Interfaces:
- Serializable
public class CommandRegistryEvent
- extends EventObject
An event object that originated from a CommandRegistry
.
- See Also:
- Serialized Form
CommandRegistryEvent
public CommandRegistryEvent(CommandRegistry source,
AbstractCommand command)
- Creates a new
CommandRegistryEvent
for the given registry and command.
- Parameters:
source
- The command registry that originated the event. Must not be null.command
- The command that the event relates to. Must not be null.
- Throws:
IllegalArgumentException
- if either argument is null.
getCommand
public AbstractCommand getCommand()
- Returns the command that the event relates to.
- Returns:
- The command, never null.
Copyright © 2004-2009 The Spring Framework. All Rights Reserved.