示例#1
0
  @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());
    }
  }
示例#2
0
  @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;
  }
示例#3
0
 @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));
 }