jdk/src/share/classes/javax/accessibility/AccessibleResourceBundle.java
author asaha
Mon, 22 Jun 2009 13:36:37 -0700 (2009-06-22)
changeset 3461 cbc3dfc3b609
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs) Reviewed-by: hawtin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 1997-2006 Sun Microsystems, Inc.  All Rights Reserved.
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
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
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
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
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.ListResourceBundle;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * A resource bundle containing the localized strings in the accessibility
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * package.  This is meant only for internal use by Java Accessibility and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * is not meant to be used by assistive technologies or applications.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * @author      Willie Walker
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * @deprecated This class is deprecated as of version 1.3 of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 *             Java Platform.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
@Deprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
public class AccessibleResourceBundle extends ListResourceBundle {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
     * Returns the mapping between the programmatic keys and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
     * localized display strings.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    public Object[][] getContents() {
3461
cbc3dfc3b609 6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs)
asaha
parents: 2
diff changeset
    47
        // The table holding the mapping between the programmatic keys
cbc3dfc3b609 6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs)
asaha
parents: 2
diff changeset
    48
        // and the display strings for the en_US locale.
cbc3dfc3b609 6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs)
asaha
parents: 2
diff changeset
    49
        return new Object[][] {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
3461
cbc3dfc3b609 6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs)
asaha
parents: 2
diff changeset
    51
        // LOCALIZE THIS
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        // Role names
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
//        { "application","application" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
//        { "border","border" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
//        { "checkboxmenuitem","check box menu item" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
//        { "choice","choice" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
//        { "column","column" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
//        { "cursor","cursor" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
//        { "document","document" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
//        { "grouping","grouping" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
//        { "image","image" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
//        { "indicator","indicator" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
//        { "radiobuttonmenuitem","radio button menu item" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
//        { "row","row" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
//        { "tablecell","table cell" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
//        { "treenode","tree node" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
        { "alert","alert" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
        { "awtcomponent","AWT component" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        { "checkbox","check box" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        { "colorchooser","color chooser" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        { "columnheader","column header" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        { "combobox","combo box" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        { "canvas","canvas" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        { "desktopicon","desktop icon" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        { "desktoppane","desktop pane" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        { "dialog","dialog" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        { "directorypane","directory pane" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
        { "glasspane","glass pane" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        { "filechooser","file chooser" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        { "filler","filler" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        { "frame","frame" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        { "internalframe","internal frame" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        { "label","label" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        { "layeredpane","layered pane" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
        { "list","list" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        { "listitem","list item" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        { "menubar","menu bar" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        { "menu","menu" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        { "menuitem","menu item" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        { "optionpane","option pane" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        { "pagetab","page tab" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        { "pagetablist","page tab list" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        { "panel","panel" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        { "passwordtext","password text" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        { "popupmenu","popup menu" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        { "progressbar","progress bar" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
        { "pushbutton","push button" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        { "radiobutton","radio button" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        { "rootpane","root pane" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        { "rowheader","row header" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        { "scrollbar","scroll bar" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        { "scrollpane","scroll pane" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        { "separator","separator" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        { "slider","slider" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        { "splitpane","split pane" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        { "swingcomponent","swing component" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        { "table","table" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        { "text","text" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        { "tree","tree" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        { "togglebutton","toggle button" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        { "toolbar","tool bar" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        { "tooltip","tool tip" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        { "unknown","unknown" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        { "viewport","viewport" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        { "window","window" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        // Relations
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        { "labelFor","label for" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        { "labeledBy","labeled by" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        { "memberOf","member of" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        { "controlledBy","controlledBy" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        { "controllerFor","controllerFor" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        // State modes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        { "active","active" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        { "armed","armed" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        { "busy","busy" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        { "checked","checked" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        { "collapsed", "collapsed" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        { "editable","editable" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        { "expandable", "expandable" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        { "expanded", "expanded" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        { "enabled","enabled" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        { "focusable","focusable" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        { "focused","focused" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        { "iconified", "iconified" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        { "modal", "modal" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        { "multiline", "multiple line" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        { "multiselectable","multiselectable" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        { "opaque", "opaque" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        { "pressed","pressed" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        { "resizable", "resizable" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        { "selectable","selectable" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        { "selected","selected" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        { "showing","showing" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        { "singleline", "single line" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        { "transient", "transient" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        { "visible","visible" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        { "vertical","vertical" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        { "horizontal","horizontal" }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    // END OF MATERIAL TO LOCALIZE
3461
cbc3dfc3b609 6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs)
asaha
parents: 2
diff changeset
   150
        };
cbc3dfc3b609 6656610: AccessibleResourceBundle.getContents exposes mutable static (findbugs)
asaha
parents: 2
diff changeset
   151
    }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
}