jdk/src/share/classes/javax/swing/ScrollPaneConstants.java
author dmarkov
Wed, 16 Apr 2014 12:51:25 +0400
changeset 24184 4da2f6ec4dab
parent 23010 6dadb192ad81
child 25201 4adc75e0c4e5
permissions -rw-r--r--
8032874: ArrayIndexOutOfBoundsException in JTable while clearing data in JTable Reviewed-by: alexp, alexsch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     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
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.swing;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * Constants used with the JScrollPane component.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * @author Hans Muller
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
public interface ScrollPaneConstants
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
     * Identifies a "viewport" or display area, within which
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
     * scrolled contents are visible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    String VIEWPORT = "VIEWPORT";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    /** Identifies a vertical scrollbar. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR";
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
    43
    /** Identifies a horizontal scrollbar. */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
     * Identifies the area along the left side of the viewport between the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
     * upper left corner and the lower left corner.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    String ROW_HEADER = "ROW_HEADER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     * Identifies the area at the top the viewport between the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     * upper left corner and the upper right corner.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    String COLUMN_HEADER = "COLUMN_HEADER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    /** Identifies the lower left corner of the viewport. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    /** Identifies the lower right corner of the viewport. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    /** Identifies the upper left corner of the viewport. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    /** Identifies the upper right corner of the viewport. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    /** Identifies the lower leading edge corner of the viewport. The leading edge
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * is determined relative to the Scroll Pane's ComponentOrientation property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    String LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    /** Identifies the lower trailing edge corner of the viewport. The trailing edge
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * is determined relative to the Scroll Pane's ComponentOrientation property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    String LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    /** Identifies the upper leading edge corner of the viewport.  The leading edge
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * is determined relative to the Scroll Pane's ComponentOrientation property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    String UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    /** Identifies the upper trailing edge corner of the viewport. The trailing edge
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * is determined relative to the Scroll Pane's ComponentOrientation property.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    String UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    /** Identifies the vertical scroll bar policy property. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    /** Identifies the horizontal scroll bar policy property. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * Used to set the vertical scroll bar policy so that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * vertical scrollbars are displayed only when needed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    int VERTICAL_SCROLLBAR_AS_NEEDED = 20;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * Used to set the vertical scroll bar policy so that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * vertical scrollbars are never displayed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    int VERTICAL_SCROLLBAR_NEVER = 21;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * Used to set the vertical scroll bar policy so that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * vertical scrollbars are always displayed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    int VERTICAL_SCROLLBAR_ALWAYS = 22;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * Used to set the horizontal scroll bar policy so that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * horizontal scrollbars are displayed only when needed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * Used to set the horizontal scroll bar policy so that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * horizontal scrollbars are never displayed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    int HORIZONTAL_SCROLLBAR_NEVER = 31;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * Used to set the horizontal scroll bar policy so that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * horizontal scrollbars are always displayed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    int HORIZONTAL_SCROLLBAR_ALWAYS = 32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
}