Examples of BlackBerryPIMList


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

                       _vec = (Vector)_listenerHash.get(eventService);
                       _vec.addElement(callback);
                       _listenerHash.put(eventService, _vec);
                 }// end if (_listenerHash.get(eventService)==null)

                     BlackBerryPIMList eventList = (BlackBerryPIMList)PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);
           eventList.addListener(new AptListener(eventService));
                     
            //          callback.invoke(null, new Object[] { "added listener" });
                                    
                                
               }// end of if (!eventService.equalsIgnoreCase("")){
               else {
            //     callback.invoke(null, new Object[] { "event service empty" });
                 // if the eventService is NOT provided, i.e., eventService= ""
                 if (_listenerHash.get(eventService)==null) {
                     _listener = new AptListener(eventService)
                       _vec = new Vector();
                       _vec.addElement(callback);
                       _listenerHash.put(eventService, _vec );
                   }else{
                        _vec = (Vector)_listenerHash.get(eventService);
                        _vec.addElement(callback);
                        _listenerHash.put(eventService, _vec);
                   }
                BlackBerryPIMList eventList = (BlackBerryPIMList)PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);
                  eventList.addListener(_listener);
               }   
         
         }catch (Exception ex){
           try{
             callback.invoke(null, new Object[] {ex.getMessage()});
View Full Code Here

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

                 return;
           }
        
           try {
           
            BlackBerryPIMList eventList = (BlackBerryPIMList)PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);
            eventList.removeListener(_listener);
         
          }catch (Exception ex){
          } finally  {
           
           if(!(_listener == null)){  _listener = null;} ;
View Full Code Here

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

     *            arguments passed into the function
     */
    public Object execute( Object thiz, Object[] args ) throws Exception {
        // It does not matter which type of PIM list is being opened here
        // They share the same categories defined in the PIM database
        BlackBerryPIMList pimList = (BlackBerryPIMList) BlackBerryPIM.getInstance().openPIMList( PIM.TODO_LIST, PIM.READ_WRITE );
        return pimList.getCategories();
    }
View Full Code Here

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

     *
     */
    public Object execute( Object thiz, Object[] args ) throws Exception {
        // It does not matter which type of PIM list is being opened here
        // They share the same categories defined in the PIM database
        BlackBerryPIMList pimList = (BlackBerryPIMList) BlackBerryPIM.getInstance().openPIMList( PIM.TODO_LIST, PIM.READ_WRITE );
        // Do not delete any Task items, only categories
        boolean deleteUnassignedItems = false;
        pimList.deleteCategory( args[ 0 ].toString(), deleteUnassignedItems );

        return UNDEFINED;
    }
View Full Code Here

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

     *            arguments passed into the function
     */
    public Object execute( Object thiz, Object[] args ) throws Exception {
        // It does not matter which type of PIM list is being opened here
        // They share the same categories defined in the PIM database
        BlackBerryPIMList pimList = (BlackBerryPIMList) BlackBerryPIM.getInstance().openPIMList( PIM.TODO_LIST, PIM.READ_WRITE );
        pimList.addCategory( args[ 0 ].toString() );
        return UNDEFINED;
    }
View Full Code Here

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

            // Running as a system module automatically at startup. Register
            // a PIMListListener.
            final PIM p = PIM.getInstance();

            try {
                final BlackBerryPIMList memoList =
                        (BlackBerryPIMList) p.openPIMList(
                                BlackBerryPIM.MEMO_LIST, PIM.READ_WRITE);
                memoList.addListener(new MemoListListener());
            } catch (final PIMException e) {
                // Can't add listener
                errorDialog("PIM#openPIMList() threw " + e.toString());
            }
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.