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 tools;
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 or an empty string if an
42             invalid / unknown state id was given.
43      */
getStateName(int nStateId)44     public static String getStateName (int nStateId)
45     {
46         return (String)maStateMap.get (new Integer(nStateId));
47     }
48 
49 
50     /** Return the name of the specified event.
51         @param nEventId
52             Id of the event type for which to return its name.  This is one
53             of the ids listed in the <type>AccessibleEventId</const>
54             constants group.
55         @return
56             Returns the name of the specified event type or an empty string
57             if an invalid / unknown event id was given.
58      */
getEventName(int nEventId)59     public static String getEventName (int nEventId)
60     {
61         return (String)maEventMap.get (new Integer(nEventId));
62     }
63 
64 
65     /** Return the name of the specified role.
66         @param nRole
67             Id of the role for which to return its name.  This is one of
68             the ids listed in the <type>AccessibleRole</const>
69             constants group.
70         @return
71             Returns the name of the specified role or an empty string if an
72             invalid / unknown role id was given.
73      */
getRoleName(int nRole)74     public static String getRoleName (int nRole)
75     {
76         return (String)maRoleMap.get (new Integer(nRole));
77     }
78 
79 
80     /** Return the name of the specified relation.
81         @param nRelation
82             Id of the relation for which to return its name.  This is one of
83             the ids listed in the <type>AccessibleRelationType</const>
84             constants group.
85         @return
86             Returns the name of the specified relation type or an empty
87             string if an invalid / unknown role id was given.
88      */
getRelationName(int nRelation)89     public static String getRelationName (int nRelation)
90     {
91         return (String)maRelationMap.get (new Integer(nRelation));
92     }
93 
94 
95     private static HashMap maStateMap = new HashMap();
96     private static HashMap maEventMap = new HashMap();
97     private static HashMap maRoleMap = new HashMap();
98     private static HashMap maRelationMap = new HashMap();
99 
100     static {
maStateMap.put(new Integer (AccessibleStateType.INVALID), R)101         maStateMap.put (new Integer (AccessibleStateType.INVALID), "INVALID");
maStateMap.put(new Integer (AccessibleStateType.ACTIVE), R)102         maStateMap.put (new Integer (AccessibleStateType.ACTIVE), "ACTIVE");
maStateMap.put(new Integer (AccessibleStateType.ARMED), R)103         maStateMap.put (new Integer (AccessibleStateType.ARMED), "ARMED");
maStateMap.put(new Integer (AccessibleStateType.BUSY), R)104         maStateMap.put (new Integer (AccessibleStateType.BUSY), "BUSY");
maStateMap.put(new Integer (AccessibleStateType.CHECKED), R)105         maStateMap.put (new Integer (AccessibleStateType.CHECKED), "CHECKED");
106         //        maStateMap.put (new Integer (AccessibleStateType.COLLAPSED), "COLLAPSED");
maStateMap.put(new Integer (AccessibleStateType.DEFUNC), R)107         maStateMap.put (new Integer (AccessibleStateType.DEFUNC), "DEFUNC");
maStateMap.put(new Integer (AccessibleStateType.EDITABLE), R)108         maStateMap.put (new Integer (AccessibleStateType.EDITABLE), "EDITABLE");
maStateMap.put(new Integer (AccessibleStateType.ENABLED), R)109         maStateMap.put (new Integer (AccessibleStateType.ENABLED), "ENABLED");
maStateMap.put(new Integer (AccessibleStateType.EXPANDABLE), R)110         maStateMap.put (new Integer (AccessibleStateType.EXPANDABLE), "EXPANDABLE");
maStateMap.put(new Integer (AccessibleStateType.EXPANDED), R)111         maStateMap.put (new Integer (AccessibleStateType.EXPANDED), "EXPANDED");
maStateMap.put(new Integer (AccessibleStateType.FOCUSABLE), R)112         maStateMap.put (new Integer (AccessibleStateType.FOCUSABLE), "FOCUSABLE");
maStateMap.put(new Integer (AccessibleStateType.FOCUSED), R)113         maStateMap.put (new Integer (AccessibleStateType.FOCUSED), "FOCUSED");
maStateMap.put(new Integer (AccessibleStateType.HORIZONTAL), R)114         maStateMap.put (new Integer (AccessibleStateType.HORIZONTAL), "HORIZONTAL");
maStateMap.put(new Integer (AccessibleStateType.ICONIFIED), R)115         maStateMap.put (new Integer (AccessibleStateType.ICONIFIED), "ICONIFIED");
maStateMap.put(new Integer (AccessibleStateType.MODAL), R)116         maStateMap.put (new Integer (AccessibleStateType.MODAL), "MODAL");
maStateMap.put(new Integer (AccessibleStateType.MULTI_LINE), R)117         maStateMap.put (new Integer (AccessibleStateType.MULTI_LINE), "MULTI_LINE");
maStateMap.put(new Integer (AccessibleStateType.MULTI_SELECTABLE), R)118         maStateMap.put (new Integer (AccessibleStateType.MULTI_SELECTABLE), "MULTI_SELECTABLE");
maStateMap.put(new Integer (AccessibleStateType.OPAQUE), R)119         maStateMap.put (new Integer (AccessibleStateType.OPAQUE), "OPAQUE");
maStateMap.put(new Integer (AccessibleStateType.PRESSED), R)120         maStateMap.put (new Integer (AccessibleStateType.PRESSED), "PRESSED");
maStateMap.put(new Integer (AccessibleStateType.RESIZABLE), R)121         maStateMap.put (new Integer (AccessibleStateType.RESIZABLE), "RESIZABLE");
maStateMap.put(new Integer (AccessibleStateType.SELECTABLE), R)122         maStateMap.put (new Integer (AccessibleStateType.SELECTABLE), "SELECTABLE");
maStateMap.put(new Integer (AccessibleStateType.SELECTED), R)123         maStateMap.put (new Integer (AccessibleStateType.SELECTED), "SELECTED");
maStateMap.put(new Integer (AccessibleStateType.SENSITIVE), R)124         maStateMap.put (new Integer (AccessibleStateType.SENSITIVE), "SENSITIVE");
maStateMap.put(new Integer (AccessibleStateType.SHOWING), R)125         maStateMap.put (new Integer (AccessibleStateType.SHOWING), "SHOWING");
maStateMap.put(new Integer (AccessibleStateType.SINGLE_LINE), R)126         maStateMap.put (new Integer (AccessibleStateType.SINGLE_LINE), "SINGLE_LINE");
maStateMap.put(new Integer (AccessibleStateType.STALE), R)127         maStateMap.put (new Integer (AccessibleStateType.STALE), "STALE");
maStateMap.put(new Integer (AccessibleStateType.TRANSIENT), R)128         maStateMap.put (new Integer (AccessibleStateType.TRANSIENT), "TRANSIENT");
maStateMap.put(new Integer (AccessibleStateType.VERTICAL), R)129         maStateMap.put (new Integer (AccessibleStateType.VERTICAL), "VERTICAL");
maStateMap.put(new Integer (AccessibleStateType.VISIBLE), R)130         maStateMap.put (new Integer (AccessibleStateType.VISIBLE), "VISIBLE");
maStateMap.put(new Integer (AccessibleStateType.MANAGES_DESCENDANTS), R)131         maStateMap.put (new Integer (AccessibleStateType.MANAGES_DESCENDANTS),
132             "MANAGES_DESCENDANTS");
133         //        maStateMap.put (new Integer (AccessibleStateType.INCONSISTENT),"INCONSISTENT");
134 
135 
maEventMap.put(new Integer (0), R)136         maEventMap.put (new Integer (0),
137             "[UNKNOWN]");
maEventMap.put(new Integer (AccessibleEventId.NAME_CHANGED), R)138         maEventMap.put (new Integer (AccessibleEventId.NAME_CHANGED),
139             "NAME_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.DESCRIPTION_CHANGED), R)140         maEventMap.put (new Integer (AccessibleEventId.DESCRIPTION_CHANGED),
141             "DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.ACTION_CHANGED), R)142         maEventMap.put (new Integer (AccessibleEventId.ACTION_CHANGED),
143             "ACTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.STATE_CHANGED), R)144         maEventMap.put (new Integer (AccessibleEventId.STATE_CHANGED),
145             "STATE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.ACTIVE_DESCENDANT_CHANGED), R)146         maEventMap.put (new Integer (AccessibleEventId.ACTIVE_DESCENDANT_CHANGED),
147             "ACTIVE_DESCENDANT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.BOUNDRECT_CHANGED), R)148         maEventMap.put (new Integer (AccessibleEventId.BOUNDRECT_CHANGED),
149             "BOUNDRECT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CHILD), R)150         maEventMap.put (new Integer (AccessibleEventId.CHILD),
151             "CHILD");
maEventMap.put(new Integer (AccessibleEventId.INVALIDATE_ALL_CHILDREN), R)152         maEventMap.put (new Integer (AccessibleEventId.INVALIDATE_ALL_CHILDREN),
153             "INVALIDATE_ALL_CHILDREN");
maEventMap.put(new Integer (AccessibleEventId.SELECTION_CHANGED), R)154         maEventMap.put (new Integer (AccessibleEventId.SELECTION_CHANGED),
155             "SELECTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.VISIBLE_DATA_CHANGED), R)156         maEventMap.put (new Integer (AccessibleEventId.VISIBLE_DATA_CHANGED),
157             "VISIBLE_DATA_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.VALUE_CHANGED), R)158         maEventMap.put (new Integer (AccessibleEventId.VALUE_CHANGED),
159             "VALUE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTENT_FLOWS_FROM_RELATION_CHANGED), R)160         maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_FROM_RELATION_CHANGED),
161             "CONTENT_FLOWS_FROM_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTENT_FLOWS_TO_RELATION_CHANGED), R)162         maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_TO_RELATION_CHANGED),
163             "CONTENT_FLOWS_TO_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTROLLED_BY_RELATION_CHANGED), R)164         maEventMap.put (new Integer (AccessibleEventId.CONTROLLED_BY_RELATION_CHANGED),
165             "CONTROLLED_BY_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTROLLER_FOR_RELATION_CHANGED), R)166         maEventMap.put (new Integer (AccessibleEventId.CONTROLLER_FOR_RELATION_CHANGED),
167             "CONTROLLER_FOR_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.LABEL_FOR_RELATION_CHANGED), R)168         maEventMap.put (new Integer (AccessibleEventId.LABEL_FOR_RELATION_CHANGED),
169             "LABEL_FOR_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.LABELED_BY_RELATION_CHANGED), R)170         maEventMap.put (new Integer (AccessibleEventId.LABELED_BY_RELATION_CHANGED),
171             "LABELED_BY_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.MEMBER_OF_RELATION_CHANGED), R)172         maEventMap.put (new Integer (AccessibleEventId.MEMBER_OF_RELATION_CHANGED),
173             "MEMBER_OF_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.SUB_WINDOW_OF_RELATION_CHANGED), R)174         maEventMap.put (new Integer (AccessibleEventId.SUB_WINDOW_OF_RELATION_CHANGED),
175             "SUB_WINDOW_OF_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CARET_CHANGED), R)176         maEventMap.put (new Integer (AccessibleEventId.CARET_CHANGED),
177             "CARET_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_SELECTION_CHANGED), R)178         maEventMap.put (new Integer (AccessibleEventId.TEXT_SELECTION_CHANGED),
179             "TEXT_SELECTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_CHANGED), R)180         maEventMap.put (new Integer (AccessibleEventId.TEXT_CHANGED),
181             "TEXT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_ATTRIBUTE_CHANGED), R)182         maEventMap.put (new Integer (AccessibleEventId.TEXT_ATTRIBUTE_CHANGED),
183             "TEXT_ATTRIBUTE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.HYPERTEXT_CHANGED), R)184         maEventMap.put (new Integer (AccessibleEventId.HYPERTEXT_CHANGED),
185             "HYPERTEXT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_CAPTION_CHANGED), R)186         maEventMap.put (new Integer (AccessibleEventId.TABLE_CAPTION_CHANGED),
187             "TABLE_CAPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_COLUMN_DESCRIPTION_CHANGED), R)188         maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_DESCRIPTION_CHANGED),
189             "TABLE_COLUMN_DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_COLUMN_HEADER_CHANGED), R)190         maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_HEADER_CHANGED),
191             "TABLE_COLUMN_HEADER_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_MODEL_CHANGED), R)192         maEventMap.put (new Integer (AccessibleEventId.TABLE_MODEL_CHANGED),
193             "TABLE_MODEL_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_ROW_DESCRIPTION_CHANGED), R)194         maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_DESCRIPTION_CHANGED),
195             "TABLE_ROW_DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_ROW_HEADER_CHANGED), R)196         maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_HEADER_CHANGED),
197             "TABLE_ROW_HEADER_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_SUMMARY_CHANGED), R)198         maEventMap.put (new Integer (AccessibleEventId.TABLE_SUMMARY_CHANGED),
199             "TABLE_SUMMARY_CHANGED");
200 
maRoleMap.put(new Integer(AccessibleRole.UNKNOWN), R)201         maRoleMap.put (new Integer(AccessibleRole.UNKNOWN), "UNKNOWN");
maRoleMap.put(new Integer (AccessibleRole.UNKNOWN), R)202         maRoleMap.put (new Integer (AccessibleRole.UNKNOWN), "UNKNOWN");
maRoleMap.put(new Integer (AccessibleRole.ALERT), R)203         maRoleMap.put (new Integer (AccessibleRole.ALERT), "ALERT");
maRoleMap.put(new Integer (AccessibleRole.COLUMN_HEADER), R)204         maRoleMap.put (new Integer (AccessibleRole.COLUMN_HEADER), "COLUMN_HEADER");
maRoleMap.put(new Integer (AccessibleRole.CANVAS), R)205         maRoleMap.put (new Integer (AccessibleRole.CANVAS), "CANVAS");
maRoleMap.put(new Integer (AccessibleRole.CHECK_BOX), R)206         maRoleMap.put (new Integer (AccessibleRole.CHECK_BOX), "CHECK_BOX");
maRoleMap.put(new Integer (AccessibleRole.CHECK_MENU_ITEM), R)207         maRoleMap.put (new Integer (AccessibleRole.CHECK_MENU_ITEM), "CHECK_MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.COLOR_CHOOSER), R)208         maRoleMap.put (new Integer (AccessibleRole.COLOR_CHOOSER), "COLOR_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.COMBO_BOX), R)209         maRoleMap.put (new Integer (AccessibleRole.COMBO_BOX), "COMBO_BOX");
maRoleMap.put(new Integer (AccessibleRole.DESKTOP_ICON), R)210         maRoleMap.put (new Integer (AccessibleRole.DESKTOP_ICON), "DESKTOP_ICON");
maRoleMap.put(new Integer (AccessibleRole.DESKTOP_PANE), R)211         maRoleMap.put (new Integer (AccessibleRole.DESKTOP_PANE), "DESKTOP_PANE");
maRoleMap.put(new Integer (AccessibleRole.DIRECTORY_PANE), R)212         maRoleMap.put (new Integer (AccessibleRole.DIRECTORY_PANE), "DIRECTORY_PANE");
maRoleMap.put(new Integer (AccessibleRole.DIALOG), R)213         maRoleMap.put (new Integer (AccessibleRole.DIALOG), "DIALOG");
maRoleMap.put(new Integer (AccessibleRole.DOCUMENT), R)214         maRoleMap.put (new Integer (AccessibleRole.DOCUMENT), "DOCUMENT");
maRoleMap.put(new Integer (AccessibleRole.EMBEDDED_OBJECT), R)215         maRoleMap.put (new Integer (AccessibleRole.EMBEDDED_OBJECT), "EMBEDDED_OBJECT");
maRoleMap.put(new Integer (AccessibleRole.END_NOTE), R)216         maRoleMap.put (new Integer (AccessibleRole.END_NOTE), "END_NOTE");
maRoleMap.put(new Integer (AccessibleRole.FILE_CHOOSER), R)217         maRoleMap.put (new Integer (AccessibleRole.FILE_CHOOSER), "FILE_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.FILLER), R)218         maRoleMap.put (new Integer (AccessibleRole.FILLER), "FILLER");
maRoleMap.put(new Integer (AccessibleRole.FONT_CHOOSER), R)219         maRoleMap.put (new Integer (AccessibleRole.FONT_CHOOSER), "FONT_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.FOOTER), R)220         maRoleMap.put (new Integer (AccessibleRole.FOOTER), "FOOTER");
maRoleMap.put(new Integer (AccessibleRole.FOOTNOTE), R)221         maRoleMap.put (new Integer (AccessibleRole.FOOTNOTE), "FOOTNOTE");
maRoleMap.put(new Integer (AccessibleRole.FRAME), R)222         maRoleMap.put (new Integer (AccessibleRole.FRAME), "FRAME");
maRoleMap.put(new Integer (AccessibleRole.GLASS_PANE), R)223         maRoleMap.put (new Integer (AccessibleRole.GLASS_PANE), "GLASS_PANE");
maRoleMap.put(new Integer (AccessibleRole.GRAPHIC), R)224         maRoleMap.put (new Integer (AccessibleRole.GRAPHIC), "GRAPHIC");
maRoleMap.put(new Integer (AccessibleRole.GROUP_BOX), R)225         maRoleMap.put (new Integer (AccessibleRole.GROUP_BOX), "GROUP_BOX");
maRoleMap.put(new Integer (AccessibleRole.HEADER), R)226         maRoleMap.put (new Integer (AccessibleRole.HEADER), "HEADER");
maRoleMap.put(new Integer (AccessibleRole.HEADING), R)227         maRoleMap.put (new Integer (AccessibleRole.HEADING), "HEADING");
maRoleMap.put(new Integer (AccessibleRole.HYPER_LINK), R)228         maRoleMap.put (new Integer (AccessibleRole.HYPER_LINK), "HYPER_LINK");
maRoleMap.put(new Integer (AccessibleRole.ICON), R)229         maRoleMap.put (new Integer (AccessibleRole.ICON), "ICON");
maRoleMap.put(new Integer (AccessibleRole.INTERNAL_FRAME), R)230         maRoleMap.put (new Integer (AccessibleRole.INTERNAL_FRAME), "INTERNAL_FRAME");
maRoleMap.put(new Integer (AccessibleRole.LABEL), R)231         maRoleMap.put (new Integer (AccessibleRole.LABEL), "LABEL");
maRoleMap.put(new Integer (AccessibleRole.LAYERED_PANE), R)232         maRoleMap.put (new Integer (AccessibleRole.LAYERED_PANE), "LAYERED_PANE");
maRoleMap.put(new Integer (AccessibleRole.LIST), R)233         maRoleMap.put (new Integer (AccessibleRole.LIST), "LIST");
maRoleMap.put(new Integer (AccessibleRole.LIST_ITEM), R)234         maRoleMap.put (new Integer (AccessibleRole.LIST_ITEM), "LIST_ITEM");
maRoleMap.put(new Integer (AccessibleRole.MENU), R)235         maRoleMap.put (new Integer (AccessibleRole.MENU), "MENU");
maRoleMap.put(new Integer (AccessibleRole.MENU_BAR), R)236         maRoleMap.put (new Integer (AccessibleRole.MENU_BAR), "MENU_BAR");
maRoleMap.put(new Integer (AccessibleRole.MENU_ITEM), R)237         maRoleMap.put (new Integer (AccessibleRole.MENU_ITEM), "MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.OPTION_PANE), R)238         maRoleMap.put (new Integer (AccessibleRole.OPTION_PANE), "OPTION_PANE");
maRoleMap.put(new Integer (AccessibleRole.PAGE_TAB), R)239         maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB), "PAGE_TAB");
maRoleMap.put(new Integer (AccessibleRole.PAGE_TAB_LIST), R)240         maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB_LIST), "PAGE_TAB_LIST");
maRoleMap.put(new Integer (AccessibleRole.PANEL), R)241         maRoleMap.put (new Integer (AccessibleRole.PANEL), "PANEL");
maRoleMap.put(new Integer (AccessibleRole.PARAGRAPH), R)242         maRoleMap.put (new Integer (AccessibleRole.PARAGRAPH), "PARAGRAPH");
maRoleMap.put(new Integer (AccessibleRole.PASSWORD_TEXT), R)243         maRoleMap.put (new Integer (AccessibleRole.PASSWORD_TEXT), "PASSWORD_TEXT");
maRoleMap.put(new Integer (AccessibleRole.POPUP_MENU), R)244         maRoleMap.put (new Integer (AccessibleRole.POPUP_MENU), "POPUP_MENU");
maRoleMap.put(new Integer (AccessibleRole.PUSH_BUTTON), R)245         maRoleMap.put (new Integer (AccessibleRole.PUSH_BUTTON), "PUSH_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.PROGRESS_BAR), R)246         maRoleMap.put (new Integer (AccessibleRole.PROGRESS_BAR), "PROGRESS_BAR");
maRoleMap.put(new Integer (AccessibleRole.RADIO_BUTTON), R)247         maRoleMap.put (new Integer (AccessibleRole.RADIO_BUTTON), "RADIO_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.RADIO_MENU_ITEM), R)248         maRoleMap.put (new Integer (AccessibleRole.RADIO_MENU_ITEM), "RADIO_MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.ROW_HEADER), R)249         maRoleMap.put (new Integer (AccessibleRole.ROW_HEADER), "ROW_HEADER");
maRoleMap.put(new Integer (AccessibleRole.ROOT_PANE), R)250         maRoleMap.put (new Integer (AccessibleRole.ROOT_PANE), "ROOT_PANE");
maRoleMap.put(new Integer (AccessibleRole.SCROLL_BAR), R)251         maRoleMap.put (new Integer (AccessibleRole.SCROLL_BAR), "SCROLL_BAR");
maRoleMap.put(new Integer (AccessibleRole.SCROLL_PANE), R)252         maRoleMap.put (new Integer (AccessibleRole.SCROLL_PANE), "SCROLL_PANE");
maRoleMap.put(new Integer (AccessibleRole.SHAPE), R)253         maRoleMap.put (new Integer (AccessibleRole.SHAPE), "SHAPE");
maRoleMap.put(new Integer (AccessibleRole.SEPARATOR), R)254         maRoleMap.put (new Integer (AccessibleRole.SEPARATOR), "SEPARATOR");
maRoleMap.put(new Integer (AccessibleRole.SLIDER), R)255         maRoleMap.put (new Integer (AccessibleRole.SLIDER), "SLIDER");
maRoleMap.put(new Integer (AccessibleRole.SPIN_BOX), R)256         maRoleMap.put (new Integer (AccessibleRole.SPIN_BOX), "SPIN_BOX");
maRoleMap.put(new Integer (AccessibleRole.SPLIT_PANE), R)257         maRoleMap.put (new Integer (AccessibleRole.SPLIT_PANE), "SPLIT_PANE");
maRoleMap.put(new Integer (AccessibleRole.STATUS_BAR), R)258         maRoleMap.put (new Integer (AccessibleRole.STATUS_BAR), "STATUS_BAR");
maRoleMap.put(new Integer (AccessibleRole.TABLE), R)259         maRoleMap.put (new Integer (AccessibleRole.TABLE), "TABLE");
maRoleMap.put(new Integer (AccessibleRole.TABLE_CELL), R)260         maRoleMap.put (new Integer (AccessibleRole.TABLE_CELL), "TABLE_CELL");
maRoleMap.put(new Integer (AccessibleRole.TEXT), R)261         maRoleMap.put (new Integer (AccessibleRole.TEXT), "TEXT");
maRoleMap.put(new Integer (AccessibleRole.TEXT_FRAME), R)262         maRoleMap.put (new Integer (AccessibleRole.TEXT_FRAME), "TEXT_FRAME");
maRoleMap.put(new Integer (AccessibleRole.TOGGLE_BUTTON), R)263         maRoleMap.put (new Integer (AccessibleRole.TOGGLE_BUTTON), "TOGGLE_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.TOOL_BAR), R)264         maRoleMap.put (new Integer (AccessibleRole.TOOL_BAR), "TOOL_BAR");
maRoleMap.put(new Integer (AccessibleRole.TOOL_TIP), R)265         maRoleMap.put (new Integer (AccessibleRole.TOOL_TIP), "TOOL_TIP");
maRoleMap.put(new Integer (AccessibleRole.TREE), R)266         maRoleMap.put (new Integer (AccessibleRole.TREE), "TREE");
maRoleMap.put(new Integer (AccessibleRole.VIEW_PORT), R)267         maRoleMap.put (new Integer (AccessibleRole.VIEW_PORT), "VIEW_PORT");
maRoleMap.put(new Integer (AccessibleRole.WINDOW), R)268         maRoleMap.put (new Integer (AccessibleRole.WINDOW), "WINDOW");
269 
maRelationMap.put(new Integer (AccessibleRelationType.INVALID), R)270         maRelationMap.put (new Integer (AccessibleRelationType.INVALID), "INVALID");
maRelationMap.put(new Integer (AccessibleRelationType.CONTENT_FLOWS_FROM), R)271         maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_FROM), "CONTENT_FLOWS_FROM");
maRelationMap.put(new Integer (AccessibleRelationType.CONTENT_FLOWS_TO), R)272         maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_TO), "CONTENT_FLOWS_TO");
maRelationMap.put(new Integer (AccessibleRelationType.CONTROLLED_BY), R)273         maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLED_BY), "CONTROLLED_BY");
maRelationMap.put(new Integer (AccessibleRelationType.CONTROLLER_FOR), R)274         maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLER_FOR), "CONTROLLER_FOR");
maRelationMap.put(new Integer (AccessibleRelationType.LABEL_FOR), R)275         maRelationMap.put (new Integer (AccessibleRelationType.LABEL_FOR), "LABEL_FOR");
maRelationMap.put(new Integer (AccessibleRelationType.LABELED_BY), R)276         maRelationMap.put (new Integer (AccessibleRelationType.LABELED_BY), "LABELED_BY");
maRelationMap.put(new Integer (AccessibleRelationType.MEMBER_OF), R)277         maRelationMap.put (new Integer (AccessibleRelationType.MEMBER_OF), "MEMBER_OF");
maRelationMap.put(new Integer (AccessibleRelationType.SUB_WINDOW_OF), R)278         maRelationMap.put (new Integer (AccessibleRelationType.SUB_WINDOW_OF), "SUB_WINDOW_OF");
279     }
280 }
281