1/*
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. 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.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle 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 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.
24 */
25
26package javax.accessibility;
27
28import java.util.ListResourceBundle;
29
30/**
31 * A resource bundle containing the localized strings in the accessibility
32 * package. This is meant only for internal use by Java Accessibility and is not
33 * meant to be used by assistive technologies or applications.
34 *
35 * @author Willie Walker
36 * @deprecated This class is deprecated as of version 1.3 of the Java Platform
37 */
38@Deprecated
39public class AccessibleResourceBundle extends ListResourceBundle {
40
41    /**
42     * Returns the mapping between the programmatic keys and the localized
43     * display strings.
44     *
45     * @return an array of an {@code Object} array representing a key-value pair
46     */
47    public Object[][] getContents() {
48        // The table holding the mapping between the programmatic keys
49        // and the display strings for the en_US locale.
50        return new Object[][] {
51
52        // LOCALIZE THIS
53        // Role names
54//        { "application","application" },
55//        { "border","border" },
56//        { "checkboxmenuitem","check box menu item" },
57//        { "choice","choice" },
58//        { "column","column" },
59//        { "cursor","cursor" },
60//        { "document","document" },
61//        { "grouping","grouping" },
62//        { "image","image" },
63//        { "indicator","indicator" },
64//        { "radiobuttonmenuitem","radio button menu item" },
65//        { "row","row" },
66//        { "tablecell","table cell" },
67//        { "treenode","tree node" },
68        { "alert","alert" },
69        { "awtcomponent","AWT component" },
70        { "checkbox","check box" },
71        { "colorchooser","color chooser" },
72        { "columnheader","column header" },
73        { "combobox","combo box" },
74        { "canvas","canvas" },
75        { "desktopicon","desktop icon" },
76        { "desktoppane","desktop pane" },
77        { "dialog","dialog" },
78        { "directorypane","directory pane" },
79        { "glasspane","glass pane" },
80        { "filechooser","file chooser" },
81        { "filler","filler" },
82        { "frame","frame" },
83        { "internalframe","internal frame" },
84        { "label","label" },
85        { "layeredpane","layered pane" },
86        { "list","list" },
87        { "listitem","list item" },
88        { "menubar","menu bar" },
89        { "menu","menu" },
90        { "menuitem","menu item" },
91        { "optionpane","option pane" },
92        { "pagetab","page tab" },
93        { "pagetablist","page tab list" },
94        { "panel","panel" },
95        { "passwordtext","password text" },
96        { "popupmenu","popup menu" },
97        { "progressbar","progress bar" },
98        { "pushbutton","push button" },
99        { "radiobutton","radio button" },
100        { "rootpane","root pane" },
101        { "rowheader","row header" },
102        { "scrollbar","scroll bar" },
103        { "scrollpane","scroll pane" },
104        { "separator","separator" },
105        { "slider","slider" },
106        { "splitpane","split pane" },
107        { "swingcomponent","swing component" },
108        { "table","table" },
109        { "text","text" },
110        { "tree","tree" },
111        { "togglebutton","toggle button" },
112        { "toolbar","tool bar" },
113        { "tooltip","tool tip" },
114        { "unknown","unknown" },
115        { "viewport","viewport" },
116        { "window","window" },
117        // Relations
118        { "labelFor","label for" },
119        { "labeledBy","labeled by" },
120        { "memberOf","member of" },
121        { "controlledBy","controlledBy" },
122        { "controllerFor","controllerFor" },
123        // State modes
124        { "active","active" },
125        { "armed","armed" },
126        { "busy","busy" },
127        { "checked","checked" },
128        { "collapsed", "collapsed" },
129        { "editable","editable" },
130        { "expandable", "expandable" },
131        { "expanded", "expanded" },
132        { "enabled","enabled" },
133        { "focusable","focusable" },
134        { "focused","focused" },
135        { "iconified", "iconified" },
136        { "modal", "modal" },
137        { "multiline", "multiple line" },
138        { "multiselectable","multiselectable" },
139        { "opaque", "opaque" },
140        { "pressed","pressed" },
141        { "resizable", "resizable" },
142        { "selectable","selectable" },
143        { "selected","selected" },
144        { "showing","showing" },
145        { "singleline", "single line" },
146        { "transient", "transient" },
147        { "visible","visible" },
148        { "vertical","vertical" },
149        { "horizontal","horizontal" }
150    // END OF MATERIAL TO LOCALIZE
151        };
152    }
153}
154