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 */ } }
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 */ } }