Package net.rim.blackberry.api.invoke

Examples of net.rim.blackberry.api.invoke.MessageArguments


        Invoke.invokeApplication( Invoke.APP_TYPE_MEMOPAD, args );
    }

    private void invokeMessages( final Object arg ) throws Exception {
        MessageArguments args = null;

        if( arg instanceof MessageArgumentsObject ) {
            final MessageArgumentsObject m = (MessageArgumentsObject) arg;
            final Message msg = m.getMessage();
            if( msg != null ) {
                args = new MessageArguments( msg );
            } else {
                final int view = m.getView();
                String viewArg = null;

                switch( view ) {
                    case MessageArgumentsConstructor.VIEW_NEW:
                        viewArg = MessageArguments.ARG_NEW;
                        break;
                    case MessageArgumentsConstructor.VIEW_DEFAULT:
                        viewArg = MessageArguments.ARG_DEFAULT;
                        break;
                    case MessageArgumentsConstructor.VIEW_SAVED:
                        viewArg = MessageArguments.ARG_SAVED;
                        break;
                    case MessageArgumentsConstructor.VIEW_SEARCH:
                        viewArg = MESSAGEARGUMENTS_ARG_SEARCH;
                        break;
                    default:
                        viewArg = CalendarArguments.ARG_NEW;
                        break;
                }
                args = new MessageArguments( viewArg );
            }
        } else {
            args = new MessageArguments();
        }

        Invoke.invokeApplication( Invoke.APP_TYPE_MESSAGES, args );
    }
View Full Code Here


             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                final MessageListDemoStore messageStore =
                        MessageListDemoStore.getInstance();
                final MessageArguments mArg =
                        new MessageArguments(messageStore.getInboxFolder());
                Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, mArg);
            }
        }));
        mainScreen.addMenuItem(viewMessagesInMessageList);
    }
View Full Code Here

         */
        protected void runAction() {
            // Invoke the Messages application and add the email address in the
            // data object as a recipient
            Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,
                    new MessageArguments(MessageArguments.ARG_NEW, _dataObject
                            .getData(), "", ""));
        }
View Full Code Here

TOP

Related Classes of net.rim.blackberry.api.invoke.MessageArguments

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.