FileDocCategorySizeDatePackage
MenuWrapperICS.javaAPI DocAndroid 5.1 API5246Thu Mar 12 22:22:56 GMT 2015android.support.v7.internal.view.menu

MenuWrapperICS

public class MenuWrapperICS extends BaseMenuWrapper implements android.view.Menu
Wraps a support {@link SupportMenu} as a framework {@link android.view.Menu}
hide

Fields Summary
Constructors Summary
MenuWrapperICS(android.content.Context context, android.support.v4.internal.view.SupportMenu object)

        super(context, object);
    
Methods Summary
public android.view.MenuItemadd(java.lang.CharSequence title)

        return getMenuItemWrapper(mWrappedObject.add(title));
    
public android.view.MenuItemadd(int titleRes)

        return getMenuItemWrapper(mWrappedObject.add(titleRes));
    
public android.view.MenuItemadd(int groupId, int itemId, int order, java.lang.CharSequence title)

        return getMenuItemWrapper(mWrappedObject.add(groupId, itemId, order, title));
    
public android.view.MenuItemadd(int groupId, int itemId, int order, int titleRes)

        return getMenuItemWrapper(mWrappedObject.add(groupId, itemId, order, titleRes));
    
public intaddIntentOptions(int groupId, int itemId, int order, android.content.ComponentName caller, android.content.Intent[] specifics, android.content.Intent intent, int flags, android.view.MenuItem[] outSpecificItems)

        android.view.MenuItem[] items = null;
        if (outSpecificItems != null) {
            items = new android.view.MenuItem[outSpecificItems.length];
        }

        int result = mWrappedObject
                .addIntentOptions(groupId, itemId, order, caller, specifics, intent, flags, items);

        if (items != null) {
            for (int i = 0, z = items.length; i < z; i++) {
                outSpecificItems[i] = getMenuItemWrapper(items[i]);
            }
        }

        return result;
    
public android.view.SubMenuaddSubMenu(java.lang.CharSequence title)

        return getSubMenuWrapper(mWrappedObject.addSubMenu(title));
    
public android.view.SubMenuaddSubMenu(int titleRes)

        return getSubMenuWrapper(mWrappedObject.addSubMenu(titleRes));
    
public android.view.SubMenuaddSubMenu(int groupId, int itemId, int order, java.lang.CharSequence title)

        return getSubMenuWrapper(mWrappedObject.addSubMenu(groupId, itemId, order, title));
    
public android.view.SubMenuaddSubMenu(int groupId, int itemId, int order, int titleRes)

        return getSubMenuWrapper(
                mWrappedObject.addSubMenu(groupId, itemId, order, titleRes));
    
public voidclear()

        internalClear();
        mWrappedObject.clear();
    
public voidclose()

        mWrappedObject.close();
    
public android.view.MenuItemfindItem(int id)

        return getMenuItemWrapper(mWrappedObject.findItem(id));
    
public android.view.MenuItemgetItem(int index)

        return getMenuItemWrapper(mWrappedObject.getItem(index));
    
public booleanhasVisibleItems()

        return mWrappedObject.hasVisibleItems();
    
public booleanisShortcutKey(int keyCode, android.view.KeyEvent event)

        return mWrappedObject.isShortcutKey(keyCode, event);
    
public booleanperformIdentifierAction(int id, int flags)

        return mWrappedObject.performIdentifierAction(id, flags);
    
public booleanperformShortcut(int keyCode, android.view.KeyEvent event, int flags)

        return mWrappedObject.performShortcut(keyCode, event, flags);
    
public voidremoveGroup(int groupId)

        internalRemoveGroup(groupId);
        mWrappedObject.removeGroup(groupId);
    
public voidremoveItem(int id)

        internalRemoveItem(id);
        mWrappedObject.removeItem(id);
    
public voidsetGroupCheckable(int group, boolean checkable, boolean exclusive)

        mWrappedObject.setGroupCheckable(group, checkable, exclusive);
    
public voidsetGroupEnabled(int group, boolean enabled)

        mWrappedObject.setGroupEnabled(group, enabled);
    
public voidsetGroupVisible(int group, boolean visible)

        mWrappedObject.setGroupVisible(group, visible);
    
public voidsetQwertyMode(boolean isQwerty)

        mWrappedObject.setQwertyMode(isQwerty);
    
public intsize()

        return mWrappedObject.size();