jdk/src/java.desktop/share/classes/javax/accessibility/AccessibleState.java
author prr
Sat, 19 Sep 2015 15:45:59 -0700
changeset 32865 f9cb6e427f9e
parent 25859 3317bb8137f4
child 45649 499d43823920
permissions -rw-r--r--
8136783: Run blessed-modifier-order script on java.desktop Reviewed-by: martin, serb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 1997, 2004, 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.accessibility;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.Vector;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.util.Locale;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.MissingResourceException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.ResourceBundle;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * <P>Class AccessibleState describes a component's particular state.  The actual
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * state of the component is defined as an AccessibleStateSet, which is a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * composed set of AccessibleStates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * <p>The toDisplayString method allows you to obtain the localized string
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * for a locale independent key from a predefined ResourceBundle for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * keys defined in this class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * <p>The constants in this class present a strongly typed enumeration
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * of common object roles.  A public constructor for this class has been
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * purposely omitted and applications should use one of the constants
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * from this class.  If the constants in this class are not sufficient
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * to describe the role of an object, a subclass should be generated
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * from this class and it should provide constants in a similar manner.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * @author      Willie Walker
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * @author      Peter Korn
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
public class AccessibleState extends AccessibleBundle {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    // If you add or remove anything from here, make sure you
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    // update AccessibleResourceBundle.java.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
     * Indicates a window is currently the active window.  This includes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     * windows, dialogs, frames, etc.  In addition, this state is used
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * to indicate the currently active child of a component such as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * list, table, or tree.  For example, the active child of a list
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * is the child that is drawn with a rectangle around it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * @see AccessibleRole#WINDOW
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * @see AccessibleRole#FRAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     * @see AccessibleRole#DIALOG
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    public static final AccessibleState ACTIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
            = new AccessibleState("active");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * Indicates this object is currently pressed.  This is usually
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * associated with buttons and indicates the user has pressed a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * mouse button while the pointer was over the button and has
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * not yet released the mouse button.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * @see AccessibleRole#PUSH_BUTTON
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    public static final AccessibleState PRESSED
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
            = new AccessibleState("pressed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * Indicates that the object is armed.  This is usually used on buttons
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     * that have been pressed but not yet released, and the mouse pointer
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * is still over the button.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * @see AccessibleRole#PUSH_BUTTON
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    public static final AccessibleState ARMED
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
            = new AccessibleState("armed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * Indicates the current object is busy.  This is usually used on objects
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * such as progress bars, sliders, or scroll bars to indicate they are
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * in a state of transition.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * @see AccessibleRole#PROGRESS_BAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * @see AccessibleRole#SCROLL_BAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * @see AccessibleRole#SLIDER
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    public static final AccessibleState BUSY
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            = new AccessibleState("busy");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * Indicates this object is currently checked.  This is usually used on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * objects such as toggle buttons, radio buttons, and check boxes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * @see AccessibleRole#TOGGLE_BUTTON
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * @see AccessibleRole#RADIO_BUTTON
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * @see AccessibleRole#CHECK_BOX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    public static final AccessibleState CHECKED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
            = new AccessibleState("checked");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * Indicates the user can change the contents of this object.  This
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * is usually used primarily for objects that allow the user to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * enter text.  Other objects, such as scroll bars and sliders,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * are automatically editable if they are enabled.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * @see #ENABLED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    public static final AccessibleState EDITABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
            = new AccessibleState("editable");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * Indicates this object allows progressive disclosure of its children.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * This is usually used with hierarchical objects such as trees and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * is often paired with the EXPANDED or COLLAPSED states.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * @see #EXPANDED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * @see #COLLAPSED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * @see AccessibleRole#TREE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    public static final AccessibleState EXPANDABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
            = new AccessibleState("expandable");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * Indicates this object is collapsed.  This is usually paired with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * EXPANDABLE state and is used on objects that provide progressive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * disclosure such as trees.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * @see #EXPANDABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * @see #EXPANDED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * @see AccessibleRole#TREE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    public static final AccessibleState COLLAPSED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
            = new AccessibleState("collapsed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * Indicates this object is expanded.  This is usually paired with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * EXPANDABLE state and is used on objects that provide progressive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * disclosure such as trees.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * @see #EXPANDABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * @see #COLLAPSED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * @see AccessibleRole#TREE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    public static final AccessibleState EXPANDED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
            = new AccessibleState("expanded");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * Indicates this object is enabled.  The absence of this state from an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * object's state set indicates this object is not enabled.  An object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * that is not enabled cannot be manipulated by the user.  In a graphical
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * display, it is usually grayed out.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    public static final AccessibleState ENABLED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
            = new AccessibleState("enabled");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * Indicates this object can accept keyboard focus, which means all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * events resulting from typing on the keyboard will normally be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * passed to it when it has focus.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * @see #FOCUSED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    public static final AccessibleState FOCUSABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            = new AccessibleState("focusable");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * Indicates this object currently has the keyboard focus.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * @see #FOCUSABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    public static final AccessibleState FOCUSED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
            = new AccessibleState("focused");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * Indicates this object is minimized and is represented only by an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * icon.  This is usually only associated with frames and internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * frames.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * @see AccessibleRole#FRAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * @see AccessibleRole#INTERNAL_FRAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    public static final AccessibleState ICONIFIED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
            = new AccessibleState("iconified");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * Indicates something must be done with this object before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * user can interact with an object in a different window.  This
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * is usually associated only with dialogs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * @see AccessibleRole#DIALOG
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    public static final AccessibleState MODAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
            = new AccessibleState("modal");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * Indicates this object paints every pixel within its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * rectangular region. A non-opaque component paints only some of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * its pixels, allowing the pixels underneath it to "show through".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * A component that does not fully paint its pixels therefore
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * provides a degree of transparency.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * @see Accessible#getAccessibleContext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * @see AccessibleContext#getAccessibleComponent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * @see AccessibleComponent#getBounds
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    public static final AccessibleState OPAQUE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            = new AccessibleState("opaque");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * Indicates the size of this object is not fixed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * @see Accessible#getAccessibleContext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * @see AccessibleContext#getAccessibleComponent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * @see AccessibleComponent#getSize
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * @see AccessibleComponent#setSize
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    public static final AccessibleState RESIZABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
            = new AccessibleState("resizable");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * Indicates this object allows more than one of its children to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * be selected at the same time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * @see Accessible#getAccessibleContext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * @see AccessibleContext#getAccessibleSelection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * @see AccessibleSelection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    public static final AccessibleState MULTISELECTABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            = new AccessibleState("multiselectable");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
     * Indicates this object is the child of an object that allows its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
     * children to be selected, and that this child is one of those
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * children that can be selected.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * @see #SELECTED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * @see Accessible#getAccessibleContext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     * @see AccessibleContext#getAccessibleSelection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * @see AccessibleSelection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    public static final AccessibleState SELECTABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
            = new AccessibleState("selectable");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * Indicates this object is the child of an object that allows its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * children to be selected, and that this child is one of those
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * children that has been selected.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     * @see #SELECTABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * @see Accessible#getAccessibleContext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     * @see AccessibleContext#getAccessibleSelection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     * @see AccessibleSelection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    public static final AccessibleState SELECTED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
            = new AccessibleState("selected");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     * Indicates this object, the object's parent, the object's parent's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     * parent, and so on, are all visible.  Note that this does not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     * necessarily mean the object is painted on the screen.  It might
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     * be occluded by some other showing object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     * @see #VISIBLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
    public static final AccessibleState SHOWING
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
            = new AccessibleState("showing");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     * Indicates this object is visible.  Note: this means that the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
     * object intends to be visible; however, it may not in fact be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
     * showing on the screen because one of the objects that this object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
     * is contained by is not visible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     * @see #SHOWING
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
    public static final AccessibleState VISIBLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
            = new AccessibleState("visible");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     * Indicates the orientation of this object is vertical.  This is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
     * usually associated with objects such as scrollbars, sliders, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     * progress bars.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     * @see #VERTICAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     * @see AccessibleRole#SCROLL_BAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     * @see AccessibleRole#SLIDER
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     * @see AccessibleRole#PROGRESS_BAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
    public static final AccessibleState VERTICAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
            = new AccessibleState("vertical");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     * Indicates the orientation of this object is horizontal.  This is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
     * usually associated with objects such as scrollbars, sliders, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     * progress bars.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
     * @see #HORIZONTAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
     * @see AccessibleRole#SCROLL_BAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     * @see AccessibleRole#SLIDER
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * @see AccessibleRole#PROGRESS_BAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
    public static final AccessibleState HORIZONTAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
            = new AccessibleState("horizontal");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     * Indicates this (text) object can contain only a single line of text
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
    public static final AccessibleState SINGLE_LINE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
            = new AccessibleState("singleline");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * Indicates this (text) object can contain multiple lines of text
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
    public static final AccessibleState MULTI_LINE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
            = new AccessibleState("multiline");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     * Indicates this object is transient.  An assistive technology should
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     * not add a PropertyChange listener to an object with transient state,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * as that object will never generate any events.  Transient objects
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     * are typically created to answer Java Accessibility method queries,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * but otherwise do not remain linked to the underlying object (for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * example, those objects underneath lists, tables, and trees in Swing,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
     * where only one actual UI Component does shared rendering duty for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     * all of the data objects underneath the actual list/table/tree elements).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
    public static final AccessibleState TRANSIENT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
            = new AccessibleState("transient");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
     * Indicates this object is responsible for managing its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
     * subcomponents.  This is typically used for trees and tables
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
     * that have a large number of subcomponents and where the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
     * objects are created only when needed and otherwise remain virtual.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
     * The application should not manage the subcomponents directly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
    public static final AccessibleState MANAGES_DESCENDANTS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
            = new AccessibleState ("managesDescendants");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * Indicates that the object state is indeterminate.  An example
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     * is selected text that is partially bold and partially not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
     * bold. In this case the attributes associated with the selected
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
     * text are indeterminate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
    public static final AccessibleState INDETERMINATE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
           = new AccessibleState ("indeterminate");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     * A state indicating that text is truncated by a bounding rectangle
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     * and that some of the text is not displayed on the screen.  An example
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
     * is text in a spreadsheet cell that is truncated by the bounds of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
     * the cell.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
     */
32865
f9cb6e427f9e 8136783: Run blessed-modifier-order script on java.desktop
prr
parents: 25859
diff changeset
   356
    public static final AccessibleState TRUNCATED
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
           =  new AccessibleState("truncated");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
     * Creates a new AccessibleState using the given locale independent key.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
     * This should not be a public method.  Instead, it is used to create
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
     * the constants in this file to make it a strongly typed enumeration.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
     * Subclasses of this class should enforce similar policy.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
     * The key String should be a locale independent key for the state.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
     * It is not intended to be used as the actual String to display
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     * to the user.  To get the localized string, use toDisplayString.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     * @param key the locale independent name of the state.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     * @see AccessibleBundle#toDisplayString
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
    protected AccessibleState(String key) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
        this.key = key;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
}