Tabnine Logo
MenuItemWrapper.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.actionbarsherlock.internal.view.menu.MenuItemWrapper.<init> (Showing top 13 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

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.actionbarsherlock/actionbarsherlock

  @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 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.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<init>

Popular methods of MenuItemWrapper

  • hasSubMenu

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
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