Package java.awt.peer |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
The menu item peer interface specifies the methods that all implementations of Abstract Window Toolkit menu items must define.
public interface java.awt.peer.MenuItemPeer extends java.awt.peer.MenuComponentPeer { // Methods public abstract void disable(); public abstract void enable(); public abstract void setLabel(String label); }
public abstract void disable()Disables this menu item. It can no longer be selected by the user.
public abstract void enable()Enables this menu item. It can be selected by the user.
public abstract void setLabel(String label)Changes the menu item's label to be the specified string.
Parameter Description label the new label, or null for no label