2
|
1 |
/*
|
|
2 |
* Copyright 1997-1999 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
|
7 |
* published by the Free Software Foundation. Sun designates this
|
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
|
9 |
* by Sun in the LICENSE file that accompanied this code.
|
|
10 |
*
|
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
15 |
* accompanied this code).
|
|
16 |
*
|
|
17 |
* You should have received a copy of the GNU General Public License version
|
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
20 |
*
|
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or
|
|
23 |
* have any questions.
|
|
24 |
*/
|
|
25 |
|
|
26 |
package javax.swing;
|
|
27 |
|
|
28 |
|
|
29 |
/**
|
|
30 |
* Constants used with the JScrollPane component.
|
|
31 |
*
|
|
32 |
* @author Hans Muller
|
|
33 |
*/
|
|
34 |
public interface ScrollPaneConstants
|
|
35 |
{
|
|
36 |
/**
|
|
37 |
* Identifies a "viewport" or display area, within which
|
|
38 |
* scrolled contents are visible.
|
|
39 |
*/
|
|
40 |
String VIEWPORT = "VIEWPORT";
|
|
41 |
/** Identifies a vertical scrollbar. */
|
|
42 |
String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR";
|
|
43 |
/** Identifies a horizonal scrollbar. */
|
|
44 |
String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR";
|
|
45 |
/**
|
|
46 |
* Identifies the area along the left side of the viewport between the
|
|
47 |
* upper left corner and the lower left corner.
|
|
48 |
*/
|
|
49 |
String ROW_HEADER = "ROW_HEADER";
|
|
50 |
/**
|
|
51 |
* Identifies the area at the top the viewport between the
|
|
52 |
* upper left corner and the upper right corner.
|
|
53 |
*/
|
|
54 |
String COLUMN_HEADER = "COLUMN_HEADER";
|
|
55 |
/** Identifies the lower left corner of the viewport. */
|
|
56 |
String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER";
|
|
57 |
/** Identifies the lower right corner of the viewport. */
|
|
58 |
String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER";
|
|
59 |
/** Identifies the upper left corner of the viewport. */
|
|
60 |
String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER";
|
|
61 |
/** Identifies the upper right corner of the viewport. */
|
|
62 |
String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER";
|
|
63 |
|
|
64 |
/** Identifies the lower leading edge corner of the viewport. The leading edge
|
|
65 |
* is determined relative to the Scroll Pane's ComponentOrientation property.
|
|
66 |
*/
|
|
67 |
String LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER";
|
|
68 |
/** Identifies the lower trailing edge corner of the viewport. The trailing edge
|
|
69 |
* is determined relative to the Scroll Pane's ComponentOrientation property.
|
|
70 |
*/
|
|
71 |
String LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER";
|
|
72 |
/** Identifies the upper leading edge corner of the viewport. The leading edge
|
|
73 |
* is determined relative to the Scroll Pane's ComponentOrientation property.
|
|
74 |
*/
|
|
75 |
String UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER";
|
|
76 |
/** Identifies the upper trailing edge corner of the viewport. The trailing edge
|
|
77 |
* is determined relative to the Scroll Pane's ComponentOrientation property.
|
|
78 |
*/
|
|
79 |
String UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER";
|
|
80 |
|
|
81 |
/** Identifies the vertical scroll bar policy property. */
|
|
82 |
String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY";
|
|
83 |
/** Identifies the horizontal scroll bar policy property. */
|
|
84 |
String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY";
|
|
85 |
|
|
86 |
/**
|
|
87 |
* Used to set the vertical scroll bar policy so that
|
|
88 |
* vertical scrollbars are displayed only when needed.
|
|
89 |
*/
|
|
90 |
int VERTICAL_SCROLLBAR_AS_NEEDED = 20;
|
|
91 |
/**
|
|
92 |
* Used to set the vertical scroll bar policy so that
|
|
93 |
* vertical scrollbars are never displayed.
|
|
94 |
*/
|
|
95 |
int VERTICAL_SCROLLBAR_NEVER = 21;
|
|
96 |
/**
|
|
97 |
* Used to set the vertical scroll bar policy so that
|
|
98 |
* vertical scrollbars are always displayed.
|
|
99 |
*/
|
|
100 |
int VERTICAL_SCROLLBAR_ALWAYS = 22;
|
|
101 |
|
|
102 |
/**
|
|
103 |
* Used to set the horizontal scroll bar policy so that
|
|
104 |
* horizontal scrollbars are displayed only when needed.
|
|
105 |
*/
|
|
106 |
int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30;
|
|
107 |
/**
|
|
108 |
* Used to set the horizontal scroll bar policy so that
|
|
109 |
* horizontal scrollbars are never displayed.
|
|
110 |
*/
|
|
111 |
int HORIZONTAL_SCROLLBAR_NEVER = 31;
|
|
112 |
/**
|
|
113 |
* Used to set the horizontal scroll bar policy so that
|
|
114 |
* horizontal scrollbars are always displayed.
|
|
115 |
*/
|
|
116 |
int HORIZONTAL_SCROLLBAR_ALWAYS = 32;
|
|
117 |
}
|