@Override /** Event received when the Options menu is closed. */ public void onOptionsMenuClosed(Menu menu) { super.onOptionsMenuClosed(menu); // Get the focused screen widget. ScreenWidget currentScreen = mMoSyncThread.getCurrentScreen(); if (currentScreen != null) { EventQueue.getDefault().postOptionsMenuClosed(currentScreen.getHandle()); } }
@Override /** Event received when an Options menu item is selected. */ public boolean onOptionsItemSelected(MenuItem item) { super.onOptionsItemSelected(item); // Get the focused screen widget. ScreenWidget currentScreen = mMoSyncThread.getCurrentScreen(); if (currentScreen != null) { EventQueue.getDefault() .postOptionsMenuItemSelected(currentScreen.getHandle(), item.getItemId()); return true; } return false; }
@Override public void onTabChanged(String tabTag) { // Assumes that the tag of the tab is the same as it's handle. EventQueue.getDefault() .postWidgetTabChangedEvent(m_tabScreenHandle, Integer.parseInt(tabTag)); }