Packages  This Package  Prev  Next  Index  

§3.15 Interface MenuItemPeer

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  (II-§3.14)
{
        // Methods
    public abstract void disable();	§3.15.1
    public abstract void enable();	§3.15.2
    public abstract void setLabel(String  label);	§3.15.3
}

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.
Parameters:
label - the new label, or null for no label

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com