Package javax.microedition.pim

Examples of javax.microedition.pim.ToDoList


            if( _todo == null ) {
                throw new PIMException( "PIMItem not found." );
            }

            // open the handheld todos database for remove
            ToDoList todoList;
            if( _serviceName.length() == 0 ) {
                todoList = (ToDoList) BlackBerryPIM.getInstance().openPIMList( PIM.TODO_LIST, PIM.WRITE_ONLY );
            } else {
                todoList = (ToDoList) BlackBerryPIM.getInstance().openPIMList( PIM.TODO_LIST, PIM.WRITE_ONLY, _serviceName );
            }
            todoList.removeToDo( _todo );
            _todo = null;
            return UNDEFINED;
        }
View Full Code Here


            }
        }

        boolean isSorted = orderByField != null && orderByField.length() > 0 ? true : false;

        ToDoList taskList;
        try {
            taskList = (ToDoList) PIM.getInstance().openPIMList( PIM.TODO_LIST, PIM.READ_WRITE );
        } catch( PIMException pime ) {
            return tasksFound;
        }

        Vector found = new Vector();
        Enumeration e;
        int iElement = 0;
        try {
            e = taskList.items();
            while( e.hasMoreElements() ) {
                ToDo t = (ToDo) e.nextElement();
                TaskObject task = new TaskObject( t );
                if( testable != null ) {
                    if( testable.test( task ) ) {
View Full Code Here

TOP

Related Classes of javax.microedition.pim.ToDoList

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.