|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CommandRegistrarConnection
Implement this interface to interact with command registrar instances.
The getCommand() and getCommands() methods return Command
instances, which bind a command's CommandHandler
and its associated metadata, allowing for manipulation of commands by users.
| Method Summary | ||
|---|---|---|
Command |
getCommand(CommandRequest request)
Returns a Command instance that matches specified criteria. |
|
Command[] |
getCommands(CommandRequest request)
Returns an array of Command instances that match specified criteria. |
|
Command[] |
getCommands(CommandRequest request,
int maximumNumberOfCommands)
Returns an array of Command instances that match specified criteria. |
|
void |
registerCommand(CommandHandler handler,
CommandMetadata metadata)
Registers a command's handler and its associated metadata. |
|
| Method Detail |
|---|
Command getCommand(CommandRequest request)
Command instance that matches specified criteria.
request - Criteria used to obtain commands.
null if there are no matching commands.Command[] getCommands(CommandRequest request)
Command instances that match specified criteria.
request - Criteria used to obtain commands.
Command[] getCommands(CommandRequest request,
int maximumNumberOfCommands)
Command instances that match specified criteria.
request - Criteria used to obtain commands.maximumNumberOfCommands - Maximum number of commands to return.
void registerCommand(CommandHandler handler,
CommandMetadata metadata)
handler - The command handler.metadata - The command metadata.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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