Package org.robolectric.fakes
Class RoboSubMenu
- java.lang.Object
-
- org.robolectric.fakes.RoboMenu
-
- org.robolectric.fakes.RoboSubMenu
-
-
Field Summary
-
Fields inherited from interface android.view.Menu
CATEGORY_ALTERNATIVE, CATEGORY_CONTAINER, CATEGORY_MASK, CATEGORY_SECONDARY, CATEGORY_SHIFT, CATEGORY_SYSTEM, FIRST, FLAG_ALWAYS_PERFORM_CLOSE, FLAG_APPEND_TO_GROUP, FLAG_PERFORM_NO_CLOSE, NONE, SUPPORTED_MODIFIERS_MASK, USER_MASK, USER_SHIFT
-
-
Constructor Summary
Constructors Constructor Description RoboSubMenu()
RoboSubMenu(Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearHeader()
MenuItem
getItem()
SubMenu
setHeaderIcon(int iconRes)
SubMenu
setHeaderIcon(Drawable icon)
SubMenu
setHeaderTitle(int titleRes)
SubMenu
setHeaderTitle(CharSequence title)
SubMenu
setHeaderView(View view)
SubMenu
setIcon(int iconRes)
SubMenu
setIcon(Drawable icon)
-
Methods inherited from class org.robolectric.fakes.RoboMenu
add, add, add, add, addIntentOptions, addSubMenu, addSubMenu, addSubMenu, addSubMenu, clear, close, findItem, findMenuItem, findMenuItemContaining, getItem, hasVisibleItems, isShortcutKey, performIdentifierAction, performShortcut, removeGroup, removeItem, setGroupCheckable, setGroupEnabled, setGroupVisible, setQwertyMode, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface android.view.Menu
add, add, add, add, addIntentOptions, addSubMenu, addSubMenu, addSubMenu, addSubMenu, clear, close, findItem, getItem, hasVisibleItems, isShortcutKey, performIdentifierAction, performShortcut, removeGroup, removeItem, setGroupCheckable, setGroupDividerEnabled, setGroupEnabled, setGroupVisible, setQwertyMode, size
-
-
-
-
Constructor Detail
-
RoboSubMenu
public RoboSubMenu()
-
RoboSubMenu
public RoboSubMenu(Context context)
-
-
Method Detail
-
setHeaderTitle
public SubMenu setHeaderTitle(int titleRes)
- Specified by:
setHeaderTitle
in interfaceSubMenu
-
setHeaderTitle
public SubMenu setHeaderTitle(CharSequence title)
- Specified by:
setHeaderTitle
in interfaceSubMenu
-
setHeaderIcon
public SubMenu setHeaderIcon(int iconRes)
- Specified by:
setHeaderIcon
in interfaceSubMenu
-
setHeaderIcon
public SubMenu setHeaderIcon(Drawable icon)
- Specified by:
setHeaderIcon
in interfaceSubMenu
-
setHeaderView
public SubMenu setHeaderView(View view)
- Specified by:
setHeaderView
in interfaceSubMenu
-
clearHeader
public void clearHeader()
- Specified by:
clearHeader
in interfaceSubMenu
-
-