KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > peer > MenuItemPeer


1 /*
2  * @(#)MenuItemPeer.java 1.16 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package java.awt.peer;
8
9 /**
10  * The peer interfaces are intended only for use in porting
11  * the AWT. They are not intended for use by application
12  * developers, and developers should not implement peers
13  * nor invoke any of the peer methods directly on the peer
14  * instances.
15  */

16 public interface MenuItemPeer extends MenuComponentPeer {
17     void setLabel(String JavaDoc label);
18     void setEnabled(boolean b);
19
20     /**
21      * DEPRECATED: Replaced by setEnabled(boolean).
22      */

23     void enable();
24
25     /**
26      * DEPRECATED: Replaced by setEnabled(boolean).
27      */

28     void disable();
29 }
30
31
Popular Tags