Package net.rim.blackberry.api.invoke

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


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

    private void invokeTasks( final Object arg ) throws Exception {
        TaskArguments args = null;

        if( arg instanceof TaskArgumentsObject ) {
            final TaskArgumentsObject t = (TaskArgumentsObject) arg;

            final TaskObject to = t.getTaskObject();
            if( to != null ) {
                to.update();
            }

            final ToDo todo = t.getTodo();
            final int view = t.getView();

            if( todo == null ) {
                args = new TaskArguments( TaskArguments.ARG_NEW );
            } else {
                args = new TaskArguments( view == TaskArgumentsConstructor.VIEW_EDIT ? TaskArguments.ARG_VIEW
                        : TaskArguments.ARG_NEW, todo );
            }
        } else {
            args = new TaskArguments();
        }

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

TOP

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

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.