Lines Matching defs:menu

17 package android.support.v7.internal.view.menu;
32 * Called by menu implementation to notify another component of open/close events.
39 * Called when a menu is closing.
41 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing);
44 * Called when a submenu opens. Useful for notifying the application of menu state so that
55 * Initialize this presenter for the given context and menu. This method is called by
60 * @param menu Menu to host
62 public void initForMenu(Context context, MenuBuilder menu);
65 * Retrieve a MenuView to display the menu specified in
74 * Update the menu UI in response to a change. Called by MenuBuilder during the normal course of
77 * @param cleared true if the menu was entirely cleared
82 * Set a callback object that will be notified of menu events related to this specific
99 * Called by Menu implementations to indicate that a menu or submenu is closing. Presenter
100 * implementations should close the representation of the menu indicated as necessary and notify
103 * @param menu Menu or submenu that is closing.
106 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing);
116 * Called when a menu item with a collapsable action view should expand its action view.
118 * @param menu Menu containing the item to be expanded
122 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item);
125 * Called when a menu item with a collapsable action view should collapse its action view.
127 * @param menu Menu containing the item to be collapsed
131 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item);