示例#1
0
 public void fetchLists() {
   ListManager lstMngr = ListManager.getInstance(userManager);
   //
   try {
     showAlert("Fetching lists...", AlertType.INFO, listUI);
     //
     lists = lstMngr.getLists();
     //
     for (int i = 0; i < lists.length; i++) {
       listUI.append(lists[i].getString(MetadataSet.LIST_NAME), null);
     }
     //
     showAlert("Lists fetched!", AlertType.INFO, listUI);
   } catch (Exception e) {
     showAlert(e.getMessage(), AlertType.WARNING, listUI);
   }
 }