KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)ChoicePeer.java 1.17 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 import java.awt.*;
10
11 /**
12  * The peer interfaces are intended only for use in porting
13  * the AWT. They are not intended for use by application
14  * developers, and developers should not implement peers
15  * nor invoke any of the peer methods directly on the peer
16  * instances.
17  */

18 public interface ChoicePeer extends ComponentPeer {
19     void add(String JavaDoc item, int index);
20     void remove(int index);
21     void removeAll();
22     void select(int index);
23
24     /*
25      * DEPRECATED: Replaced by add(String, int).
26      */

27     void addItem(String JavaDoc item, int index);
28 }
29
Popular Tags