org.springframework.richclient.command
Class CommandRegistryEvent

Show UML class diagram
java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CommandRegistryEvent(CommandRegistry source, AbstractCommand command)
          Creates a new CommandRegistryEvent for the given registry and command.
 
Method Summary
 AbstractCommand getCommand()
          Returns the command that the event relates to.
 
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

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.
Method Detail

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.