KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)ListPeer.java 1.18 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.Dimension JavaDoc;
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 ListPeer extends ComponentPeer {
19     int[] getSelectedIndexes();
20     void add(String JavaDoc item, int index);
21     void delItems(int start, int end);
22     void removeAll();
23     void select(int index);
24     void deselect(int index);
25     void makeVisible(int index);
26     void setMultipleMode(boolean b);
27     Dimension JavaDoc getPreferredSize(int rows);
28     Dimension JavaDoc getMinimumSize(int rows);
29
30     /**
31      * DEPRECATED: Replaced by add(String, int).
32      */

33     void addItem(String JavaDoc item, int index);
34
35     /**
36      * DEPRECATED: Replaced by removeAll().
37      */

38     void clear();
39
40     /**
41      * DEPRECATED: Replaced by setMultipleMode(boolean).
42      */

43     void setMultipleSelections(boolean v);
44
45     /**
46      * DEPRECATED: Replaced by getPreferredSize(int).
47      */

48     Dimension JavaDoc preferredSize(int v);
49
50     /**
51      * DEPRECATED: Replaced by getMinimumSize(int).
52      */

53     Dimension JavaDoc minimumSize(int v);
54 }
55
Popular Tags