Java in a Nutshell Online Quick Reference for Java 1.1
Availability: JDK 1.0
public class MenuItem extends MenuComponent { // Public Constructors 1.1 public MenuItem(); public MenuItem(String label); 1.1 public MenuItem(String label, MenuShortcut s); // Public Instance Methods 1.1 public void addActionListener(ActionListener l); public void addNotify(); 1.1 public void deleteShortcut(); # public synchronized void disable(); # public synchronized void enable(); # public void enable(boolean b); 1.1 public String getActionCommand(); public String getLabel(); 1.1 public MenuShortcut getShortcut(); public boolean isEnabled(); public String paramString(); // Overrides MenuComponent.paramString() 1.1 public void removeActionListener(ActionListener l); 1.1 public void setActionCommand(String command); 1.1 public synchronized void setEnabled(boolean b); public synchronized void setLabel(String label); 1.1 public void setShortcut(MenuShortcut s); // Protected Instance Methods 1.1 protected final void disableEvents(long eventsToDisable); 1.1 protected final void enableEvents(long eventsToEnable); 1.1 protected void processActionEvent(ActionEvent e); 1.1 protected void processEvent(AWTEvent e); // Overrides MenuComponent.processEvent() }