2004-08-12 Janis Johnson <janis187@us.ibm.com>
[official-gcc.git] / libjava / javax / swing / DefaultComboBoxModel.java
blob55faf8fdf3b3e54c17fae28d65fee9826cefb4bb
1 /* DefaultComboBoxModel.java --
2 Copyright (C) 2002, 2004 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
38 package javax.swing;
40 import java.io.Serializable;
41 import java.util.Vector;
43 /**
44 * DefaultComboBoxModel
45 * @author Andrew Selkirk
46 * @version 1.0
48 public class DefaultComboBoxModel extends AbstractListModel
49 implements MutableComboBoxModel, Serializable
51 static final long serialVersionUID = 6698657703676921904L;
53 //-------------------------------------------------------------
54 // Variables --------------------------------------------------
55 //-------------------------------------------------------------
57 /**
58 * list
60 private Vector list;
62 /**
63 * selectedItem
65 private Object selectedItem;
68 //-------------------------------------------------------------
69 // Initialization ---------------------------------------------
70 //-------------------------------------------------------------
72 /**
73 * Constructor DefaultComboBoxModel
75 public DefaultComboBoxModel() {
76 // TODO
77 } // DefaultComboBoxModel()
79 /**
80 * Constructor DefaultComboBoxModel
81 * @param items TODO
83 public DefaultComboBoxModel(Object[] items) {
84 // TODO
85 } // DefaultComboBoxModel()
87 /**
88 * Constructor DefaultComboBoxModel
89 * @param vector TODO
91 public DefaultComboBoxModel(Vector vector) {
92 // TODO
93 } // DefaultComboBoxModel()
96 //-------------------------------------------------------------
97 // Methods ----------------------------------------------------
98 //-------------------------------------------------------------
101 * addElement
102 * @param object TODO
104 public void addElement(Object object) {
105 // TODO
106 } // addElement()
109 * removeElementAt
110 * @param index TODO
112 public void removeElementAt(int index) {
113 // TODO
114 } // removeElementAt()
117 * insertElementAt
118 * @param object TODO
119 * @param index TODO
121 public void insertElementAt(Object object, int index) {
122 // TODO
123 } // insertElementAt()
126 * removeElement
127 * @param object TODO
129 public void removeElement(Object object) {
130 // TODO
131 } // removeElement()
134 * removeAllElements
136 public void removeAllElements() {
137 // TODO
138 } // removeAllElements()
141 * getSize
142 * @returns int
144 public int getSize() {
145 return 0; // TODO
146 } // getSize()
149 * setSelectedItem
150 * @param object TODO
152 public void setSelectedItem(Object object) {
153 // TODO
154 } // setSelectedItem()
157 * getSelectedItem
158 * @returns Object
160 public Object getSelectedItem() {
161 return null; // TODO
162 } // getSelectedItem()
165 * getElementAt
166 * @param index TODO
167 * @returns Object
169 public Object getElementAt(int index) {
170 return null; // TODO
171 } // getElementAt()
174 * getIndexOf
175 * @param object TODO
176 * @returns int
178 public int getIndexOf(Object object) {
179 return 0; // TODO
180 } // getIndexOf()
183 } // DefaultComboBoxModel