Save This Page
Home » openjdk-7 » java » awt » peer » [javadoc | source]
java.awt.peer
public interface: MenuItemPeer [javadoc | source]

All Implemented Interfaces:
    MenuComponentPeer

All Known Implementing Classes:
    PopupMenuPeer, MenuPeer, CheckboxMenuItemPeer

The peer interface for menu items. This is used by MenuItem . The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.
Method from java.awt.peer.MenuItemPeer Summary:
setEnabled,   setLabel
Method from java.awt.peer.MenuItemPeer Detail:
 public  void setEnabled(boolean e)
    Enables or disables the menu item.
 public  void setLabel(String label)
    Sets the label to be displayed in this menu item.