1 | /* DefaultTableColumnModel.java --
|
---|
2 | Copyright (C) 2002 Free Software Foundation, Inc.
|
---|
3 |
|
---|
4 | This file is part of GNU Classpath.
|
---|
5 |
|
---|
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.
|
---|
10 |
|
---|
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.
|
---|
15 |
|
---|
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.
|
---|
20 |
|
---|
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.
|
---|
25 |
|
---|
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. */
|
---|
37 |
|
---|
38 | package javax.swing.table;
|
---|
39 |
|
---|
40 | // Imports
|
---|
41 | import java.beans.*;
|
---|
42 | import java.io.*;
|
---|
43 | import java.util.*;
|
---|
44 | import javax.swing.*;
|
---|
45 | import javax.swing.event.*;
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * DefaultTableColumnModel
|
---|
49 | * @author Andrew Selkirk
|
---|
50 | * @version 1.0
|
---|
51 | */
|
---|
52 | public class DefaultTableColumnModel implements TableColumnModel, PropertyChangeListener, ListSelectionListener, Serializable {
|
---|
53 |
|
---|
54 | //-------------------------------------------------------------
|
---|
55 | // Variables --------------------------------------------------
|
---|
56 | //-------------------------------------------------------------
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * tableColumns
|
---|
60 | */
|
---|
61 | protected Vector tableColumns;
|
---|
62 |
|
---|
63 | /**
|
---|
64 | * selectionModel
|
---|
65 | */
|
---|
66 | protected ListSelectionModel selectionModel;
|
---|
67 |
|
---|
68 | /**
|
---|
69 | * columnMargin
|
---|
70 | */
|
---|
71 | protected int columnMargin;
|
---|
72 |
|
---|
73 | /**
|
---|
74 | * listenerList
|
---|
75 | */
|
---|
76 | protected EventListenerList listenerList;
|
---|
77 |
|
---|
78 | /**
|
---|
79 | * changeEvent
|
---|
80 | */
|
---|
81 | protected transient ChangeEvent changeEvent;
|
---|
82 |
|
---|
83 | /**
|
---|
84 | * columnSelectionAllowed
|
---|
85 | */
|
---|
86 | protected boolean columnSelectionAllowed;
|
---|
87 |
|
---|
88 | /**
|
---|
89 | * totalColumnWidth
|
---|
90 | */
|
---|
91 | protected int totalColumnWidth;
|
---|
92 |
|
---|
93 |
|
---|
94 | //-------------------------------------------------------------
|
---|
95 | // Initialization ---------------------------------------------
|
---|
96 | //-------------------------------------------------------------
|
---|
97 |
|
---|
98 | /**
|
---|
99 | * Constructor DefaultTableColumnModel
|
---|
100 | */
|
---|
101 | public DefaultTableColumnModel() {
|
---|
102 | // TODO
|
---|
103 | } // DefaultTableColumnModel()
|
---|
104 |
|
---|
105 |
|
---|
106 | //-------------------------------------------------------------
|
---|
107 | // Methods ----------------------------------------------------
|
---|
108 | //-------------------------------------------------------------
|
---|
109 |
|
---|
110 | /**
|
---|
111 | * addColumn
|
---|
112 | * @param value0 TODO
|
---|
113 | */
|
---|
114 | public void addColumn(TableColumn value0) {
|
---|
115 | // TODO
|
---|
116 | } // addColumn()
|
---|
117 |
|
---|
118 | /**
|
---|
119 | * removeColumn
|
---|
120 | * @param value0 TODO
|
---|
121 | */
|
---|
122 | public void removeColumn(TableColumn value0) {
|
---|
123 | // TODO
|
---|
124 | } // removeColumn()
|
---|
125 |
|
---|
126 | /**
|
---|
127 | * moveColumn
|
---|
128 | * @param value0 TODO
|
---|
129 | * @param value1 TODO
|
---|
130 | */
|
---|
131 | public void moveColumn(int value0, int value1) {
|
---|
132 | // TODO
|
---|
133 | } // moveColumn()
|
---|
134 |
|
---|
135 | /**
|
---|
136 | * setColumnMargin
|
---|
137 | * @param value0 TODO
|
---|
138 | */
|
---|
139 | public void setColumnMargin(int value0) {
|
---|
140 | // TODO
|
---|
141 | } // setColumnMargin()
|
---|
142 |
|
---|
143 | /**
|
---|
144 | * getColumnCount
|
---|
145 | * @returns int
|
---|
146 | */
|
---|
147 | public int getColumnCount() {
|
---|
148 | return 0; // TODO
|
---|
149 | } // getColumnCount()
|
---|
150 |
|
---|
151 | /**
|
---|
152 | * getColumns
|
---|
153 | * @returns Enumeration
|
---|
154 | */
|
---|
155 | public Enumeration getColumns() {
|
---|
156 | return null; // TODO
|
---|
157 | } // getColumns()
|
---|
158 |
|
---|
159 | /**
|
---|
160 | * getColumnIndex
|
---|
161 | * @param value0 TODO
|
---|
162 | * @returns int
|
---|
163 | */
|
---|
164 | public int getColumnIndex(Object value0) {
|
---|
165 | return 0; // TODO
|
---|
166 | } // getColumnIndex()
|
---|
167 |
|
---|
168 | /**
|
---|
169 | * getColumn
|
---|
170 | * @param value0 TODO
|
---|
171 | * @returns TableColumn
|
---|
172 | */
|
---|
173 | public TableColumn getColumn(int value0) {
|
---|
174 | return null; // TODO
|
---|
175 | } // getColumn()
|
---|
176 |
|
---|
177 | /**
|
---|
178 | * getColumnMargin
|
---|
179 | * @returns int
|
---|
180 | */
|
---|
181 | public int getColumnMargin() {
|
---|
182 | return 0; // TODO
|
---|
183 | } // getColumnMargin()
|
---|
184 |
|
---|
185 | /**
|
---|
186 | * getColumnIndexAtX
|
---|
187 | * @param value0 TODO
|
---|
188 | * @returns int
|
---|
189 | */
|
---|
190 | public int getColumnIndexAtX(int value0) {
|
---|
191 | return 0; // TODO
|
---|
192 | } // getColumnIndexAtX()
|
---|
193 |
|
---|
194 | /**
|
---|
195 | * getTotalColumnWidth
|
---|
196 | * @returns int
|
---|
197 | */
|
---|
198 | public int getTotalColumnWidth() {
|
---|
199 | return 0; // TODO
|
---|
200 | } // getTotalColumnWidth()
|
---|
201 |
|
---|
202 | /**
|
---|
203 | * setSelectionModel
|
---|
204 | * @param value0 TODO
|
---|
205 | */
|
---|
206 | public void setSelectionModel(ListSelectionModel value0) {
|
---|
207 | // TODO
|
---|
208 | } // setSelectionModel()
|
---|
209 |
|
---|
210 | /**
|
---|
211 | * getSelectionModel
|
---|
212 | * @returns ListSelectionModel
|
---|
213 | */
|
---|
214 | public ListSelectionModel getSelectionModel() {
|
---|
215 | return null; // TODO
|
---|
216 | } // getSelectionModel()
|
---|
217 |
|
---|
218 | /**
|
---|
219 | * setColumnSelectionAllowed
|
---|
220 | * @param value0 TODO
|
---|
221 | */
|
---|
222 | public void setColumnSelectionAllowed(boolean value0) {
|
---|
223 | // TODO
|
---|
224 | } // setColumnSelectionAllowed()
|
---|
225 |
|
---|
226 | /**
|
---|
227 | * getColumnSelectionAllowed
|
---|
228 | * @returns boolean
|
---|
229 | */
|
---|
230 | public boolean getColumnSelectionAllowed() {
|
---|
231 | return false; // TODO
|
---|
232 | } // getColumnSelectionAllowed()
|
---|
233 |
|
---|
234 | /**
|
---|
235 | * getSelectedColumns
|
---|
236 | * @returns int[]
|
---|
237 | */
|
---|
238 | public int[] getSelectedColumns() {
|
---|
239 | return null; // TODO
|
---|
240 | } // getSelectedColumns()
|
---|
241 |
|
---|
242 | /**
|
---|
243 | * getSelectedColumnCount
|
---|
244 | * @returns int
|
---|
245 | */
|
---|
246 | public int getSelectedColumnCount() {
|
---|
247 | return 0; // TODO
|
---|
248 | } // getSelectedColumnCount()
|
---|
249 |
|
---|
250 | /**
|
---|
251 | * addColumnModelListener
|
---|
252 | * @param value0 TODO
|
---|
253 | */
|
---|
254 | public void addColumnModelListener(TableColumnModelListener value0) {
|
---|
255 | // TODO
|
---|
256 | } // addColumnModelListener()
|
---|
257 |
|
---|
258 | /**
|
---|
259 | * removeColumnModelListener
|
---|
260 | * @param value0 TODO
|
---|
261 | */
|
---|
262 | public void removeColumnModelListener(TableColumnModelListener value0) {
|
---|
263 | // TODO
|
---|
264 | } // removeColumnModelListener()
|
---|
265 |
|
---|
266 | /**
|
---|
267 | * fireColumnAdded
|
---|
268 | * @param value0 TODO
|
---|
269 | */
|
---|
270 | protected void fireColumnAdded(TableColumnModelEvent value0) {
|
---|
271 | // TODO
|
---|
272 | } // fireColumnAdded()
|
---|
273 |
|
---|
274 | /**
|
---|
275 | * fireColumnRemoved
|
---|
276 | * @param value0 TODO
|
---|
277 | */
|
---|
278 | protected void fireColumnRemoved(TableColumnModelEvent value0) {
|
---|
279 | // TODO
|
---|
280 | } // fireColumnRemoved()
|
---|
281 |
|
---|
282 | /**
|
---|
283 | * fireColumnMoved
|
---|
284 | * @param value0 TODO
|
---|
285 | */
|
---|
286 | protected void fireColumnMoved(TableColumnModelEvent value0) {
|
---|
287 | // TODO
|
---|
288 | } // fireColumnMoved()
|
---|
289 |
|
---|
290 | /**
|
---|
291 | * fireColumnSelectionChanged
|
---|
292 | * @param value0 TODO
|
---|
293 | */
|
---|
294 | protected void fireColumnSelectionChanged(ListSelectionEvent value0) {
|
---|
295 | // TODO
|
---|
296 | } // fireColumnSelectionChanged()
|
---|
297 |
|
---|
298 | /**
|
---|
299 | * fireColumnMarginChanged
|
---|
300 | */
|
---|
301 | protected void fireColumnMarginChanged() {
|
---|
302 | // TODO
|
---|
303 | } // fireColumnMarginChanged()
|
---|
304 |
|
---|
305 | /**
|
---|
306 | * getListeners
|
---|
307 | * @param value0 TODO
|
---|
308 | * @returns EventListener[]
|
---|
309 | */
|
---|
310 | public EventListener[] getListeners(Class value0) {
|
---|
311 | return null; // TODO
|
---|
312 | } // getListeners()
|
---|
313 |
|
---|
314 | /**
|
---|
315 | * propertyChange
|
---|
316 | * @param value0 TODO
|
---|
317 | */
|
---|
318 | public void propertyChange(PropertyChangeEvent value0) {
|
---|
319 | // TODO
|
---|
320 | } // propertyChange()
|
---|
321 |
|
---|
322 | /**
|
---|
323 | * valueChanged
|
---|
324 | * @param value0 TODO
|
---|
325 | */
|
---|
326 | public void valueChanged(ListSelectionEvent value0) {
|
---|
327 | // TODO
|
---|
328 | } // valueChanged()
|
---|
329 |
|
---|
330 | /**
|
---|
331 | * createSelectionModel
|
---|
332 | * @returns ListSelectionModel
|
---|
333 | */
|
---|
334 | protected ListSelectionModel createSelectionModel() {
|
---|
335 | return null; // TODO
|
---|
336 | } // createSelectionModel()
|
---|
337 |
|
---|
338 | /**
|
---|
339 | * recalcWidthCache
|
---|
340 | */
|
---|
341 | protected void recalcWidthCache() {
|
---|
342 | // TODO
|
---|
343 | } // recalcWidthCache()
|
---|
344 |
|
---|
345 | /**
|
---|
346 | * invalidateWidthCache
|
---|
347 | */
|
---|
348 | private void invalidateWidthCache() {
|
---|
349 | // TODO
|
---|
350 | } // invalidateWidthCache()
|
---|
351 |
|
---|
352 |
|
---|
353 | } // DefaultTableColumnModel
|
---|
354 |
|
---|