2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / javax / swing / table / DefaultTableColumnModel.java
blob2946829f99cc2252e241c4b4e8777ac897a86207
1 /* DefaultTableColumnModel.java --
2 Copyright (C) 2002 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. */
39 package javax.swing.table;
41 import java.beans.PropertyChangeEvent;
42 import java.beans.PropertyChangeListener;
43 import java.io.Serializable;
44 import java.util.Enumeration;
45 import java.util.EventListener;
46 import java.util.Vector;
47 import javax.swing.ListSelectionModel;
48 import javax.swing.event.ChangeEvent;
49 import javax.swing.event.EventListenerList;
50 import javax.swing.event.ListSelectionEvent;
51 import javax.swing.event.ListSelectionListener;
52 import javax.swing.event.TableColumnModelEvent;
53 import javax.swing.event.TableColumnModelListener;
55 /**
56 * DefaultTableColumnModel
57 * @author Andrew Selkirk
58 * @version 1.0
60 public class DefaultTableColumnModel
61 implements TableColumnModel, PropertyChangeListener,
62 ListSelectionListener, Serializable
64 static final long serialVersionUID = 6580012493508960512L;
66 //-------------------------------------------------------------
67 // Variables --------------------------------------------------
68 //-------------------------------------------------------------
70 /**
71 * tableColumns
73 protected Vector tableColumns;
75 /**
76 * selectionModel
78 protected ListSelectionModel selectionModel;
80 /**
81 * columnMargin
83 protected int columnMargin;
85 /**
86 * listenerList
88 protected EventListenerList listenerList;
90 /**
91 * changeEvent
93 protected transient ChangeEvent changeEvent;
95 /**
96 * columnSelectionAllowed
98 protected boolean columnSelectionAllowed;
101 * totalColumnWidth
103 protected int totalColumnWidth;
106 //-------------------------------------------------------------
107 // Initialization ---------------------------------------------
108 //-------------------------------------------------------------
111 * Constructor DefaultTableColumnModel
113 public DefaultTableColumnModel() {
114 // TODO
115 } // DefaultTableColumnModel()
118 //-------------------------------------------------------------
119 // Methods ----------------------------------------------------
120 //-------------------------------------------------------------
123 * addColumn
124 * @param value0 TODO
126 public void addColumn(TableColumn value0) {
127 // TODO
128 } // addColumn()
131 * removeColumn
132 * @param value0 TODO
134 public void removeColumn(TableColumn value0) {
135 // TODO
136 } // removeColumn()
139 * moveColumn
140 * @param value0 TODO
141 * @param value1 TODO
143 public void moveColumn(int value0, int value1) {
144 // TODO
145 } // moveColumn()
148 * setColumnMargin
149 * @param value0 TODO
151 public void setColumnMargin(int value0) {
152 // TODO
153 } // setColumnMargin()
156 * getColumnCount
157 * @returns int
159 public int getColumnCount() {
160 return 0; // TODO
161 } // getColumnCount()
164 * getColumns
165 * @returns Enumeration
167 public Enumeration getColumns() {
168 return null; // TODO
169 } // getColumns()
172 * getColumnIndex
173 * @param value0 TODO
174 * @returns int
176 public int getColumnIndex(Object value0) {
177 return 0; // TODO
178 } // getColumnIndex()
181 * getColumn
182 * @param value0 TODO
183 * @returns TableColumn
185 public TableColumn getColumn(int value0) {
186 return null; // TODO
187 } // getColumn()
190 * getColumnMargin
191 * @returns int
193 public int getColumnMargin() {
194 return 0; // TODO
195 } // getColumnMargin()
198 * getColumnIndexAtX
199 * @param value0 TODO
200 * @returns int
202 public int getColumnIndexAtX(int value0) {
203 return 0; // TODO
204 } // getColumnIndexAtX()
207 * getTotalColumnWidth
208 * @returns int
210 public int getTotalColumnWidth() {
211 return 0; // TODO
212 } // getTotalColumnWidth()
215 * setSelectionModel
216 * @param value0 TODO
218 public void setSelectionModel(ListSelectionModel value0) {
219 // TODO
220 } // setSelectionModel()
223 * getSelectionModel
224 * @returns ListSelectionModel
226 public ListSelectionModel getSelectionModel() {
227 return null; // TODO
228 } // getSelectionModel()
231 * setColumnSelectionAllowed
232 * @param value0 TODO
234 public void setColumnSelectionAllowed(boolean value0) {
235 // TODO
236 } // setColumnSelectionAllowed()
239 * getColumnSelectionAllowed
240 * @returns boolean
242 public boolean getColumnSelectionAllowed() {
243 return false; // TODO
244 } // getColumnSelectionAllowed()
247 * getSelectedColumns
248 * @returns int[]
250 public int[] getSelectedColumns() {
251 return null; // TODO
252 } // getSelectedColumns()
255 * getSelectedColumnCount
256 * @returns int
258 public int getSelectedColumnCount() {
259 return 0; // TODO
260 } // getSelectedColumnCount()
263 * addColumnModelListener
264 * @param value0 TODO
266 public void addColumnModelListener(TableColumnModelListener value0) {
267 // TODO
268 } // addColumnModelListener()
271 * removeColumnModelListener
272 * @param value0 TODO
274 public void removeColumnModelListener(TableColumnModelListener value0) {
275 // TODO
276 } // removeColumnModelListener()
279 * fireColumnAdded
280 * @param value0 TODO
282 protected void fireColumnAdded(TableColumnModelEvent value0) {
283 // TODO
284 } // fireColumnAdded()
287 * fireColumnRemoved
288 * @param value0 TODO
290 protected void fireColumnRemoved(TableColumnModelEvent value0) {
291 // TODO
292 } // fireColumnRemoved()
295 * fireColumnMoved
296 * @param value0 TODO
298 protected void fireColumnMoved(TableColumnModelEvent value0) {
299 // TODO
300 } // fireColumnMoved()
303 * fireColumnSelectionChanged
304 * @param value0 TODO
306 protected void fireColumnSelectionChanged(ListSelectionEvent value0) {
307 // TODO
308 } // fireColumnSelectionChanged()
311 * fireColumnMarginChanged
313 protected void fireColumnMarginChanged() {
314 // TODO
315 } // fireColumnMarginChanged()
318 * getListeners
319 * @param value0 TODO
320 * @returns EventListener[]
322 public EventListener[] getListeners(Class value0) {
323 return null; // TODO
324 } // getListeners()
327 * propertyChange
328 * @param value0 TODO
330 public void propertyChange(PropertyChangeEvent value0) {
331 // TODO
332 } // propertyChange()
335 * valueChanged
336 * @param value0 TODO
338 public void valueChanged(ListSelectionEvent value0) {
339 // TODO
340 } // valueChanged()
343 * createSelectionModel
344 * @returns ListSelectionModel
346 protected ListSelectionModel createSelectionModel() {
347 return null; // TODO
348 } // createSelectionModel()
351 * recalcWidthCache
353 protected void recalcWidthCache() {
354 // TODO
355 } // recalcWidthCache()
358 * invalidateWidthCache
360 private void invalidateWidthCache() {
361 // TODO
362 } // invalidateWidthCache()
365 } // DefaultTableColumnModel