コード例 #1
0
ファイル: TimelineCanvas.java プロジェクト: taazza/twim
 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();
   }
 }
コード例 #2
0
ファイル: TimelineCanvas.java プロジェクト: taazza/twim
 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 */
   }
 }
コード例 #3
0
ファイル: TimelineCanvas.java プロジェクト: taazza/twim
 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 */
   }
 }
コード例 #4
0
ファイル: ShowTimelineAction.java プロジェクト: taazza/twim
 public void activate() {
   TwitterController.getInstance().showTimeline();
 }