java.awt.peer
Interface MenuPeer

All Superinterfaces:
MenuComponentPeer, MenuItemPeer
All Known Subinterfaces:
PopupMenuPeer

public interface MenuPeer
extends MenuItemPeer

Disabled: no SafeJ information.

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 Summary
 void addItem(MenuItem item)
          Adds the specified menu item to the menu.
 void addSeparator()
          Adds a separator (e.g.
 void delItem(int index)
          Removes the menu item at the specified index.
 
Methods inherited from interface java.awt.peer.MenuItemPeer
setEnabled, setLabel
 
Methods inherited from interface java.awt.peer.MenuComponentPeer
dispose, setFont
 

Method Detail

addSeparator

void addSeparator()
Class is disabled.

Adds a separator (e.g. a horizontal line or similar) to the menu.

See Also:
Menu.addSeparator()

addItem

void addItem(MenuItem item)
Class is disabled.

Adds the specified menu item to the menu.

Parameters:
item - the menu item to add
See Also:
Menu.add(MenuItem)

delItem

void delItem(int index)
Class is disabled.

Removes the menu item at the specified index.

Parameters:
index - the index of the item to remove
See Also:
Menu.remove(int)