1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 package org.openoffice.accessibility.misc;
23 
24 import java.util.HashMap;
25 import com.sun.star.accessibility.AccessibleStateType;
26 import com.sun.star.accessibility.AccessibleEventId;
27 import com.sun.star.accessibility.AccessibleRole;
28 import com.sun.star.accessibility.AccessibleRelationType;
29 
30 
31 /** Provide names for several accessibility constants groups.
32 */
33 public class NameProvider
34 {
35     /** Return the name of the specified state.
36         @param nStateId
37             Id of the state for which to return its name.  This is one of
38             the ids listed in the <type>AccessibleStateType</const>
39             constants group.
40         @return
41             Returns the name of the specified state.  When an invalid or
42             unknown state id is given then a special string is returned that
43             says that the state does not exist.
44      */
getStateName(int nStateId)45     public static String getStateName (int nStateId)
46     {
47         String sStateName = (String)maStateMap.get (new Integer(nStateId));
48         if (sStateName == null)
49             sStateName = new String ("<unknown state " + nStateId + ">");
50         return sStateName;
51     }
52 
53 
54     /** Return the name of the specified event.
55         @param nEventId
56             Id of the event type for which to return its name.  This is one
57             of the ids listed in the <type>AccessibleEventId</const>
58             constants group.
59         @return
60             Returns the name of the specified event type or an empty string
61             if an invalid / unknown event id was given.
62      */
getEventName(int nEventId)63     public static String getEventName (int nEventId)
64     {
65         return (String)maEventMap.get (new Integer(nEventId));
66     }
67 
68 
69     /** Return the name of the specified role.
70         @param nRole
71             Id of the role for which to return its name.  This is one of
72             the ids listed in the <type>AccessibleRole</const>
73             constants group.
74         @return
75             Returns the name of the specified role or an empty string if an
76             invalid / unknown role id was given.
77      */
getRoleName(int nRole)78     public static String getRoleName (int nRole)
79     {
80         return (String)maRoleMap.get (new Integer(nRole));
81     }
82 
83 
84     /** Return the name of the specified relation.
85         @param nRelation
86             Id of the relation for which to return its name.  This is one of
87             the ids listed in the <type>AccessibleRelationType</const>
88             constants group.
89         @return
90             Returns the name of the specified relation type or an empty
91             string if an invalid / unknown role id was given.
92      */
getRelationName(int nRelation)93     public static String getRelationName (int nRelation)
94     {
95         return (String)maRelationMap.get (new Integer(nRelation));
96     }
97 
98 
99     private static HashMap maStateMap = new HashMap();
100     private static HashMap maEventMap = new HashMap();
101     private static HashMap maRoleMap = new HashMap();
102     private static HashMap maRelationMap = new HashMap();
103 
104     static {
maStateMap.put(new Integer (AccessibleStateType.INVALID), R)105         maStateMap.put (new Integer (AccessibleStateType.INVALID), "INVALID");
maStateMap.put(new Integer (AccessibleStateType.ACTIVE), R)106         maStateMap.put (new Integer (AccessibleStateType.ACTIVE), "ACTIVE");
maStateMap.put(new Integer (AccessibleStateType.ARMED), R)107         maStateMap.put (new Integer (AccessibleStateType.ARMED), "ARMED");
maStateMap.put(new Integer (AccessibleStateType.BUSY), R)108         maStateMap.put (new Integer (AccessibleStateType.BUSY), "BUSY");
maStateMap.put(new Integer (AccessibleStateType.CHECKED), R)109         maStateMap.put (new Integer (AccessibleStateType.CHECKED), "CHECKED");
110         //        maStateMap.put (new Integer (AccessibleStateType.COLLAPSED), "COLLAPSED");
maStateMap.put(new Integer (AccessibleStateType.DEFUNC), R)111         maStateMap.put (new Integer (AccessibleStateType.DEFUNC), "DEFUNC");
maStateMap.put(new Integer (AccessibleStateType.EDITABLE), R)112         maStateMap.put (new Integer (AccessibleStateType.EDITABLE), "EDITABLE");
maStateMap.put(new Integer (AccessibleStateType.ENABLED), R)113         maStateMap.put (new Integer (AccessibleStateType.ENABLED), "ENABLED");
maStateMap.put(new Integer (AccessibleStateType.EXPANDABLE), R)114         maStateMap.put (new Integer (AccessibleStateType.EXPANDABLE), "EXPANDABLE");
maStateMap.put(new Integer (AccessibleStateType.EXPANDED), R)115         maStateMap.put (new Integer (AccessibleStateType.EXPANDED), "EXPANDED");
maStateMap.put(new Integer (AccessibleStateType.FOCUSABLE), R)116         maStateMap.put (new Integer (AccessibleStateType.FOCUSABLE), "FOCUSABLE");
maStateMap.put(new Integer (AccessibleStateType.FOCUSED), R)117         maStateMap.put (new Integer (AccessibleStateType.FOCUSED), "FOCUSED");
maStateMap.put(new Integer (AccessibleStateType.HORIZONTAL), R)118         maStateMap.put (new Integer (AccessibleStateType.HORIZONTAL), "HORIZONTAL");
maStateMap.put(new Integer (AccessibleStateType.ICONIFIED), R)119         maStateMap.put (new Integer (AccessibleStateType.ICONIFIED), "ICONIFIED");
maStateMap.put(new Integer (AccessibleStateType.MODAL), R)120         maStateMap.put (new Integer (AccessibleStateType.MODAL), "MODAL");
maStateMap.put(new Integer (AccessibleStateType.MULTI_LINE), R)121         maStateMap.put (new Integer (AccessibleStateType.MULTI_LINE), "MULTI_LINE");
maStateMap.put(new Integer (AccessibleStateType.MULTI_SELECTABLE), R)122         maStateMap.put (new Integer (AccessibleStateType.MULTI_SELECTABLE), "MULTI_SELECTABLE");
maStateMap.put(new Integer (AccessibleStateType.OPAQUE), R)123         maStateMap.put (new Integer (AccessibleStateType.OPAQUE), "OPAQUE");
maStateMap.put(new Integer (AccessibleStateType.PRESSED), R)124         maStateMap.put (new Integer (AccessibleStateType.PRESSED), "PRESSED");
maStateMap.put(new Integer (AccessibleStateType.RESIZABLE), R)125         maStateMap.put (new Integer (AccessibleStateType.RESIZABLE), "RESIZABLE");
maStateMap.put(new Integer (AccessibleStateType.SELECTABLE), R)126         maStateMap.put (new Integer (AccessibleStateType.SELECTABLE), "SELECTABLE");
maStateMap.put(new Integer (AccessibleStateType.SELECTED), R)127         maStateMap.put (new Integer (AccessibleStateType.SELECTED), "SELECTED");
maStateMap.put(new Integer (AccessibleStateType.SENSITIVE), R)128         maStateMap.put (new Integer (AccessibleStateType.SENSITIVE), "SENSITIVE");
maStateMap.put(new Integer (AccessibleStateType.SHOWING), R)129         maStateMap.put (new Integer (AccessibleStateType.SHOWING), "SHOWING");
maStateMap.put(new Integer (AccessibleStateType.SINGLE_LINE), R)130         maStateMap.put (new Integer (AccessibleStateType.SINGLE_LINE), "SINGLE_LINE");
maStateMap.put(new Integer (AccessibleStateType.STALE), R)131         maStateMap.put (new Integer (AccessibleStateType.STALE), "STALE");
maStateMap.put(new Integer (AccessibleStateType.TRANSIENT), R)132         maStateMap.put (new Integer (AccessibleStateType.TRANSIENT), "TRANSIENT");
maStateMap.put(new Integer (AccessibleStateType.VERTICAL), R)133         maStateMap.put (new Integer (AccessibleStateType.VERTICAL), "VERTICAL");
maStateMap.put(new Integer (AccessibleStateType.VISIBLE), R)134         maStateMap.put (new Integer (AccessibleStateType.VISIBLE), "VISIBLE");
maStateMap.put(new Integer (AccessibleStateType.MANAGES_DESCENDANTS), R)135         maStateMap.put (new Integer (AccessibleStateType.MANAGES_DESCENDANTS),
136             "MANAGES_DESCENDANTS");
137         //maStateMap.put (new Integer (AccessibleStateType.INCONSISTENT),"INCONSISTENT");
138 
139 
maEventMap.put(new Integer (0), R)140         maEventMap.put (new Integer (0),
141             "[UNKNOWN]");
maEventMap.put(new Integer (AccessibleEventId.NAME_CHANGED), R)142         maEventMap.put (new Integer (AccessibleEventId.NAME_CHANGED),
143             "NAME_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.DESCRIPTION_CHANGED), R)144         maEventMap.put (new Integer (AccessibleEventId.DESCRIPTION_CHANGED),
145             "DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.ACTION_CHANGED), R)146         maEventMap.put (new Integer (AccessibleEventId.ACTION_CHANGED),
147             "ACTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.STATE_CHANGED), R)148         maEventMap.put (new Integer (AccessibleEventId.STATE_CHANGED),
149             "STATE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.ACTIVE_DESCENDANT_CHANGED), R)150         maEventMap.put (new Integer (AccessibleEventId.ACTIVE_DESCENDANT_CHANGED),
151             "ACTIVE_DESCENDANT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.BOUNDRECT_CHANGED), R)152         maEventMap.put (new Integer (AccessibleEventId.BOUNDRECT_CHANGED),
153             "BOUNDRECT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CHILD), R)154         maEventMap.put (new Integer (AccessibleEventId.CHILD),
155             "CHILD");
maEventMap.put(new Integer (AccessibleEventId.INVALIDATE_ALL_CHILDREN), R)156         maEventMap.put (new Integer (AccessibleEventId.INVALIDATE_ALL_CHILDREN),
157             "INVALIDATE_ALL_CHILDREN");
maEventMap.put(new Integer (AccessibleEventId.SELECTION_CHANGED), R)158         maEventMap.put (new Integer (AccessibleEventId.SELECTION_CHANGED),
159             "SELECTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.VISIBLE_DATA_CHANGED), R)160         maEventMap.put (new Integer (AccessibleEventId.VISIBLE_DATA_CHANGED),
161             "VISIBLE_DATA_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.VALUE_CHANGED), R)162         maEventMap.put (new Integer (AccessibleEventId.VALUE_CHANGED),
163             "VALUE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTENT_FLOWS_FROM_RELATION_CHANGED), R)164         maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_FROM_RELATION_CHANGED),
165             "CONTENT_FLOWS_FROM_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTENT_FLOWS_TO_RELATION_CHANGED), R)166         maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_TO_RELATION_CHANGED),
167             "CONTENT_FLOWS_TO_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTROLLED_BY_RELATION_CHANGED), R)168         maEventMap.put (new Integer (AccessibleEventId.CONTROLLED_BY_RELATION_CHANGED),
169             "CONTROLLED_BY_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTROLLER_FOR_RELATION_CHANGED), R)170         maEventMap.put (new Integer (AccessibleEventId.CONTROLLER_FOR_RELATION_CHANGED),
171             "CONTROLLER_FOR_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.LABEL_FOR_RELATION_CHANGED), R)172         maEventMap.put (new Integer (AccessibleEventId.LABEL_FOR_RELATION_CHANGED),
173             "LABEL_FOR_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.LABELED_BY_RELATION_CHANGED), R)174         maEventMap.put (new Integer (AccessibleEventId.LABELED_BY_RELATION_CHANGED),
175             "LABELED_BY_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.MEMBER_OF_RELATION_CHANGED), R)176         maEventMap.put (new Integer (AccessibleEventId.MEMBER_OF_RELATION_CHANGED),
177             "MEMBER_OF_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.SUB_WINDOW_OF_RELATION_CHANGED), R)178         maEventMap.put (new Integer (AccessibleEventId.SUB_WINDOW_OF_RELATION_CHANGED),
179             "SUB_WINDOW_OF_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CARET_CHANGED), R)180         maEventMap.put (new Integer (AccessibleEventId.CARET_CHANGED),
181             "CARET_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_SELECTION_CHANGED), R)182         maEventMap.put (new Integer (AccessibleEventId.TEXT_SELECTION_CHANGED),
183             "TEXT_SELECTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_CHANGED), R)184         maEventMap.put (new Integer (AccessibleEventId.TEXT_CHANGED),
185             "TEXT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_ATTRIBUTE_CHANGED), R)186         maEventMap.put (new Integer (AccessibleEventId.TEXT_ATTRIBUTE_CHANGED),
187             "TEXT_ATTRIBUTE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.HYPERTEXT_CHANGED), R)188         maEventMap.put (new Integer (AccessibleEventId.HYPERTEXT_CHANGED),
189             "HYPERTEXT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_CAPTION_CHANGED), R)190         maEventMap.put (new Integer (AccessibleEventId.TABLE_CAPTION_CHANGED),
191             "TABLE_CAPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_COLUMN_DESCRIPTION_CHANGED), R)192         maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_DESCRIPTION_CHANGED),
193             "TABLE_COLUMN_DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_COLUMN_HEADER_CHANGED), R)194         maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_HEADER_CHANGED),
195             "TABLE_COLUMN_HEADER_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_MODEL_CHANGED), R)196         maEventMap.put (new Integer (AccessibleEventId.TABLE_MODEL_CHANGED),
197             "TABLE_MODEL_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_ROW_DESCRIPTION_CHANGED), R)198         maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_DESCRIPTION_CHANGED),
199             "TABLE_ROW_DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_ROW_HEADER_CHANGED), R)200         maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_HEADER_CHANGED),
201             "TABLE_ROW_HEADER_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_SUMMARY_CHANGED), R)202         maEventMap.put (new Integer (AccessibleEventId.TABLE_SUMMARY_CHANGED),
203             "TABLE_SUMMARY_CHANGED");
204 
maRoleMap.put(new Integer(AccessibleRole.UNKNOWN), R)205         maRoleMap.put (new Integer(AccessibleRole.UNKNOWN), "UNKNOWN");
maRoleMap.put(new Integer (AccessibleRole.UNKNOWN), R)206         maRoleMap.put (new Integer (AccessibleRole.UNKNOWN), "UNKNOWN");
maRoleMap.put(new Integer (AccessibleRole.ALERT), R)207         maRoleMap.put (new Integer (AccessibleRole.ALERT), "ALERT");
maRoleMap.put(new Integer (AccessibleRole.COLUMN_HEADER), R)208         maRoleMap.put (new Integer (AccessibleRole.COLUMN_HEADER), "COLUMN_HEADER");
maRoleMap.put(new Integer (AccessibleRole.CANVAS), R)209         maRoleMap.put (new Integer (AccessibleRole.CANVAS), "CANVAS");
maRoleMap.put(new Integer (AccessibleRole.CHECK_BOX), R)210         maRoleMap.put (new Integer (AccessibleRole.CHECK_BOX), "CHECK_BOX");
maRoleMap.put(new Integer (AccessibleRole.CHECK_MENU_ITEM), R)211         maRoleMap.put (new Integer (AccessibleRole.CHECK_MENU_ITEM), "CHECK_MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.COLOR_CHOOSER), R)212         maRoleMap.put (new Integer (AccessibleRole.COLOR_CHOOSER), "COLOR_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.COMBO_BOX), R)213         maRoleMap.put (new Integer (AccessibleRole.COMBO_BOX), "COMBO_BOX");
maRoleMap.put(new Integer (AccessibleRole.DESKTOP_ICON), R)214         maRoleMap.put (new Integer (AccessibleRole.DESKTOP_ICON), "DESKTOP_ICON");
maRoleMap.put(new Integer (AccessibleRole.DESKTOP_PANE), R)215         maRoleMap.put (new Integer (AccessibleRole.DESKTOP_PANE), "DESKTOP_PANE");
maRoleMap.put(new Integer (AccessibleRole.DIRECTORY_PANE), R)216         maRoleMap.put (new Integer (AccessibleRole.DIRECTORY_PANE), "DIRECTORY_PANE");
maRoleMap.put(new Integer (AccessibleRole.DIALOG), R)217         maRoleMap.put (new Integer (AccessibleRole.DIALOG), "DIALOG");
maRoleMap.put(new Integer (AccessibleRole.DOCUMENT), R)218         maRoleMap.put (new Integer (AccessibleRole.DOCUMENT), "DOCUMENT");
maRoleMap.put(new Integer (AccessibleRole.EMBEDDED_OBJECT), R)219         maRoleMap.put (new Integer (AccessibleRole.EMBEDDED_OBJECT), "EMBEDDED_OBJECT");
maRoleMap.put(new Integer (AccessibleRole.END_NOTE), R)220         maRoleMap.put (new Integer (AccessibleRole.END_NOTE), "END_NOTE");
maRoleMap.put(new Integer (AccessibleRole.FILE_CHOOSER), R)221         maRoleMap.put (new Integer (AccessibleRole.FILE_CHOOSER), "FILE_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.FILLER), R)222         maRoleMap.put (new Integer (AccessibleRole.FILLER), "FILLER");
maRoleMap.put(new Integer (AccessibleRole.FONT_CHOOSER), R)223         maRoleMap.put (new Integer (AccessibleRole.FONT_CHOOSER), "FONT_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.FOOTER), R)224         maRoleMap.put (new Integer (AccessibleRole.FOOTER), "FOOTER");
maRoleMap.put(new Integer (AccessibleRole.FOOTNOTE), R)225         maRoleMap.put (new Integer (AccessibleRole.FOOTNOTE), "FOOTNOTE");
maRoleMap.put(new Integer (AccessibleRole.FRAME), R)226         maRoleMap.put (new Integer (AccessibleRole.FRAME), "FRAME");
maRoleMap.put(new Integer (AccessibleRole.GLASS_PANE), R)227         maRoleMap.put (new Integer (AccessibleRole.GLASS_PANE), "GLASS_PANE");
maRoleMap.put(new Integer (AccessibleRole.GRAPHIC), R)228         maRoleMap.put (new Integer (AccessibleRole.GRAPHIC), "GRAPHIC");
maRoleMap.put(new Integer (AccessibleRole.GROUP_BOX), R)229         maRoleMap.put (new Integer (AccessibleRole.GROUP_BOX), "GROUP_BOX");
maRoleMap.put(new Integer (AccessibleRole.HEADER), R)230         maRoleMap.put (new Integer (AccessibleRole.HEADER), "HEADER");
maRoleMap.put(new Integer (AccessibleRole.HEADING), R)231         maRoleMap.put (new Integer (AccessibleRole.HEADING), "HEADING");
maRoleMap.put(new Integer (AccessibleRole.HYPER_LINK), R)232         maRoleMap.put (new Integer (AccessibleRole.HYPER_LINK), "HYPER_LINK");
maRoleMap.put(new Integer (AccessibleRole.ICON), R)233         maRoleMap.put (new Integer (AccessibleRole.ICON), "ICON");
maRoleMap.put(new Integer (AccessibleRole.INTERNAL_FRAME), R)234         maRoleMap.put (new Integer (AccessibleRole.INTERNAL_FRAME), "INTERNAL_FRAME");
maRoleMap.put(new Integer (AccessibleRole.LABEL), R)235         maRoleMap.put (new Integer (AccessibleRole.LABEL), "LABEL");
maRoleMap.put(new Integer (AccessibleRole.LAYERED_PANE), R)236         maRoleMap.put (new Integer (AccessibleRole.LAYERED_PANE), "LAYERED_PANE");
maRoleMap.put(new Integer (AccessibleRole.LIST), R)237         maRoleMap.put (new Integer (AccessibleRole.LIST), "LIST");
maRoleMap.put(new Integer (AccessibleRole.LIST_ITEM), R)238         maRoleMap.put (new Integer (AccessibleRole.LIST_ITEM), "LIST_ITEM");
maRoleMap.put(new Integer (AccessibleRole.MENU), R)239         maRoleMap.put (new Integer (AccessibleRole.MENU), "MENU");
maRoleMap.put(new Integer (AccessibleRole.MENU_BAR), R)240         maRoleMap.put (new Integer (AccessibleRole.MENU_BAR), "MENU_BAR");
maRoleMap.put(new Integer (AccessibleRole.MENU_ITEM), R)241         maRoleMap.put (new Integer (AccessibleRole.MENU_ITEM), "MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.OPTION_PANE), R)242         maRoleMap.put (new Integer (AccessibleRole.OPTION_PANE), "OPTION_PANE");
maRoleMap.put(new Integer (AccessibleRole.PAGE_TAB), R)243         maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB), "PAGE_TAB");
maRoleMap.put(new Integer (AccessibleRole.PAGE_TAB_LIST), R)244         maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB_LIST), "PAGE_TAB_LIST");
maRoleMap.put(new Integer (AccessibleRole.PANEL), R)245         maRoleMap.put (new Integer (AccessibleRole.PANEL), "PANEL");
maRoleMap.put(new Integer (AccessibleRole.PARAGRAPH), R)246         maRoleMap.put (new Integer (AccessibleRole.PARAGRAPH), "PARAGRAPH");
maRoleMap.put(new Integer (AccessibleRole.PASSWORD_TEXT), R)247         maRoleMap.put (new Integer (AccessibleRole.PASSWORD_TEXT), "PASSWORD_TEXT");
maRoleMap.put(new Integer (AccessibleRole.POPUP_MENU), R)248         maRoleMap.put (new Integer (AccessibleRole.POPUP_MENU), "POPUP_MENU");
maRoleMap.put(new Integer (AccessibleRole.PUSH_BUTTON), R)249         maRoleMap.put (new Integer (AccessibleRole.PUSH_BUTTON), "PUSH_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.PROGRESS_BAR), R)250         maRoleMap.put (new Integer (AccessibleRole.PROGRESS_BAR), "PROGRESS_BAR");
maRoleMap.put(new Integer (AccessibleRole.RADIO_BUTTON), R)251         maRoleMap.put (new Integer (AccessibleRole.RADIO_BUTTON), "RADIO_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.RADIO_MENU_ITEM), R)252         maRoleMap.put (new Integer (AccessibleRole.RADIO_MENU_ITEM), "RADIO_MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.ROW_HEADER), R)253         maRoleMap.put (new Integer (AccessibleRole.ROW_HEADER), "ROW_HEADER");
maRoleMap.put(new Integer (AccessibleRole.ROOT_PANE), R)254         maRoleMap.put (new Integer (AccessibleRole.ROOT_PANE), "ROOT_PANE");
maRoleMap.put(new Integer (AccessibleRole.SCROLL_BAR), R)255         maRoleMap.put (new Integer (AccessibleRole.SCROLL_BAR), "SCROLL_BAR");
maRoleMap.put(new Integer (AccessibleRole.SCROLL_PANE), R)256         maRoleMap.put (new Integer (AccessibleRole.SCROLL_PANE), "SCROLL_PANE");
maRoleMap.put(new Integer (AccessibleRole.SHAPE), R)257         maRoleMap.put (new Integer (AccessibleRole.SHAPE), "SHAPE");
maRoleMap.put(new Integer (AccessibleRole.SEPARATOR), R)258         maRoleMap.put (new Integer (AccessibleRole.SEPARATOR), "SEPARATOR");
maRoleMap.put(new Integer (AccessibleRole.SLIDER), R)259         maRoleMap.put (new Integer (AccessibleRole.SLIDER), "SLIDER");
maRoleMap.put(new Integer (AccessibleRole.SPIN_BOX), R)260         maRoleMap.put (new Integer (AccessibleRole.SPIN_BOX), "SPIN_BOX");
maRoleMap.put(new Integer (AccessibleRole.SPLIT_PANE), R)261         maRoleMap.put (new Integer (AccessibleRole.SPLIT_PANE), "SPLIT_PANE");
maRoleMap.put(new Integer (AccessibleRole.STATUS_BAR), R)262         maRoleMap.put (new Integer (AccessibleRole.STATUS_BAR), "STATUS_BAR");
maRoleMap.put(new Integer (AccessibleRole.TABLE), R)263         maRoleMap.put (new Integer (AccessibleRole.TABLE), "TABLE");
maRoleMap.put(new Integer (AccessibleRole.TABLE_CELL), R)264         maRoleMap.put (new Integer (AccessibleRole.TABLE_CELL), "TABLE_CELL");
maRoleMap.put(new Integer (AccessibleRole.TEXT), R)265         maRoleMap.put (new Integer (AccessibleRole.TEXT), "TEXT");
maRoleMap.put(new Integer (AccessibleRole.TEXT_FRAME), R)266         maRoleMap.put (new Integer (AccessibleRole.TEXT_FRAME), "TEXT_FRAME");
maRoleMap.put(new Integer (AccessibleRole.TOGGLE_BUTTON), R)267         maRoleMap.put (new Integer (AccessibleRole.TOGGLE_BUTTON), "TOGGLE_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.TOOL_BAR), R)268         maRoleMap.put (new Integer (AccessibleRole.TOOL_BAR), "TOOL_BAR");
maRoleMap.put(new Integer (AccessibleRole.TOOL_TIP), R)269         maRoleMap.put (new Integer (AccessibleRole.TOOL_TIP), "TOOL_TIP");
maRoleMap.put(new Integer (AccessibleRole.TREE), R)270         maRoleMap.put (new Integer (AccessibleRole.TREE), "TREE");
maRoleMap.put(new Integer (AccessibleRole.VIEW_PORT), R)271         maRoleMap.put (new Integer (AccessibleRole.VIEW_PORT), "VIEW_PORT");
maRoleMap.put(new Integer (AccessibleRole.WINDOW), R)272         maRoleMap.put (new Integer (AccessibleRole.WINDOW), "WINDOW");
273 
maRelationMap.put(new Integer (AccessibleRelationType.INVALID), R)274         maRelationMap.put (new Integer (AccessibleRelationType.INVALID), "INVALID");
maRelationMap.put(new Integer (AccessibleRelationType.CONTENT_FLOWS_FROM), R)275         maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_FROM), "CONTENT_FLOWS_FROM");
maRelationMap.put(new Integer (AccessibleRelationType.CONTENT_FLOWS_TO), R)276         maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_TO), "CONTENT_FLOWS_TO");
maRelationMap.put(new Integer (AccessibleRelationType.CONTROLLED_BY), R)277         maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLED_BY), "CONTROLLED_BY");
maRelationMap.put(new Integer (AccessibleRelationType.CONTROLLER_FOR), R)278         maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLER_FOR), "CONTROLLER_FOR");
maRelationMap.put(new Integer (AccessibleRelationType.LABEL_FOR), R)279         maRelationMap.put (new Integer (AccessibleRelationType.LABEL_FOR), "LABEL_FOR");
maRelationMap.put(new Integer (AccessibleRelationType.LABELED_BY), R)280         maRelationMap.put (new Integer (AccessibleRelationType.LABELED_BY), "LABELED_BY");
maRelationMap.put(new Integer (AccessibleRelationType.MEMBER_OF), R)281         maRelationMap.put (new Integer (AccessibleRelationType.MEMBER_OF), "MEMBER_OF");
maRelationMap.put(new Integer (AccessibleRelationType.SUB_WINDOW_OF), R)282         maRelationMap.put (new Integer (AccessibleRelationType.SUB_WINDOW_OF), "SUB_WINDOW_OF");
283     }
284 }
285