Lines Matching defs:item
65 MenuItem item;
67 if ((item = onAddMenuItem(menu, i)) == null) {
68 // Add a default item for this position if the subclasses
71 item = menu.add(0, 0, 0, (givenTitle != null) ? givenTitle : ("Item " + i));
74 if (item != null) {
75 mItems[i] = item;
78 item.setOnMenuItemClickListener(this);
96 * Override this to add an item to the menu.
98 * @param itemPosition The position of the item to add (only for your
100 * @return The item that was added to the menu, or null if nothing was
119 public boolean onMenuItemClick(MenuItem item) {
120 final int position = findItemPosition(item);
135 * @param item The item to find.
138 public int findItemPosition(MenuItem item) {
141 if (mItems[i] == item) return i;