KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > ScrollPaneConstants


1 /*
2  * @(#)ScrollPaneConstants.java 1.17 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.swing;
9
10
11 /**
12  * Constants used with the JScrollPane component.
13  *
14  * @version 1.17 12/19/03
15  * @author Hans Muller
16  */

17 public interface ScrollPaneConstants
18 {
19     /**
20      * Identifies a "viewport" or display area, within which
21      * scrolled contents are visible.
22      */

23     String JavaDoc VIEWPORT = "VIEWPORT";
24     /** Identifies a vertical scrollbar. */
25     String JavaDoc VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR";
26     /** Identifies a horizonal scrollbar. */
27     String JavaDoc HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR";
28     /**
29      * Identifies the area along the left side of the viewport between the
30      * upper left corner and the lower left corner.
31      */

32     String JavaDoc ROW_HEADER = "ROW_HEADER";
33     /**
34      * Identifies the area at the top the viewport between the
35      * upper left corner and the upper right corner.
36      */

37     String JavaDoc COLUMN_HEADER = "COLUMN_HEADER";
38     /** Identifies the lower left corner of the viewport. */
39     String JavaDoc LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER";
40     /** Identifies the lower right corner of the viewport. */
41     String JavaDoc LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER";
42     /** Identifies the upper left corner of the viewport. */
43     String JavaDoc UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER";
44     /** Identifies the upper right corner of the viewport. */
45     String JavaDoc UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER";
46
47     /** Identifies the lower leading edge corner of the viewport. The leading edge
48      * is determined relative to the Scroll Pane's ComponentOrientation property.
49      */

50     String JavaDoc LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER";
51     /** Identifies the lower trailing edge corner of the viewport. The trailing edge
52      * is determined relative to the Scroll Pane's ComponentOrientation property.
53      */

54     String JavaDoc LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER";
55     /** Identifies the upper leading edge corner of the viewport. The leading edge
56      * is determined relative to the Scroll Pane's ComponentOrientation property.
57      */

58     String JavaDoc UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER";
59     /** Identifies the upper trailing edge corner of the viewport. The trailing edge
60      * is determined relative to the Scroll Pane's ComponentOrientation property.
61      */

62     String JavaDoc UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER";
63
64     /** Identifies the vertical scroll bar policy property. */
65     String JavaDoc VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY";
66     /** Identifies the horizontal scroll bar policy property. */
67     String JavaDoc HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY";
68
69     /**
70      * Used to set the vertical scroll bar policy so that
71      * vertical scrollbars are displayed only when needed.
72      */

73     int VERTICAL_SCROLLBAR_AS_NEEDED = 20;
74     /**
75      * Used to set the vertical scroll bar policy so that
76      * vertical scrollbars are never displayed.
77      */

78     int VERTICAL_SCROLLBAR_NEVER = 21;
79     /**
80      * Used to set the vertical scroll bar policy so that
81      * vertical scrollbars are always displayed.
82      */

83     int VERTICAL_SCROLLBAR_ALWAYS = 22;
84
85     /**
86      * Used to set the horizontal scroll bar policy so that
87      * horizontal scrollbars are displayed only when needed.
88      */

89     int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30;
90     /**
91      * Used to set the horizontal scroll bar policy so that
92      * horizontal scrollbars are never displayed.
93      */

94     int HORIZONTAL_SCROLLBAR_NEVER = 31;
95     /**
96      * Used to set the horizontal scroll bar policy so that
97      * horizontal scrollbars are always displayed.
98      */

99     int HORIZONTAL_SCROLLBAR_ALWAYS = 32;
100 }
101
102
Popular Tags