java.awt.peer
Interface MenuItemPeer

All Superinterfaces:
MenuComponentPeer
All Known Subinterfaces:
CheckboxMenuItemPeer, MenuPeer, PopupMenuPeer

public interface MenuItemPeer
extends MenuComponentPeer

Disabled: no SafeJ information.

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 Summary
 void setEnabled(boolean e)
          Enables or disables the menu item.
 void setLabel(String label)
          Sets the label to be displayed in this menu item.
 
Methods inherited from interface java.awt.peer.MenuComponentPeer
dispose, setFont
 

Method Detail

setLabel

void setLabel(String label)
Class is disabled.

Sets the label to be displayed in this menu item.

Parameters:
label - the label to be displayed

setEnabled

void setEnabled(boolean e)
Class is disabled.

Enables or disables the menu item.

Parameters:
e - true to enable the menu item, false to disable it