source: trunk/gcc/libjava/javax/swing/JSplitPane.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 12.9 KB
Line 
1/* JSplitPane.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4This file is part of GNU Classpath.
5
6GNU Classpath is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Classpath is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Classpath; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1902111-1307 USA.
20
21Linking this library statically or dynamically with other modules is
22making a combined work based on this library. Thus, the terms and
23conditions of the GNU General Public License cover the whole
24combination.
25
26As a special exception, the copyright holders of this library give you
27permission to link this library with independent modules to produce an
28executable, regardless of the license terms of these independent
29modules, and to copy and distribute the resulting executable under
30terms of your choice, provided that you also meet, for each linked
31independent module, the terms and conditions of the license of that
32module. An independent module is a module which is not derived from
33or based on this library. If you modify this library, you may extend
34this exception to your version of the library, but you are not
35obligated to do so. If you do not wish to do so, delete this
36exception statement from your version. */
37
38package javax.swing;
39
40// Imports
41import java.awt.*;
42import java.io.*;
43import javax.accessibility.*;
44import javax.swing.plaf.*;
45
46/**
47 * JSplitPane
48 * @author Andrew Selkirk
49 * @version 1.0
50 */
51public class JSplitPane extends JComponent implements Accessible {
52
53 //-------------------------------------------------------------
54 // Classes ----------------------------------------------------
55 //-------------------------------------------------------------
56
57 /**
58 * AccessibleJSplitPane
59 */
60 protected class AccessibleJSplitPane extends AccessibleJComponent
61 implements AccessibleValue {
62
63 //-------------------------------------------------------------
64 // Variables --------------------------------------------------
65 //-------------------------------------------------------------
66
67
68 //-------------------------------------------------------------
69 // Initialization ---------------------------------------------
70 //-------------------------------------------------------------
71
72 /**
73 * Constructor AccessibleJSplitPane
74 * @param component TODO
75 */
76 protected AccessibleJSplitPane(JSplitPane component) {
77 super(component);
78 // TODO
79 } // AccessibleJSplitPane()
80
81
82 //-------------------------------------------------------------
83 // Methods ----------------------------------------------------
84 //-------------------------------------------------------------
85
86 /**
87 * getAccessibleStateSet
88 * @returns AccessibleStateSet
89 */
90 public AccessibleStateSet getAccessibleStateSet() {
91 return null; // TODO
92 } // getAccessibleStateSet()
93
94 /**
95 * getAccessibleRole
96 * @returns AccessibleRole
97 */
98 public AccessibleRole getAccessibleRole() {
99 return AccessibleRole.SPLIT_PANE;
100 } // getAccessibleRole()
101
102 /**
103 * getAccessibleValue
104 * @returns AccessibleValue
105 */
106 public AccessibleValue getAccessibleValue() {
107 return null; // TODO
108 } // getAccessibleValue()
109
110 /**
111 * getCurrentAccessibleValue
112 * @returns Number
113 */
114 public Number getCurrentAccessibleValue() {
115 return null; // TODO
116 } // getCurrentAccessibleValue()
117
118 /**
119 * setCurrentAccessibleValue
120 * @param value0 TODO
121 * @returns boolean
122 */
123 public boolean setCurrentAccessibleValue(Number value0) {
124 return false; // TODO
125 } // setCurrentAccessibleValue()
126
127 /**
128 * getMinimumAccessibleValue
129 * @returns Number
130 */
131 public Number getMinimumAccessibleValue() {
132 return null; // TODO
133 } // getMinimumAccessibleValue()
134
135 /**
136 * getMaximumAccessibleValue
137 * @returns Number
138 */
139 public Number getMaximumAccessibleValue() {
140 return null; // TODO
141 } // getMaximumAccessibleValue()
142
143
144 } // AccessibleJSplitPane
145
146
147 //-------------------------------------------------------------
148 // Variables --------------------------------------------------
149 //-------------------------------------------------------------
150
151 /**
152 * uiClassID
153 */
154 private static final String uiClassID = "SplitPaneUI";
155
156 /**
157 * VERTICAL_SPLIT
158 */
159 public static final int VERTICAL_SPLIT = 0;
160
161 /**
162 * HORIZONTAL_SPLIT
163 */
164 public static final int HORIZONTAL_SPLIT = 1;
165
166 /**
167 * LEFT
168 */
169 public static final String LEFT = "left";
170
171 /**
172 * RIGHT
173 */
174 public static final String RIGHT = "right";
175
176 /**
177 * TOP
178 */
179 public static final String TOP = "top";
180
181 /**
182 * BOTTOM
183 */
184 public static final String BOTTOM = "bottom";
185
186 /**
187 * DIVIDER
188 */
189 public static final String DIVIDER = "divider";
190
191 /**
192 * ORIENTATION_PROPERTY
193 */
194 public static final String ORIENTATION_PROPERTY = "orientation";
195
196 /**
197 * CONTINUOUS_LAYOUT_PROPERTY
198 */
199 public static final String CONTINUOUS_LAYOUT_PROPERTY = "continuousLayout";
200
201 /**
202 * DIVIDER_SIZE_PROPERTY
203 */
204 public static final String DIVIDER_SIZE_PROPERTY = "dividerSize";
205
206 /**
207 * ONE_TOUCH_EXPANDABLE_PROPERTY
208 */
209 public static final String ONE_TOUCH_EXPANDABLE_PROPERTY = "oneTouchExpandable";
210
211 /**
212 * LAST_DIVIDER_LOCATION_PROPERTY
213 */
214 public static final String LAST_DIVIDER_LOCATION_PROPERTY = "lastDividerLocation";
215
216 /**
217 * DIVIDER_LOCATION_PROPERTY
218 */
219 public static final String DIVIDER_LOCATION_PROPERTY = "dividerLocation";
220
221 /**
222 * RESIZE_WEIGHT_PROPERTY
223 */
224 public static final String RESIZE_WEIGHT_PROPERTY = "resizeWeight";
225
226 /**
227 * orientation
228 */
229 protected int orientation;
230
231 /**
232 * continuousLayout
233 */
234 protected boolean continuousLayout;
235
236 /**
237 * leftComponent
238 */
239 protected Component leftComponent;
240
241 /**
242 * rightComponent
243 */
244 protected Component rightComponent;
245
246 /**
247 * dividerSize
248 */
249 protected int dividerSize;
250
251 /**
252 * oneTouchExpandable
253 */
254 protected boolean oneTouchExpandable;
255
256 /**
257 * lastDividerLocation
258 */
259 protected int lastDividerLocation;
260
261 /**
262 * resizeWeight
263 */
264 private double resizeWeight;
265
266 /**
267 * dividerLocation
268 */
269 private int dividerLocation;
270
271
272 //-------------------------------------------------------------
273 // Initialization ---------------------------------------------
274 //-------------------------------------------------------------
275
276 /**
277 * Constructor JSplitPane
278 */
279 public JSplitPane() {
280 // TODO
281 } // JSplitPane()
282
283 /**
284 * Constructor JSplitPane
285 * @param value0 TODO
286 */
287 public JSplitPane(int value0) {
288 // TODO
289 } // JSplitPane()
290
291 /**
292 * Constructor JSplitPane
293 * @param value0 TODO
294 * @param value1 TODO
295 */
296 public JSplitPane(int value0, boolean value1) {
297 // TODO
298 } // JSplitPane()
299
300 /**
301 * Constructor JSplitPane
302 * @param value0 TODO
303 * @param value1 TODO
304 * @param value2 TODO
305 */
306 public JSplitPane(int value0, Component value1, Component value2) {
307 // TODO
308 } // JSplitPane()
309
310 /**
311 * Constructor JSplitPane
312 * @param value0 TODO
313 * @param value1 TODO
314 * @param value2 TODO
315 * @param value3 TODO
316 */
317 public JSplitPane(int value0, boolean value1, Component value2, Component value3) {
318 // TODO
319 } // JSplitPane()
320
321
322 //-------------------------------------------------------------
323 // Methods ----------------------------------------------------
324 //-------------------------------------------------------------
325
326 /**
327 * writeObject
328 * @param stream TODO
329 * @exception IOException TODO
330 */
331 private void writeObject(ObjectOutputStream stream) throws IOException {
332 // TODO
333 } // writeObject()
334
335 /**
336 * remove
337 * @param value0 TODO
338 */
339 public void remove(Component value0) {
340 // TODO
341 } // remove()
342
343 /**
344 * remove
345 * @param value0 TODO
346 */
347 public void remove(int value0) {
348 // TODO
349 } // remove()
350
351 /**
352 * removeAll
353 */
354 public void removeAll() {
355 // TODO
356 } // removeAll()
357
358 /**
359 * setUI
360 * @param ui TODO
361 */
362 public void setUI(SplitPaneUI ui) {
363 super.setUI(ui);
364 } // setUI()
365
366 /**
367 * getUI
368 * @returns SplitPaneUI
369 */
370 public SplitPaneUI getUI() {
371 return (SplitPaneUI) ui;
372 } // getUI()
373
374 /**
375 * updateUI
376 */
377 public void updateUI() {
378 setUI((SplitPaneUI) UIManager.get(this));
379 invalidate();
380 } // updateUI()
381
382 /**
383 * getUIClassID
384 * @returns String
385 */
386 public String getUIClassID() {
387 return uiClassID;
388 } // getUIClassID()
389
390 /**
391 * setDividerSize
392 * @param value0 TODO
393 */
394 public void setDividerSize(int value0) {
395 // TODO
396 } // setDividerSize()
397
398 /**
399 * getDividerSize
400 * @returns int
401 */
402 public int getDividerSize() {
403 return 0; // TODO
404 } // getDividerSize()
405
406 /**
407 * setLeftComponent
408 * @param value0 TODO
409 */
410 public void setLeftComponent(Component value0) {
411 // TODO
412 } // setLeftComponent()
413
414 /**
415 * getLeftComponent
416 * @returns Component
417 */
418 public Component getLeftComponent() {
419 return null; // TODO
420 } // getLeftComponent()
421
422 /**
423 * setTopComponent
424 * @param value0 TODO
425 */
426 public void setTopComponent(Component value0) {
427 // TODO
428 } // setTopComponent()
429
430 /**
431 * getTopComponent
432 * @returns Component
433 */
434 public Component getTopComponent() {
435 return null; // TODO
436 } // getTopComponent()
437
438 /**
439 * setRightComponent
440 * @param value0 TODO
441 */
442 public void setRightComponent(Component value0) {
443 // TODO
444 } // setRightComponent()
445
446 /**
447 * getRightComponent
448 * @returns Component
449 */
450 public Component getRightComponent() {
451 return null; // TODO
452 } // getRightComponent()
453
454 /**
455 * setBottomComponent
456 * @param value0 TODO
457 */
458 public void setBottomComponent(Component value0) {
459 // TODO
460 } // setBottomComponent()
461
462 /**
463 * getBottomComponent
464 * @returns Component
465 */
466 public Component getBottomComponent() {
467 return null; // TODO
468 } // getBottomComponent()
469
470 /**
471 * setOneTouchExpandable
472 * @param value0 TODO
473 */
474 public void setOneTouchExpandable(boolean value0) {
475 // TODO
476 } // setOneTouchExpandable()
477
478 /**
479 * isOneTouchExpandable
480 * @returns boolean
481 */
482 public boolean isOneTouchExpandable() {
483 return false; // TODO
484 } // isOneTouchExpandable()
485
486 /**
487 * setLastDividerLocation
488 * @param value0 TODO
489 */
490 public void setLastDividerLocation(int value0) {
491 // TODO
492 } // setLastDividerLocation()
493
494 /**
495 * getLastDividerLocation
496 * @returns int
497 */
498 public int getLastDividerLocation() {
499 return 0; // TODO
500 } // getLastDividerLocation()
501
502 /**
503 * setOrientation
504 * @param value0 TODO
505 */
506 public void setOrientation(int value0) {
507 // TODO
508 } // setOrientation()
509
510 /**
511 * getOrientation
512 * @returns int
513 */
514 public int getOrientation() {
515 return 0; // TODO
516 } // getOrientation()
517
518 /**
519 * setContinuousLayout
520 * @param value0 TODO
521 */
522 public void setContinuousLayout(boolean value0) {
523 // TODO
524 } // setContinuousLayout()
525
526 /**
527 * isContinuousLayout
528 * @returns boolean
529 */
530 public boolean isContinuousLayout() {
531 return false; // TODO
532 } // isContinuousLayout()
533
534 /**
535 * setResizeWeight
536 * @param value0 TODO
537 */
538 public void setResizeWeight(double value0) {
539 // TODO
540 } // setResizeWeight()
541
542 /**
543 * getResizeWeight
544 * @returns double
545 */
546 public double getResizeWeight() {
547 return 0.0; // TODO
548 } // getResizeWeight()
549
550 /**
551 * resetToPreferredSizes
552 */
553 public void resetToPreferredSizes() {
554 // TODO
555 } // resetToPreferredSizes()
556
557 /**
558 * setDividerLocation
559 * @param value0 TODO
560 */
561 public void setDividerLocation(double value0) {
562 // TODO
563 } // setDividerLocation()
564
565 /**
566 * setDividerLocation
567 * @param value0 TODO
568 */
569 public void setDividerLocation(int value0) {
570 // TODO
571 } // setDividerLocation()
572
573 /**
574 * getDividerLocation
575 * @returns int
576 */
577 public int getDividerLocation() {
578 return 0; // TODO
579 } // getDividerLocation()
580
581 /**
582 * getMinimumDividerLocation
583 * @returns int
584 */
585 public int getMinimumDividerLocation() {
586 return 0; // TODO
587 } // getMinimumDividerLocation()
588
589 /**
590 * getMaximumDividerLocation
591 * @returns int
592 */
593 public int getMaximumDividerLocation() {
594 return 0; // TODO
595 } // getMaximumDividerLocation()
596
597 /**
598 * isValidateRoot
599 * @returns boolean
600 */
601 public boolean isValidateRoot() {
602 return false; // TODO
603 } // isValidateRoot()
604
605 /**
606 * addImpl
607 * @param value0 TODO
608 * @param value1 TODO
609 * @param value2 TODO
610 */
611 protected void addImpl(Component value0, Object value1, int value2) {
612 // TODO
613 } // addImpl()
614
615 /**
616 * paintChildren
617 * @param value0 TODO
618 */
619 protected void paintChildren(Graphics value0) {
620 // TODO
621 } // paintChildren()
622
623 /**
624 * paramString
625 * @returns String
626 */
627 protected String paramString() {
628 return null; // TODO
629 } // paramString()
630
631 /**
632 * getAccessibleContext
633 * @returns AccessibleContext
634 */
635 public AccessibleContext getAccessibleContext() {
636 if (accessibleContext == null) {
637 accessibleContext = new AccessibleJSplitPane(this);
638 } // if
639 return accessibleContext;
640 } // getAccessibleContext()
641
642
643} // JSplitPane
Note: See TracBrowser for help on using the repository browser.