net.rim.device.api.command
Class AlwaysExecutableCommand

java.lang.Object
  extended by net.rim.device.api.command.CommandHandler
      extended by net.rim.device.api.command.AlwaysExecutableCommand

public abstract class AlwaysExecutableCommand
extends CommandHandler

Convenience implementation of CommandHandler whose canExecute() method always returns true.

Since:
BlackBerry API 6.0.0

Constructor Summary
AlwaysExecutableCommand()
          Creates a new instance of AlwaysExecutableCommand.
 
Method Summary
 boolean canExecute(ReadOnlyCommandMetadata metadata, Object context)
          Determines whether a call to execute() is valid using a passed-in context object.
 
Methods inherited from class net.rim.device.api.command.CommandHandler
execute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

AlwaysExecutableCommand

public AlwaysExecutableCommand()
Creates a new instance of AlwaysExecutableCommand.

Since:
BlackBerry API 6.0.0


Method Detail

canExecute

public boolean canExecute(ReadOnlyCommandMetadata metadata,
                          Object context)
Determines whether a call to execute() is valid using a passed-in context object.

Overrides:
canExecute in class CommandHandler
Parameters:
metadata - Metadata that the CommandHandler was registered with. Cannot be modified.
context - External state information.
Returns:
Always returns true.
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal