Lines Matching refs:MenuItem
48 * Each item in a menu must belong to the <code>MenuItem</code>
49 * class. It can be an instance of <code>MenuItem</code>, a submenu
54 * @see java.awt.MenuItem
58 public class Menu extends MenuItem implements MenuContainer, Accessible {
181 MenuItem mi = getItem(i);
246 public MenuItem getItem(int index) {
254 final MenuItem getItemImpl(int index) {
255 return (MenuItem)items.elementAt(index);
266 * @see java.awt.Menu#insert(java.awt.MenuItem, int)
268 public MenuItem add(MenuItem mi) {
289 * @see java.awt.Menu#insert(java.awt.MenuItem, int)
292 add(new MenuItem(label));
303 * @see java.awt.Menu#add(java.awt.MenuItem)
309 public void insert(MenuItem menuitem, int index) {
333 add((MenuItem)tempItems.elementAt(i));
347 * @see java.awt.Menu#add(java.awt.MenuItem)
354 insert(new MenuItem(label), index);
399 add((MenuItem)tempItems.elementAt(i));
410 MenuItem mi = getItem(index);
459 MenuItem mi = getItem(i);
467 MenuItem getShortcutMenuItem(MenuShortcut s) {
470 MenuItem mi = getItem(i).getShortcutMenuItem(s);
482 MenuItem mi = getItem(i);
547 MenuItem item = (MenuItem)items.elementAt(i);