Package org.robolectric.fakes
Class RoboSubMenu
java.lang.Object
org.robolectric.fakes.RoboMenu
org.robolectric.fakes.RoboSubMenu
Robolectric implementation of
SubMenu
.-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getItem()
setHeaderIcon
(int iconRes) setHeaderIcon
(Drawable icon) setHeaderTitle
(int titleRes) setHeaderTitle
(CharSequence title) setHeaderView
(View view) setIcon
(int iconRes) 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, setOptionalIconsVisible, setQwertyMode, size
-
Constructor Details
-
RoboSubMenu
public RoboSubMenu() -
RoboSubMenu
-
-
Method Details
-
setHeaderTitle
- Specified by:
setHeaderTitle
in interfaceSubMenu
-
setHeaderTitle
- Specified by:
setHeaderTitle
in interfaceSubMenu
-
setHeaderIcon
- Specified by:
setHeaderIcon
in interfaceSubMenu
-
setHeaderIcon
- Specified by:
setHeaderIcon
in interfaceSubMenu
-
setHeaderView
- Specified by:
setHeaderView
in interfaceSubMenu
-
clearHeader
public void clearHeader()- Specified by:
clearHeader
in interfaceSubMenu
-
setIcon
-
setIcon
-
getItem
-