Exemple #1
0
 private void handleTabChange() {
   verticalScroll = 0;
   int tabIndex = menuBar.getSelectedTabIndex();
   if (tabIndex == 0) {
     /** Archive selected */
     controller.showArchiveTimeline();
   } else if (tabIndex == 1) {
     /** Friends selected */
     controller.showResponsesTimeline();
   } else if (tabIndex == 2) {
     /** Friends selected */
     controller.showFriendsTimeline();
   } else if (tabIndex == 3) {
     /** Public selected */
     controller.showPublicTimeline();
   }
 }
Exemple #2
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 */
   }
 }
Exemple #3
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 */
   }
 }
Exemple #4
0
 public void activate() {
   TwitterController.getInstance().showTimeline();
 }