Methods Summary |
---|
public boolean | collapseActionView()
return mWrappedObject.collapseActionView();
|
android.support.v7.internal.view.menu.MenuItemWrapperICS$ActionProviderWrapper | createActionProviderWrapper(android.view.ActionProvider provider)
return new ActionProviderWrapper(mContext, provider);
|
public boolean | expandActionView()
return mWrappedObject.expandActionView();
|
public android.view.ActionProvider | getActionProvider()
ActionProvider provider = mWrappedObject.getSupportActionProvider();
if (provider instanceof ActionProviderWrapper) {
return ((ActionProviderWrapper) provider).mInner;
}
return null;
|
public android.view.View | getActionView()
View actionView = mWrappedObject.getActionView();
if (actionView instanceof CollapsibleActionViewWrapper) {
return ((CollapsibleActionViewWrapper) actionView).getWrappedView();
}
return actionView;
|
public char | getAlphabeticShortcut()
return mWrappedObject.getAlphabeticShortcut();
|
public int | getGroupId()
return mWrappedObject.getGroupId();
|
public android.graphics.drawable.Drawable | getIcon()
return mWrappedObject.getIcon();
|
public android.content.Intent | getIntent()
return mWrappedObject.getIntent();
|
public int | getItemId()
return mWrappedObject.getItemId();
|
public ContextMenu.ContextMenuInfo | getMenuInfo()
return mWrappedObject.getMenuInfo();
|
public char | getNumericShortcut()
return mWrappedObject.getNumericShortcut();
|
public int | getOrder()
return mWrappedObject.getOrder();
|
public android.view.SubMenu | getSubMenu()
return getSubMenuWrapper(mWrappedObject.getSubMenu());
|
public java.lang.CharSequence | getTitle()
return mWrappedObject.getTitle();
|
public java.lang.CharSequence | getTitleCondensed()
return mWrappedObject.getTitleCondensed();
|
public boolean | hasSubMenu()
return mWrappedObject.hasSubMenu();
|
public boolean | isActionViewExpanded()
return mWrappedObject.isActionViewExpanded();
|
public boolean | isCheckable()
return mWrappedObject.isCheckable();
|
public boolean | isChecked()
return mWrappedObject.isChecked();
|
public boolean | isEnabled()
return mWrappedObject.isEnabled();
|
public boolean | isVisible()
return mWrappedObject.isVisible();
|
public android.view.MenuItem | setActionProvider(android.view.ActionProvider provider)
mWrappedObject.setSupportActionProvider(
provider != null ? createActionProviderWrapper(provider) : null);
return this;
|
public android.view.MenuItem | setActionView(android.view.View view)
if (view instanceof android.view.CollapsibleActionView) {
view = new CollapsibleActionViewWrapper(view);
}
mWrappedObject.setActionView(view);
return this;
|
public android.view.MenuItem | setActionView(int resId)
// Make framework menu item inflate the view
mWrappedObject.setActionView(resId);
View actionView = mWrappedObject.getActionView();
if (actionView instanceof android.view.CollapsibleActionView) {
// If the inflated Action View is support-collapsible, wrap it
mWrappedObject.setActionView(new CollapsibleActionViewWrapper(actionView));
}
return this;
|
public android.view.MenuItem | setAlphabeticShortcut(char alphaChar)
mWrappedObject.setAlphabeticShortcut(alphaChar);
return this;
|
public android.view.MenuItem | setCheckable(boolean checkable)
mWrappedObject.setCheckable(checkable);
return this;
|
public android.view.MenuItem | setChecked(boolean checked)
mWrappedObject.setChecked(checked);
return this;
|
public android.view.MenuItem | setEnabled(boolean enabled)
mWrappedObject.setEnabled(enabled);
return this;
|
public void | setExclusiveCheckable(boolean checkable)
try {
if (mSetExclusiveCheckableMethod == null) {
mSetExclusiveCheckableMethod = mWrappedObject.getClass()
.getDeclaredMethod("setExclusiveCheckable", Boolean.TYPE);
}
mSetExclusiveCheckableMethod.invoke(mWrappedObject, checkable);
} catch (Exception e) {
Log.w(LOG_TAG, "Error while calling setExclusiveCheckable", e);
}
|
public android.view.MenuItem | setIcon(android.graphics.drawable.Drawable icon)
mWrappedObject.setIcon(icon);
return this;
|
public android.view.MenuItem | setIcon(int iconRes)
mWrappedObject.setIcon(iconRes);
return this;
|
public android.view.MenuItem | setIntent(android.content.Intent intent)
mWrappedObject.setIntent(intent);
return this;
|
public android.view.MenuItem | setNumericShortcut(char numericChar)
mWrappedObject.setNumericShortcut(numericChar);
return this;
|
public android.view.MenuItem | setOnActionExpandListener(MenuItem.OnActionExpandListener listener)
mWrappedObject.setSupportOnActionExpandListener(listener != null ?
new OnActionExpandListenerWrapper(listener) : null);
return this;
|
public android.view.MenuItem | setOnMenuItemClickListener(OnMenuItemClickListener menuItemClickListener)
mWrappedObject.setOnMenuItemClickListener(menuItemClickListener != null ?
new OnMenuItemClickListenerWrapper(menuItemClickListener) : null);
return this;
|
public android.view.MenuItem | setShortcut(char numericChar, char alphaChar)
mWrappedObject.setShortcut(numericChar, alphaChar);
return this;
|
public void | setShowAsAction(int actionEnum)
mWrappedObject.setShowAsAction(actionEnum);
|
public android.view.MenuItem | setShowAsActionFlags(int actionEnum)
mWrappedObject.setShowAsActionFlags(actionEnum);
return this;
|
public android.view.MenuItem | setTitle(java.lang.CharSequence title)
mWrappedObject.setTitle(title);
return this;
|
public android.view.MenuItem | setTitle(int title)
mWrappedObject.setTitle(title);
return this;
|
public android.view.MenuItem | setTitleCondensed(java.lang.CharSequence title)
mWrappedObject.setTitleCondensed(title);
return this;
|
public android.view.MenuItem | setVisible(boolean visible)
return mWrappedObject.setVisible(visible);
|