Package net.rim.blackberry.api.pdap

Examples of net.rim.blackberry.api.pdap.BlackBerryMemoList


            }
        }

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

        BlackBerryMemoList memoList;
        try {
            memoList = (BlackBerryMemoList) PIM.getInstance().openPIMList( BlackBerryPIM.MEMO_LIST, PIM.READ_WRITE );
        } catch( PIMException pime ) {
            return memosFound;
        }

        Vector found = new Vector();
        Enumeration e;
        int iElement = 0;
        try {
            e = memoList.items();
            while( e.hasMoreElements() ) {
                BlackBerryMemo m = (BlackBerryMemo) e.nextElement();
                MemoObject memo = new MemoObject( m );
                if( testable != null ) {
                    if( testable.test( memo ) ) {
View Full Code Here


         *
         * @throws Exception
         */
        public void update() throws Exception {
            // open the handheld memos database for save
            BlackBerryMemoList memoList;
            if( _serviceName.length() == 0 ) {
                memoList = (BlackBerryMemoList) BlackBerryPIM.getInstance().openPIMList( BlackBerryPIM.MEMO_LIST, PIM.READ_WRITE );
            } else {
                memoList = (BlackBerryMemoList) BlackBerryPIM.getInstance().openPIMList( BlackBerryPIM.MEMO_LIST, PIM.READ_WRITE,
                        _serviceName );
            }

            if( _memo == null ) {
                _memo = (BlackBerryMemo) memoList.createMemo();
            }

            // title
            String value;
            value = _outer.getItem( MemoObject.FIELD_TITLE ).getStringValue();
View Full Code Here

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

            // open the handheld memos database for remove
            BlackBerryMemoList memoList;
            if( _serviceName.length() == 0 ) {
                memoList = (BlackBerryMemoList) BlackBerryPIM.getInstance().openPIMList( BlackBerryPIM.MEMO_LIST, PIM.WRITE_ONLY );
            } else {
                memoList = (BlackBerryMemoList) BlackBerryPIM.getInstance().openPIMList( BlackBerryPIM.MEMO_LIST, PIM.WRITE_ONLY,
                        _serviceName );
            }

            memoList.removeMemo( _memo );
            _memo = null;

            return UNDEFINED;
        }
View Full Code Here

TOP

Related Classes of net.rim.blackberry.api.pdap.BlackBerryMemoList

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.