Package java.awt.peer Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface MenuPeer

Methods

The menu peer interface specifies the methods that all implementations of Abstract Window Toolkit menus must define.

public  interface  java.awt.peer.MenuPeer
    extends java.awt.peer.MenuItemPeer  
{
        // Methods
    public abstract void addItem(MenuItem  item);	
    public abstract void addSeparator();	
    public abstract void delItem(int  index);	
}


Methods


addItem

public abstract void addItem(MenuItem  item) 

Adds the specified menu item to this menu.

ParameterDescription
item the menu item to be added


addSeparator

public abstract void addSeparator() 

Adds a separator line to this menu.


delItem

public abstract void delItem(int  index) 

Deletes the item at the specified index from this menu.

ParameterDescription
index an index in the menu



Top© 1996 Sun Microsystems, Inc. All rights reserved.