Package net.rim.device.api.command

Examples of net.rim.device.api.command.CommandMetadata


     */
    private static void registerCommand(final CommandHandler handler,
            final String id, final String[] commandCategories,
            final String[] contextCategories, final String classname) {
        // Initialize CommandMetadata
        final CommandMetadata metadata = new CommandMetadata(id);
        metadata.setCommandCategories(new CategoryCollection(commandCategories));
        metadata.setContextCategories(new CategoryCollection(contextCategories));
        if (classname != null) {
            metadata.setClassname(classname);
        }

        // Register the CommandHandler and CommandMetadata with
        // LocalCommandRegistrarConnection
        final LocalCommandRegistrarConnection connection =
View Full Code Here


     *
     * @param args
     *            Command line arguments (not used)
     */
    public static void main(final String[] args) {
        final CommandMetadata metadata = new CommandMetadata(COMMAND_ID);
        metadata.setClassname(RemoteAppCommandHandler.class.getName());
        final RemoteCommandRegistrarConnection connection =
                new RemoteCommandRegistrarConnection();
        connection.registerCommand(null, metadata);
    }
View Full Code Here

TOP

Related Classes of net.rim.device.api.command.CommandMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.