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)
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
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
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. */
43 import javax
.accessibility
.*;
44 import javax
.swing
.plaf
.*;
48 * @author Andrew Selkirk
51 public class JSplitPane
extends JComponent
implements Accessible
{
53 //-------------------------------------------------------------
54 // Classes ----------------------------------------------------
55 //-------------------------------------------------------------
58 * AccessibleJSplitPane
60 protected class AccessibleJSplitPane
extends AccessibleJComponent
61 implements AccessibleValue
{
63 //-------------------------------------------------------------
64 // Variables --------------------------------------------------
65 //-------------------------------------------------------------
68 //-------------------------------------------------------------
69 // Initialization ---------------------------------------------
70 //-------------------------------------------------------------
73 * Constructor AccessibleJSplitPane
74 * @param component TODO
76 protected AccessibleJSplitPane(JSplitPane component
) {
79 } // AccessibleJSplitPane()
82 //-------------------------------------------------------------
83 // Methods ----------------------------------------------------
84 //-------------------------------------------------------------
87 * getAccessibleStateSet
88 * @returns AccessibleStateSet
90 public AccessibleStateSet
getAccessibleStateSet() {
92 } // getAccessibleStateSet()
96 * @returns AccessibleRole
98 public AccessibleRole
getAccessibleRole() {
99 return AccessibleRole
.SPLIT_PANE
;
100 } // getAccessibleRole()
104 * @returns AccessibleValue
106 public AccessibleValue
getAccessibleValue() {
108 } // getAccessibleValue()
111 * getCurrentAccessibleValue
114 public Number
getCurrentAccessibleValue() {
116 } // getCurrentAccessibleValue()
119 * setCurrentAccessibleValue
123 public boolean setCurrentAccessibleValue(Number value0
) {
124 return false; // TODO
125 } // setCurrentAccessibleValue()
128 * getMinimumAccessibleValue
131 public Number
getMinimumAccessibleValue() {
133 } // getMinimumAccessibleValue()
136 * getMaximumAccessibleValue
139 public Number
getMaximumAccessibleValue() {
141 } // getMaximumAccessibleValue()
144 } // AccessibleJSplitPane
147 //-------------------------------------------------------------
148 // Variables --------------------------------------------------
149 //-------------------------------------------------------------
154 private static final String uiClassID
= "SplitPaneUI";
159 public static final int VERTICAL_SPLIT
= 0;
164 public static final int HORIZONTAL_SPLIT
= 1;
169 public static final String LEFT
= "left";
174 public static final String RIGHT
= "right";
179 public static final String TOP
= "top";
184 public static final String BOTTOM
= "bottom";
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";
229 protected int orientation
;
234 protected boolean continuousLayout
;
239 protected Component leftComponent
;
244 protected Component rightComponent
;
249 protected int dividerSize
;
254 protected boolean oneTouchExpandable
;
257 * lastDividerLocation
259 protected int lastDividerLocation
;
264 private double resizeWeight
;
269 private int dividerLocation
;
272 //-------------------------------------------------------------
273 // Initialization ---------------------------------------------
274 //-------------------------------------------------------------
277 * Constructor JSplitPane
279 public JSplitPane() {
284 * Constructor JSplitPane
287 public JSplitPane(int value0
) {
292 * Constructor JSplitPane
296 public JSplitPane(int value0
, boolean value1
) {
301 * Constructor JSplitPane
306 public JSplitPane(int value0
, Component value1
, Component value2
) {
311 * Constructor JSplitPane
317 public JSplitPane(int value0
, boolean value1
, Component value2
, Component value3
) {
322 //-------------------------------------------------------------
323 // Methods ----------------------------------------------------
324 //-------------------------------------------------------------
329 * @exception IOException TODO
331 private void writeObject(ObjectOutputStream stream
) throws IOException
{
339 public void remove(Component value0
) {
347 public void remove(int value0
) {
354 public void removeAll() {
362 public void setUI(SplitPaneUI ui
) {
368 * @returns SplitPaneUI
370 public SplitPaneUI
getUI() {
371 return (SplitPaneUI
) ui
;
377 public void updateUI() {
378 setUI((SplitPaneUI
) UIManager
.get(this));
386 public String
getUIClassID() {
394 public void setDividerSize(int value0
) {
396 } // setDividerSize()
402 public int getDividerSize() {
404 } // getDividerSize()
410 public void setLeftComponent(Component value0
) {
412 } // setLeftComponent()
418 public Component
getLeftComponent() {
420 } // getLeftComponent()
426 public void setTopComponent(Component value0
) {
428 } // setTopComponent()
434 public Component
getTopComponent() {
436 } // getTopComponent()
442 public void setRightComponent(Component value0
) {
444 } // setRightComponent()
450 public Component
getRightComponent() {
452 } // getRightComponent()
458 public void setBottomComponent(Component value0
) {
460 } // setBottomComponent()
466 public Component
getBottomComponent() {
468 } // getBottomComponent()
471 * setOneTouchExpandable
474 public void setOneTouchExpandable(boolean value0
) {
476 } // setOneTouchExpandable()
479 * isOneTouchExpandable
482 public boolean isOneTouchExpandable() {
483 return false; // TODO
484 } // isOneTouchExpandable()
487 * setLastDividerLocation
490 public void setLastDividerLocation(int value0
) {
492 } // setLastDividerLocation()
495 * getLastDividerLocation
498 public int getLastDividerLocation() {
500 } // getLastDividerLocation()
506 public void setOrientation(int value0
) {
508 } // setOrientation()
514 public int getOrientation() {
516 } // getOrientation()
519 * setContinuousLayout
522 public void setContinuousLayout(boolean value0
) {
524 } // setContinuousLayout()
530 public boolean isContinuousLayout() {
531 return false; // TODO
532 } // isContinuousLayout()
538 public void setResizeWeight(double value0
) {
540 } // setResizeWeight()
546 public double getResizeWeight() {
548 } // getResizeWeight()
551 * resetToPreferredSizes
553 public void resetToPreferredSizes() {
555 } // resetToPreferredSizes()
561 public void setDividerLocation(double value0
) {
563 } // setDividerLocation()
569 public void setDividerLocation(int value0
) {
571 } // setDividerLocation()
577 public int getDividerLocation() {
579 } // getDividerLocation()
582 * getMinimumDividerLocation
585 public int getMinimumDividerLocation() {
587 } // getMinimumDividerLocation()
590 * getMaximumDividerLocation
593 public int getMaximumDividerLocation() {
595 } // getMaximumDividerLocation()
601 public boolean isValidateRoot() {
602 return false; // TODO
603 } // isValidateRoot()
611 protected void addImpl(Component value0
, Object value1
, int value2
) {
619 protected void paintChildren(Graphics value0
) {
627 protected String
paramString() {
632 * getAccessibleContext
633 * @returns AccessibleContext
635 public AccessibleContext
getAccessibleContext() {
636 if (accessibleContext
== null) {
637 accessibleContext
= new AccessibleJSplitPane(this);
639 return accessibleContext
;
640 } // getAccessibleContext()