Lines Matching refs:menu

17 package com.android.internal.view.menu;
47 * standard menu UI.
52 private static final String PRESENTER_KEY = "android:menu:presenters";
53 private static final String ACTION_VIEW_STATES_KEY = "android:menu:actionviewstates";
54 private static final String EXPANDED_ACTION_VIEW_ID = "android:menu:expandedactionview";
81 * Callback that will receive the various menu-related events generated by
86 /** Contains all of the items for this menu */
119 * Current use case is Context Menus: As Views populate the context menu, each one has
120 * extra information that should be passed along. This is the current menu info that
121 * should be set on all items added to this menu.
125 /** Header title for menu types that have a header (context and submenus) */
127 /** Header icon for menu types that have a header and support icons (context) */
129 /** Header custom view for menu types that have a header and support custom views (context) */
133 * Contains the state of the View hierarchy for all menu views when the menu
155 * Currently expanded menu item; must be collapsed when we clear.
160 * Called by menu to notify of close and selection changes.
164 * Called when a menu item is selected.
165 * @param menu The menu that is the parent of the item
166 * @param item The menu item that is selected
167 * @return whether the menu item selection was handled
169 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item);
172 * Called when the mode of the menu changes (for example, from icon to expanded).
174 * @param menu the menu that has changed modes
176 public void onMenuModeChange(MenuBuilder menu);
180 * Called by menu items to execute their associated action
208 * Add a presenter to this menu. This will only hold a WeakReference;
219 * Add a presenter to this menu that uses an alternate context for
220 * inflating menu items. This will only hold a WeakReference; you do not
225 * @param menuContext The context used to inflate menu items
234 * Remove a presenter from this menu. That presenter will no longer
235 * receive notifications of updates to this menu's data.
403 * Adds an item to the menu. The other add methods funnel to this.
412 // Pass along the current menu info
509 // Notify menu views
515 * Remove the item at the given index and optionally forces menu views to
520 * @param updateChildrenOnMenuViews Whether to force update on menu views.
717 * @return whether the menu shortcuts are in qwerty mode or not
728 * menu item does not have a shortcut defined, that item will
760 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) {
761 return mCallback != null && mCallback.onMenuItemSelected(menu, item);
765 * Dispatch a mode change event to this menu's callback.
801 * This function will return all the menu and sub-menu items that can
838 * We want to return the menu item associated with the key, but if there is no
839 * ambiguity (i.e. there is only one menu item corresponding to the key) we want
934 * Closes the visible menu.
937 * or whether there is another menu coming in this menu's place
938 * (false). For example, if the menu is closing because a
939 * sub menu is about to be shown, <var>allMenusAreClosing</var>
965 * @param structureChanged true if the menu structure changed,
985 * many menu operations are going to be performed as a batch.
1043 * This method determines which menu items get to be 'action items' that will appear
1044 * in an action bar and which items should be 'overflow items' in a secondary menu.
1047 * <p>Items are considered for inclusion in the order specified within the menu.
1049 * menu button itself. This is a soft limit; if an item shares a group ID with an item
1062 * <p>The space freed by demoting a full group cannot be consumed by future menu items.
1230 * Gets the root menu (if this is a submenu, find its root menu).
1231 * @return The root menu.
1238 * Sets the current menu info that is set on all items added to this menu
1239 * (until this is called again with different menu info, in which case that
1242 * @param menuInfo The extra menu information to add.