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

All Implemented Interfaces:
    MenuItemPeer

All Known Implementing Classes:
    PopupMenuPeer

The peer interface for menus. This is used by Menu . 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.MenuPeer Summary:
addItem,   addSeparator,   delItem
Method from java.awt.peer.MenuPeer Detail:
 public  void addItem(MenuItem item)
    Adds the specified menu item to the menu.
 public  void addSeparator()
    Adds a separator (e.g. a horizontal line or similar) to the menu.
 public  void delItem(int index)
    Removes the menu item at the specified index.