Methods Summary |
---|
public boolean | collapseItemActionView(MenuBuilder menu, MenuItemImpl item)Called when a menu item with a collapsable action view should collapse its action view.
|
public boolean | expandItemActionView(MenuBuilder menu, MenuItemImpl item)Called when a menu item with a collapsable action view should expand its action view.
|
public boolean | flagActionItems()Called by Menu implementations to flag items that will be shown as actions.
|
public int | getId()Returns an ID for determining how to save/restore instance state.
|
public MenuView | getMenuView(android.view.ViewGroup root)Retrieve a MenuView to display the menu specified in
{@link #initForMenu(Context, MenuBuilder)}.
|
public void | initForMenu(android.content.Context context, MenuBuilder menu)Initialize this presenter for the given context and menu.
This method is called by MenuBuilder when a presenter is
added. See {@link MenuBuilder#addMenuPresenter(MenuPresenter)}
|
public void | onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing)Called by Menu implementations to indicate that a menu or submenu is
closing. Presenter implementations should close the representation
of the menu indicated as necessary and notify a registered callback.
|
public void | onRestoreInstanceState(android.os.Parcelable state)Supplies the previously saved instance state to be restored.
|
public android.os.Parcelable | onSaveInstanceState()Returns a Parcelable describing the current state of the presenter.
It will be passed to the {@link #onRestoreInstanceState(Parcelable)}
method of the presenter sharing the same ID later.
|
public boolean | onSubMenuSelected(SubMenuBuilder subMenu)Called by Menu implementations to indicate that a submenu item
has been selected. An active Callback should be notified, and
if applicable the presenter should present the submenu.
|
public void | setCallback(android.support.v7.internal.view.menu.MenuPresenter$Callback cb)Set a callback object that will be notified of menu events
related to this specific presentation.
|
public void | updateMenuView(boolean cleared)Update the menu UI in response to a change. Called by
MenuBuilder during the normal course of operation.
|