Package org.robolectric.fakes
Class RoboSubMenu
java.lang.Object
org.robolectric.fakes.RoboMenu
org.robolectric.fakes.RoboSubMenu
public class RoboSubMenu extends RoboMenu implements SubMenu
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
Constructors Constructor Description RoboSubMenu()
RoboSubMenu(Context context)
-
Method Summary
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 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
-