author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 (2017-09-12) | |
changeset 47216 | 71c04702a3d5 |
parent 25859 | jdk/src/java.desktop/share/classes/javax/swing/ScrollPaneConstants.java@3317bb8137f4 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
23010
6dadb192ad81
8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents:
21278
diff
changeset
|
2 |
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package javax.swing; |
|
27 |
||
28 |
||
29 |
/** |
|
30 |
* Constants used with the JScrollPane component. |
|
31 |
* |
|
32 |
* @author Hans Muller |
|
25201
4adc75e0c4e5
8046485: Add missing @since tag under javax.swing.*
henryjen
parents:
23010
diff
changeset
|
33 |
* @since 1.2 |
2 | 34 |
*/ |
35 |
public interface ScrollPaneConstants |
|
36 |
{ |
|
37 |
/** |
|
38 |
* Identifies a "viewport" or display area, within which |
|
39 |
* scrolled contents are visible. |
|
40 |
*/ |
|
41 |
String VIEWPORT = "VIEWPORT"; |
|
42 |
/** Identifies a vertical scrollbar. */ |
|
43 |
String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR"; |
|
21278 | 44 |
/** Identifies a horizontal scrollbar. */ |
2 | 45 |
String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR"; |
46 |
/** |
|
47 |
* Identifies the area along the left side of the viewport between the |
|
48 |
* upper left corner and the lower left corner. |
|
49 |
*/ |
|
50 |
String ROW_HEADER = "ROW_HEADER"; |
|
51 |
/** |
|
52 |
* Identifies the area at the top the viewport between the |
|
53 |
* upper left corner and the upper right corner. |
|
54 |
*/ |
|
55 |
String COLUMN_HEADER = "COLUMN_HEADER"; |
|
56 |
/** Identifies the lower left corner of the viewport. */ |
|
57 |
String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER"; |
|
58 |
/** Identifies the lower right corner of the viewport. */ |
|
59 |
String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER"; |
|
60 |
/** Identifies the upper left corner of the viewport. */ |
|
61 |
String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER"; |
|
62 |
/** Identifies the upper right corner of the viewport. */ |
|
63 |
String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER"; |
|
64 |
||
65 |
/** Identifies the lower leading edge corner of the viewport. The leading edge |
|
66 |
* is determined relative to the Scroll Pane's ComponentOrientation property. |
|
67 |
*/ |
|
68 |
String LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER"; |
|
69 |
/** Identifies the lower trailing edge corner of the viewport. The trailing edge |
|
70 |
* is determined relative to the Scroll Pane's ComponentOrientation property. |
|
71 |
*/ |
|
72 |
String LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER"; |
|
73 |
/** Identifies the upper leading edge corner of the viewport. The leading edge |
|
74 |
* is determined relative to the Scroll Pane's ComponentOrientation property. |
|
75 |
*/ |
|
76 |
String UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER"; |
|
77 |
/** Identifies the upper trailing edge corner of the viewport. The trailing edge |
|
78 |
* is determined relative to the Scroll Pane's ComponentOrientation property. |
|
79 |
*/ |
|
80 |
String UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER"; |
|
81 |
||
82 |
/** Identifies the vertical scroll bar policy property. */ |
|
83 |
String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY"; |
|
84 |
/** Identifies the horizontal scroll bar policy property. */ |
|
85 |
String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY"; |
|
86 |
||
87 |
/** |
|
88 |
* Used to set the vertical scroll bar policy so that |
|
89 |
* vertical scrollbars are displayed only when needed. |
|
90 |
*/ |
|
91 |
int VERTICAL_SCROLLBAR_AS_NEEDED = 20; |
|
92 |
/** |
|
93 |
* Used to set the vertical scroll bar policy so that |
|
94 |
* vertical scrollbars are never displayed. |
|
95 |
*/ |
|
96 |
int VERTICAL_SCROLLBAR_NEVER = 21; |
|
97 |
/** |
|
98 |
* Used to set the vertical scroll bar policy so that |
|
99 |
* vertical scrollbars are always displayed. |
|
100 |
*/ |
|
101 |
int VERTICAL_SCROLLBAR_ALWAYS = 22; |
|
102 |
||
103 |
/** |
|
104 |
* Used to set the horizontal scroll bar policy so that |
|
105 |
* horizontal scrollbars are displayed only when needed. |
|
106 |
*/ |
|
107 |
int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30; |
|
108 |
/** |
|
109 |
* Used to set the horizontal scroll bar policy so that |
|
110 |
* horizontal scrollbars are never displayed. |
|
111 |
*/ |
|
112 |
int HORIZONTAL_SCROLLBAR_NEVER = 31; |
|
113 |
/** |
|
114 |
* Used to set the horizontal scroll bar policy so that |
|
115 |
* horizontal scrollbars are always displayed. |
|
116 |
*/ |
|
117 |
int HORIZONTAL_SCROLLBAR_ALWAYS = 32; |
|
118 |
} |