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

Interface MenuItemPeer

Methods

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

public  interface  java.awt.peer.MenuItemPeer
    extends java.awt.peer.MenuComponentPeer  
{
        // Methods
    public abstract void disable();	
    public abstract void enable();	
    public abstract void setLabel(String  label);	
}


Methods


disable

public abstract void disable() 

Disables this menu item. It can no longer be selected by the user.


enable

public abstract void enable() 

Enables this menu item. It can be selected by the user.


setLabel

public abstract void setLabel(String  label) 

Changes the menu item's label to be the specified string.

ParameterDescription
label the new label, or null for no label



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