Tabnine Logo
MenuItemWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
MenuItemWrapper
in
com.actionbarsherlock.internal.view.menu

Best Java code snippets using com.actionbarsherlock.internal.view.menu.MenuItemWrapper (Showing top 15 results out of 315)

origin: com.willowtreeapps/oak-demos

private MenuItem addInternal(android.view.MenuItem nativeItem) {
  MenuItem item = new MenuItemWrapper(nativeItem);
  mNativeMap.put(nativeItem, item);
  return item;
}
origin: com.actionbarsherlock/actionbarsherlock

@Override
public SubMenu getSubMenu() {
  if (hasSubMenu() && (mSubMenu == null)) {
    mSubMenu = new SubMenuWrapper(mNativeItem.getSubMenu());
  }
  return mSubMenu;
}
origin: com.willowtreeapps/oak-demos

@Override
public SubMenu getSubMenu() {
  if (hasSubMenu() && (mSubMenu == null)) {
    mSubMenu = new SubMenuWrapper(mNativeItem.getSubMenu());
  }
  return mSubMenu;
}
origin: com.actionbarsherlock/actionbarsherlock

private MenuItem addInternal(android.view.MenuItem nativeItem) {
  MenuItem item = new MenuItemWrapper(nativeItem);
  mNativeMap.put(nativeItem, item);
  return item;
}
origin: com.willowtreeapps/oak-demos

@Override
public int addIntentOptions(int groupId, int itemId, int order, ComponentName caller, Intent[] specifics, Intent intent, int flags, MenuItem[] outSpecificItems) {
  android.view.MenuItem[] nativeOutItems = new android.view.MenuItem[outSpecificItems.length];
  int result = mNativeMenu.addIntentOptions(groupId, itemId, order, caller, specifics, intent, flags, nativeOutItems);
  for (int i = 0, length = outSpecificItems.length; i < length; i++) {
    outSpecificItems[i] = new MenuItemWrapper(nativeOutItems[i]);
  }
  return result;
}
origin: com.willowtreeapps/oak-demos

  @Override
  public MenuItem getItem() {
    if (mItem == null) {
      mItem = new MenuItemWrapper(mNativeSubMenu.getItem());
    }
    return mItem;
  }
}
origin: com.willowtreeapps/oak-demos

@Override
public final boolean onOptionsItemSelected(android.view.MenuItem item) {
  return onOptionsItemSelected(new MenuItemWrapper(item));
}
origin: com.actionbarsherlock/actionbarsherlock

  @Override
  public MenuItem getItem() {
    if (mItem == null) {
      mItem = new MenuItemWrapper(mNativeSubMenu.getItem());
    }
    return mItem;
  }
}
origin: com.actionbarsherlock/actionbarsherlock

@Override
public final boolean onOptionsItemSelected(android.view.MenuItem item) {
  return onOptionsItemSelected(new MenuItemWrapper(item));
}
origin: com.willowtreeapps/oak-demos

@Override
public final boolean onOptionsItemSelected(android.view.MenuItem item) {
  return onOptionsItemSelected(new MenuItemWrapper(item));
}
origin: com.actionbarsherlock/actionbarsherlock

@Override
public final boolean onOptionsItemSelected(android.view.MenuItem item) {
  return onOptionsItemSelected(new MenuItemWrapper(item));
}
origin: com.actionbarsherlock/actionbarsherlock

@Override
public final boolean onOptionsItemSelected(android.view.MenuItem item) {
  return onOptionsItemSelected(new MenuItemWrapper(item));
}
origin: com.willowtreeapps/oak-demos

@Override
public final boolean onOptionsItemSelected(android.view.MenuItem item) {
  return onOptionsItemSelected(new MenuItemWrapper(item));
}
origin: com.actionbarsherlock/actionbarsherlock

@Override
public boolean dispatchOptionsItemSelected(android.view.MenuItem item) {
  if (ActionBarSherlock.DEBUG) Log.d(TAG, "[dispatchOptionsItemSelected] item: " + item.getTitleCondensed());
  MenuItem wrapped;
  if (mMenu == null) {
    if (item.getItemId() != android.R.id.home) {
      throw new IllegalStateException("Non-home action item clicked before onCreateOptionsMenu with ID " + item.getItemId());
    }
    // Create a throw-away wrapper for now.
    wrapped = new MenuItemWrapper(item);
  } else {
    wrapped = mMenu.findItem(item);
  }
  final boolean result = callbackOptionsItemSelected(wrapped);
  if (ActionBarSherlock.DEBUG) Log.d(TAG, "[dispatchOptionsItemSelected] returning " + result);
  return result;
}
origin: com.actionbarsherlock/actionbarsherlock

@Override
public int addIntentOptions(int groupId, int itemId, int order, ComponentName caller, Intent[] specifics, Intent intent, int flags, MenuItem[] outSpecificItems) {
  int result;
  if (outSpecificItems != null) {
    android.view.MenuItem[] nativeOutItems = new android.view.MenuItem[outSpecificItems.length];
    result = mNativeMenu.addIntentOptions(groupId, itemId, order, caller, specifics, intent, flags, nativeOutItems);
    for (int i = 0, length = outSpecificItems.length; i < length; i++) {
      outSpecificItems[i] = new MenuItemWrapper(nativeOutItems[i]);
    }
  } else {
    result = mNativeMenu.addIntentOptions(groupId, itemId, order, caller, specifics, intent, flags, null);
  }
  return result;
}
com.actionbarsherlock.internal.view.menuMenuItemWrapper

Most used methods

  • <init>
  • hasSubMenu

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Notification (javax.management)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now