|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.actionbarsherlock.internal.view.menu.MenuWrapper
com.actionbarsherlock.internal.view.menu.SubMenuWrapper
public class SubMenuWrapper
| Field Summary |
|---|
| Fields inherited from interface com.actionbarsherlock.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, USER_MASK, USER_SHIFT |
| Constructor Summary | |
|---|---|
SubMenuWrapper(android.view.SubMenu nativeSubMenu)
|
|
| Method Summary | |
|---|---|
void |
clearHeader()
Clears the header of the submenu. |
MenuItem |
getItem()
Gets the MenuItem that represents this submenu in the parent
menu. |
SubMenu |
setHeaderIcon(android.graphics.drawable.Drawable icon)
Sets the submenu header's icon to the icon given in icon Drawable. |
SubMenu |
setHeaderIcon(int iconRes)
Sets the submenu header's icon to the icon given in iconRes resource id. |
SubMenu |
setHeaderTitle(CharSequence title)
Sets the submenu header's title to the title given in title. |
SubMenu |
setHeaderTitle(int titleRes)
Sets the submenu header's title to the title given in titleRes resource identifier. |
SubMenu |
setHeaderView(android.view.View view)
Sets the header of the submenu to the View given in
view. |
SubMenu |
setIcon(android.graphics.drawable.Drawable icon)
Change the icon associated with this submenu's item in its parent menu. |
SubMenu |
setIcon(int iconRes)
Change the icon associated with this submenu's item in its parent menu. |
| Methods inherited from class com.actionbarsherlock.internal.view.menu.MenuWrapper |
|---|
add, add, add, add, addIntentOptions, addSubMenu, addSubMenu, addSubMenu, addSubMenu, clear, close, findItem, findItem, getItem, hasVisibleItems, invalidate, isShortcutKey, performIdentifierAction, performShortcut, removeGroup, removeItem, setGroupCheckable, setGroupEnabled, setGroupVisible, setQwertyMode, size, unwrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.actionbarsherlock.view.Menu |
|---|
add, add, add, add, addIntentOptions, addSubMenu, addSubMenu, addSubMenu, addSubMenu, clear, close, findItem, getItem, hasVisibleItems, isShortcutKey, performIdentifierAction, performShortcut, removeGroup, removeItem, setGroupCheckable, setGroupEnabled, setGroupVisible, setQwertyMode, size |
| Constructor Detail |
|---|
public SubMenuWrapper(android.view.SubMenu nativeSubMenu)
| Method Detail |
|---|
public SubMenu setHeaderTitle(int titleRes)
SubMenu
setHeaderTitle in interface SubMenutitleRes - The string resource identifier used for the title.
public SubMenu setHeaderTitle(CharSequence title)
SubMenu
setHeaderTitle in interface SubMenutitle - The character sequence used for the title.
public SubMenu setHeaderIcon(int iconRes)
SubMenu
setHeaderIcon in interface SubMenuiconRes - The resource identifier used for the icon.
public SubMenu setHeaderIcon(android.graphics.drawable.Drawable icon)
SubMenuDrawable.
setHeaderIcon in interface SubMenuicon - The Drawable used for the icon.
public SubMenu setHeaderView(android.view.View view)
SubMenuView given in
view. This replaces the header title and icon (and those
replace this).
setHeaderView in interface SubMenuview - The View used for the header.
public void clearHeader()
SubMenu
clearHeader in interface SubMenupublic SubMenu setIcon(int iconRes)
SubMenu
setIcon in interface SubMenuiconRes - The new icon (as a resource ID) to be displayed.
MenuItem.setIcon(int)public SubMenu setIcon(android.graphics.drawable.Drawable icon)
SubMenu
setIcon in interface SubMenuicon - The new icon (as a Drawable) to be displayed.
MenuItem.setIcon(Drawable)public MenuItem getItem()
SubMenuMenuItem that represents this submenu in the parent
menu. Use this for setting additional item attributes.
getItem in interface SubMenuMenuItem that launches the submenu when invoked.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||