예제 #1
0
 public void activateMenuItem() {
   int selectedIndex = menu.getSelectedIndex();
   if (selectedIndex == 0) {
     controller.showStatusView("");
   } else if (selectedIndex == 1) {
     controller.clearTimelines();
     handleTabChange();
   } else if (selectedIndex == 2) {
     controller.showLoginForm();
   } else if (selectedIndex == 3) {
     controller.about();
   } else if (selectedIndex == 4) {
     controller.exit();
   } else if (selectedIndex == 5) {
     /** Cancel = Do nothing */
   }
 }
예제 #2
0
 public void activateStatusMenuItem() {
   int selectedIndex = statusMenu.getSelectedIndex();
   Status selectedStatus = statusList.getSelected();
   if (selectedIndex == 0) {
     if (selectedStatus != null) {
       selectedStatus.openInBrowser(controller.getMIDlet());
       return;
     }
   } else if (selectedIndex == 1) {
     if (selectedStatus != null) {
       selectedStatus.openIncludedLink(controller.getMIDlet());
       return;
     }
   } else if (selectedIndex == 2) {
     if (selectedStatus != null) {
       controller.showStatusView("@" + selectedStatus.getScreenName() + " ");
     }
   } else if (selectedIndex == 3) {
     /** Cancel = Do nothing */
   }
 }