2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / javax / swing / tree / DefaultTreeSelectionModel.java
blob79f642afc28da3533f04416bca7e827349454a10
1 /* DefaultTreeSelectionModel.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.tree;
41 import java.beans.PropertyChangeListener;
42 import java.io.IOException;
43 import java.io.ObjectInputStream;
44 import java.io.ObjectOutputStream;
45 import java.io.Serializable;
46 import java.util.EventListener;
47 import java.util.Vector;
48 import javax.swing.DefaultListSelectionModel;
49 import javax.swing.event.SwingPropertyChangeSupport;
50 import javax.swing.event.EventListenerList;
51 import javax.swing.event.TreeSelectionEvent;
52 import javax.swing.event.TreeSelectionListener;
54 /**
55 * DefaultTreeSelectionModel
56 * @author Andrew Selkirk
58 public class DefaultTreeSelectionModel
59 implements Cloneable, Serializable, TreeSelectionModel
61 static final long serialVersionUID = 3288129636638950196L;
63 //-------------------------------------------------------------
64 // Variables --------------------------------------------------
65 //-------------------------------------------------------------
67 /**
68 * SELECTION_MODE_PROPERTY
70 public static final String SELECTION_MODE_PROPERTY = "selectionMode";
72 /**
73 * changeSupport
75 protected SwingPropertyChangeSupport changeSupport;
77 /**
78 * selection
80 protected TreePath[] selection;
82 /**
83 * listenerList
85 protected EventListenerList listenerList;
87 /**
88 * rowMapper
90 protected transient RowMapper rowMapper;
92 /**
93 * listSelectionModel
95 protected DefaultListSelectionModel listSelectionModel;
97 /**
98 * selectionMode
100 protected int selectionMode;
103 * leadPath
105 protected TreePath leadPath;
108 * leadIndex
110 protected int leadIndex;
113 * leadRow
115 protected int leadRow;
118 //-------------------------------------------------------------
119 // Initialization ---------------------------------------------
120 //-------------------------------------------------------------
123 * Constructor DefaultTreeSelectionModel
125 public DefaultTreeSelectionModel() {
126 // TODO
127 } // DefaultTreeSelectionModel()
130 //-------------------------------------------------------------
131 // Methods ----------------------------------------------------
132 //-------------------------------------------------------------
135 * clone
136 * @exception CloneNotSupportedException TODO
137 * @returns Object
139 public Object clone() throws CloneNotSupportedException {
140 return null; // TODO
141 } // clone()
144 * toString
145 * @returns String
147 public String toString() {
148 return null; // TODO
149 } // toString()
152 * writeObject
153 * @param value0 TODO
154 * @exception IOException TODO
156 private void writeObject(ObjectOutputStream value0) throws IOException {
157 // TODO
158 } // writeObject()
161 * readObject
162 * @param value0 TODO
163 * @exception IOException TODO
164 * @exception ClassNotFoundException TODO
166 private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException {
167 // TODO
168 } // readObject()
171 * setRowMapper
172 * @param value0 TODO
174 public void setRowMapper(RowMapper value0) {
175 // TODO
176 } // setRowMapper()
179 * getRowMapper
180 * @returns RowMapper
182 public RowMapper getRowMapper() {
183 return null; // TODO
184 } // getRowMapper()
187 * setSelectionMode
188 * @param value0 TODO
190 public void setSelectionMode(int value0) {
191 // TODO
192 } // setSelectionMode()
195 * getSelectionMode
196 * @returns int
198 public int getSelectionMode() {
199 return 0; // TODO
200 } // getSelectionMode()
203 * setSelectionPath
204 * @param value0 TODO
206 public void setSelectionPath(TreePath value0) {
207 // TODO
208 } // setSelectionPath()
211 * setSelectionPaths
212 * @param value0 TODO
214 public void setSelectionPaths(TreePath[] value0) {
215 // TODO
216 } // setSelectionPaths()
219 * addSelectionPath
220 * @param value0 TODO
222 public void addSelectionPath(TreePath value0) {
223 // TODO
224 } // addSelectionPath()
227 * addSelectionPaths
228 * @param value0 TODO
230 public void addSelectionPaths(TreePath[] value0) {
231 // TODO
232 } // addSelectionPaths()
235 * removeSelectionPath
236 * @param value0 TODO
238 public void removeSelectionPath(TreePath value0) {
239 // TODO
240 } // removeSelectionPath()
243 * removeSelectionPaths
244 * @param value0 TODO
246 public void removeSelectionPaths(TreePath[] value0) {
247 // TODO
248 } // removeSelectionPaths()
251 * getSelectionPath
252 * @returns TreePath
254 public TreePath getSelectionPath() {
255 return null; // TODO
256 } // getSelectionPath()
259 * getSelectionPaths
260 * @returns TreePath[]
262 public TreePath[] getSelectionPaths() {
263 return null; // TODO
264 } // getSelectionPaths()
267 * getSelectionCount
268 * @returns int
270 public int getSelectionCount() {
271 return 0; // TODO
272 } // getSelectionCount()
275 * isPathSelected
276 * @param value0 TODO
277 * @returns boolean
279 public boolean isPathSelected(TreePath value0) {
280 return false; // TODO
281 } // isPathSelected()
284 * isSelectionEmpty
285 * @returns boolean
287 public boolean isSelectionEmpty() {
288 return false; // TODO
289 } // isSelectionEmpty()
292 * clearSelection
294 public void clearSelection() {
295 // TODO
296 } // clearSelection()
299 * addTreeSelectionListener
300 * @param value0 TODO
302 public void addTreeSelectionListener(TreeSelectionListener value0) {
303 // TODO
304 } // addTreeSelectionListener()
307 * removeTreeSelectionListener
308 * @param value0 TODO
310 public void removeTreeSelectionListener(TreeSelectionListener value0) {
311 // TODO
312 } // removeTreeSelectionListener()
315 * fireValueChanged
316 * @param value0 TODO
318 protected void fireValueChanged(TreeSelectionEvent value0) {
319 // TODO
320 } // fireValueChanged()
323 * getListeners
324 * @param value0 TODO
325 * @returns EventListener[]
327 public EventListener[] getListeners(Class value0) {
328 return null; // TODO
329 } // getListeners()
332 * getSelectionRows
333 * @returns int[]
335 public int[] getSelectionRows() {
336 return null; // TODO
337 } // getSelectionRows()
340 * getMinSelectionRow
341 * @returns int
343 public int getMinSelectionRow() {
344 return 0; // TODO
345 } // getMinSelectionRow()
348 * getMaxSelectionRow
349 * @returns int
351 public int getMaxSelectionRow() {
352 return 0; // TODO
353 } // getMaxSelectionRow()
356 * isRowSelected
357 * @param value0 TODO
358 * @returns boolean
360 public boolean isRowSelected(int value0) {
361 return false; // TODO
362 } // isRowSelected()
365 * resetRowSelection
367 public void resetRowSelection() {
368 // TODO
369 } // resetRowSelection()
372 * getLeadSelectionRow
373 * @returns int
375 public int getLeadSelectionRow() {
376 return 0; // TODO
377 } // getLeadSelectionRow()
380 * getLeadSelectionPath
381 * @returns TreePath
383 public TreePath getLeadSelectionPath() {
384 return null; // TODO
385 } // getLeadSelectionPath()
388 * addPropertyChangeListener
389 * @param value0 TODO
391 public synchronized void addPropertyChangeListener(PropertyChangeListener value0) {
392 // TODO
393 } // addPropertyChangeListener()
396 * removePropertyChangeListener
397 * @param value0 TODO
399 public synchronized void removePropertyChangeListener(PropertyChangeListener value0) {
400 // TODO
401 } // removePropertyChangeListener()
404 * insureRowContinuity
406 protected void insureRowContinuity() {
407 // TODO
408 } // insureRowContinuity()
411 * arePathsContiguous
412 * @param value0 TODO
413 * @returns boolean
415 protected boolean arePathsContiguous(TreePath[] value0) {
416 return false; // TODO
417 } // arePathsContiguous()
420 * canPathsBeAdded
421 * @param value0 TODO
422 * @returns boolean
424 protected boolean canPathsBeAdded(TreePath[] value0) {
425 return false; // TODO
426 } // canPathsBeAdded()
429 * canPathsBeRemoved
430 * @param value0 TODO
431 * @returns boolean
433 protected boolean canPathsBeRemoved(TreePath[] value0) {
434 return false; // TODO
435 } // canPathsBeRemoved()
438 * notifyPathChange
439 * @param value0 TODO
440 * @param value1 TODO
442 protected void notifyPathChange(Vector value0, TreePath value1) {
443 // TODO
444 } // notifyPathChange()
447 * updateLeadIndex
449 protected void updateLeadIndex() {
450 // TODO
451 } // updateLeadIndex()
454 * insureUniqueness
456 protected void insureUniqueness() {
457 // TODO
458 } // insureUniqueness()
461 } // DefaultTreeSelectionModel