2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / javax / swing / JSplitPane.java
blobf47ef7595d1bfe18f9e49c5a044accc990cea17d
1 /* JSplitPane.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. */
38 package javax.swing;
40 // Imports
41 import java.awt.*;
42 import java.io.*;
43 import javax.accessibility.*;
44 import javax.swing.plaf.*;
46 /**
47 * JSplitPane
48 * @author Andrew Selkirk
49 * @version 1.0
51 public class JSplitPane extends JComponent implements Accessible {
53 //-------------------------------------------------------------
54 // Classes ----------------------------------------------------
55 //-------------------------------------------------------------
57 /**
58 * AccessibleJSplitPane
60 protected class AccessibleJSplitPane extends AccessibleJComponent
61 implements AccessibleValue {
63 //-------------------------------------------------------------
64 // Variables --------------------------------------------------
65 //-------------------------------------------------------------
68 //-------------------------------------------------------------
69 // Initialization ---------------------------------------------
70 //-------------------------------------------------------------
72 /**
73 * Constructor AccessibleJSplitPane
74 * @param component TODO
76 protected AccessibleJSplitPane(JSplitPane component) {
77 super(component);
78 // TODO
79 } // AccessibleJSplitPane()
82 //-------------------------------------------------------------
83 // Methods ----------------------------------------------------
84 //-------------------------------------------------------------
86 /**
87 * getAccessibleStateSet
88 * @returns AccessibleStateSet
90 public AccessibleStateSet getAccessibleStateSet() {
91 return null; // TODO
92 } // getAccessibleStateSet()
94 /**
95 * getAccessibleRole
96 * @returns AccessibleRole
98 public AccessibleRole getAccessibleRole() {
99 return AccessibleRole.SPLIT_PANE;
100 } // getAccessibleRole()
103 * getAccessibleValue
104 * @returns AccessibleValue
106 public AccessibleValue getAccessibleValue() {
107 return null; // TODO
108 } // getAccessibleValue()
111 * getCurrentAccessibleValue
112 * @returns Number
114 public Number getCurrentAccessibleValue() {
115 return null; // TODO
116 } // getCurrentAccessibleValue()
119 * setCurrentAccessibleValue
120 * @param value0 TODO
121 * @returns boolean
123 public boolean setCurrentAccessibleValue(Number value0) {
124 return false; // TODO
125 } // setCurrentAccessibleValue()
128 * getMinimumAccessibleValue
129 * @returns Number
131 public Number getMinimumAccessibleValue() {
132 return null; // TODO
133 } // getMinimumAccessibleValue()
136 * getMaximumAccessibleValue
137 * @returns Number
139 public Number getMaximumAccessibleValue() {
140 return null; // TODO
141 } // getMaximumAccessibleValue()
144 } // AccessibleJSplitPane
147 //-------------------------------------------------------------
148 // Variables --------------------------------------------------
149 //-------------------------------------------------------------
152 * uiClassID
154 private static final String uiClassID = "SplitPaneUI";
157 * VERTICAL_SPLIT
159 public static final int VERTICAL_SPLIT = 0;
162 * HORIZONTAL_SPLIT
164 public static final int HORIZONTAL_SPLIT = 1;
167 * LEFT
169 public static final String LEFT = "left";
172 * RIGHT
174 public static final String RIGHT = "right";
177 * TOP
179 public static final String TOP = "top";
182 * BOTTOM
184 public static final String BOTTOM = "bottom";
187 * DIVIDER
189 public static final String DIVIDER = "divider";
192 * ORIENTATION_PROPERTY
194 public static final String ORIENTATION_PROPERTY = "orientation";
197 * CONTINUOUS_LAYOUT_PROPERTY
199 public static final String CONTINUOUS_LAYOUT_PROPERTY = "continuousLayout";
202 * DIVIDER_SIZE_PROPERTY
204 public static final String DIVIDER_SIZE_PROPERTY = "dividerSize";
207 * ONE_TOUCH_EXPANDABLE_PROPERTY
209 public static final String ONE_TOUCH_EXPANDABLE_PROPERTY = "oneTouchExpandable";
212 * LAST_DIVIDER_LOCATION_PROPERTY
214 public static final String LAST_DIVIDER_LOCATION_PROPERTY = "lastDividerLocation";
217 * DIVIDER_LOCATION_PROPERTY
219 public static final String DIVIDER_LOCATION_PROPERTY = "dividerLocation";
222 * RESIZE_WEIGHT_PROPERTY
224 public static final String RESIZE_WEIGHT_PROPERTY = "resizeWeight";
227 * orientation
229 protected int orientation;
232 * continuousLayout
234 protected boolean continuousLayout;
237 * leftComponent
239 protected Component leftComponent;
242 * rightComponent
244 protected Component rightComponent;
247 * dividerSize
249 protected int dividerSize;
252 * oneTouchExpandable
254 protected boolean oneTouchExpandable;
257 * lastDividerLocation
259 protected int lastDividerLocation;
262 * resizeWeight
264 private double resizeWeight;
267 * dividerLocation
269 private int dividerLocation;
272 //-------------------------------------------------------------
273 // Initialization ---------------------------------------------
274 //-------------------------------------------------------------
277 * Constructor JSplitPane
279 public JSplitPane() {
280 // TODO
281 } // JSplitPane()
284 * Constructor JSplitPane
285 * @param value0 TODO
287 public JSplitPane(int value0) {
288 // TODO
289 } // JSplitPane()
292 * Constructor JSplitPane
293 * @param value0 TODO
294 * @param value1 TODO
296 public JSplitPane(int value0, boolean value1) {
297 // TODO
298 } // JSplitPane()
301 * Constructor JSplitPane
302 * @param value0 TODO
303 * @param value1 TODO
304 * @param value2 TODO
306 public JSplitPane(int value0, Component value1, Component value2) {
307 // TODO
308 } // JSplitPane()
311 * Constructor JSplitPane
312 * @param value0 TODO
313 * @param value1 TODO
314 * @param value2 TODO
315 * @param value3 TODO
317 public JSplitPane(int value0, boolean value1, Component value2, Component value3) {
318 // TODO
319 } // JSplitPane()
322 //-------------------------------------------------------------
323 // Methods ----------------------------------------------------
324 //-------------------------------------------------------------
327 * writeObject
328 * @param stream TODO
329 * @exception IOException TODO
331 private void writeObject(ObjectOutputStream stream) throws IOException {
332 // TODO
333 } // writeObject()
336 * remove
337 * @param value0 TODO
339 public void remove(Component value0) {
340 // TODO
341 } // remove()
344 * remove
345 * @param value0 TODO
347 public void remove(int value0) {
348 // TODO
349 } // remove()
352 * removeAll
354 public void removeAll() {
355 // TODO
356 } // removeAll()
359 * setUI
360 * @param ui TODO
362 public void setUI(SplitPaneUI ui) {
363 super.setUI(ui);
364 } // setUI()
367 * getUI
368 * @returns SplitPaneUI
370 public SplitPaneUI getUI() {
371 return (SplitPaneUI) ui;
372 } // getUI()
375 * updateUI
377 public void updateUI() {
378 setUI((SplitPaneUI) UIManager.get(this));
379 invalidate();
380 } // updateUI()
383 * getUIClassID
384 * @returns String
386 public String getUIClassID() {
387 return uiClassID;
388 } // getUIClassID()
391 * setDividerSize
392 * @param value0 TODO
394 public void setDividerSize(int value0) {
395 // TODO
396 } // setDividerSize()
399 * getDividerSize
400 * @returns int
402 public int getDividerSize() {
403 return 0; // TODO
404 } // getDividerSize()
407 * setLeftComponent
408 * @param value0 TODO
410 public void setLeftComponent(Component value0) {
411 // TODO
412 } // setLeftComponent()
415 * getLeftComponent
416 * @returns Component
418 public Component getLeftComponent() {
419 return null; // TODO
420 } // getLeftComponent()
423 * setTopComponent
424 * @param value0 TODO
426 public void setTopComponent(Component value0) {
427 // TODO
428 } // setTopComponent()
431 * getTopComponent
432 * @returns Component
434 public Component getTopComponent() {
435 return null; // TODO
436 } // getTopComponent()
439 * setRightComponent
440 * @param value0 TODO
442 public void setRightComponent(Component value0) {
443 // TODO
444 } // setRightComponent()
447 * getRightComponent
448 * @returns Component
450 public Component getRightComponent() {
451 return null; // TODO
452 } // getRightComponent()
455 * setBottomComponent
456 * @param value0 TODO
458 public void setBottomComponent(Component value0) {
459 // TODO
460 } // setBottomComponent()
463 * getBottomComponent
464 * @returns Component
466 public Component getBottomComponent() {
467 return null; // TODO
468 } // getBottomComponent()
471 * setOneTouchExpandable
472 * @param value0 TODO
474 public void setOneTouchExpandable(boolean value0) {
475 // TODO
476 } // setOneTouchExpandable()
479 * isOneTouchExpandable
480 * @returns boolean
482 public boolean isOneTouchExpandable() {
483 return false; // TODO
484 } // isOneTouchExpandable()
487 * setLastDividerLocation
488 * @param value0 TODO
490 public void setLastDividerLocation(int value0) {
491 // TODO
492 } // setLastDividerLocation()
495 * getLastDividerLocation
496 * @returns int
498 public int getLastDividerLocation() {
499 return 0; // TODO
500 } // getLastDividerLocation()
503 * setOrientation
504 * @param value0 TODO
506 public void setOrientation(int value0) {
507 // TODO
508 } // setOrientation()
511 * getOrientation
512 * @returns int
514 public int getOrientation() {
515 return 0; // TODO
516 } // getOrientation()
519 * setContinuousLayout
520 * @param value0 TODO
522 public void setContinuousLayout(boolean value0) {
523 // TODO
524 } // setContinuousLayout()
527 * isContinuousLayout
528 * @returns boolean
530 public boolean isContinuousLayout() {
531 return false; // TODO
532 } // isContinuousLayout()
535 * setResizeWeight
536 * @param value0 TODO
538 public void setResizeWeight(double value0) {
539 // TODO
540 } // setResizeWeight()
543 * getResizeWeight
544 * @returns double
546 public double getResizeWeight() {
547 return 0.0; // TODO
548 } // getResizeWeight()
551 * resetToPreferredSizes
553 public void resetToPreferredSizes() {
554 // TODO
555 } // resetToPreferredSizes()
558 * setDividerLocation
559 * @param value0 TODO
561 public void setDividerLocation(double value0) {
562 // TODO
563 } // setDividerLocation()
566 * setDividerLocation
567 * @param value0 TODO
569 public void setDividerLocation(int value0) {
570 // TODO
571 } // setDividerLocation()
574 * getDividerLocation
575 * @returns int
577 public int getDividerLocation() {
578 return 0; // TODO
579 } // getDividerLocation()
582 * getMinimumDividerLocation
583 * @returns int
585 public int getMinimumDividerLocation() {
586 return 0; // TODO
587 } // getMinimumDividerLocation()
590 * getMaximumDividerLocation
591 * @returns int
593 public int getMaximumDividerLocation() {
594 return 0; // TODO
595 } // getMaximumDividerLocation()
598 * isValidateRoot
599 * @returns boolean
601 public boolean isValidateRoot() {
602 return false; // TODO
603 } // isValidateRoot()
606 * addImpl
607 * @param value0 TODO
608 * @param value1 TODO
609 * @param value2 TODO
611 protected void addImpl(Component value0, Object value1, int value2) {
612 // TODO
613 } // addImpl()
616 * paintChildren
617 * @param value0 TODO
619 protected void paintChildren(Graphics value0) {
620 // TODO
621 } // paintChildren()
624 * paramString
625 * @returns String
627 protected String paramString() {
628 return null; // TODO
629 } // paramString()
632 * getAccessibleContext
633 * @returns AccessibleContext
635 public AccessibleContext getAccessibleContext() {
636 if (accessibleContext == null) {
637 accessibleContext = new AccessibleJSplitPane(this);
638 } // if
639 return accessibleContext;
640 } // getAccessibleContext()
643 } // JSplitPane