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 
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");
maStateMap.put(new Integer (AccessibleStateType.DEFUNC), R)106         maStateMap.put (new Integer (AccessibleStateType.DEFUNC), "DEFUNC");
maStateMap.put(new Integer (AccessibleStateType.EDITABLE), R)107         maStateMap.put (new Integer (AccessibleStateType.EDITABLE), "EDITABLE");
maStateMap.put(new Integer (AccessibleStateType.ENABLED), R)108         maStateMap.put (new Integer (AccessibleStateType.ENABLED), "ENABLED");
maStateMap.put(new Integer (AccessibleStateType.EXPANDABLE), R)109         maStateMap.put (new Integer (AccessibleStateType.EXPANDABLE), "EXPANDABLE");
maStateMap.put(new Integer (AccessibleStateType.EXPANDED), R)110         maStateMap.put (new Integer (AccessibleStateType.EXPANDED), "EXPANDED");
maStateMap.put(new Integer (AccessibleStateType.FOCUSABLE), R)111         maStateMap.put (new Integer (AccessibleStateType.FOCUSABLE), "FOCUSABLE");
maStateMap.put(new Integer (AccessibleStateType.FOCUSED), R)112         maStateMap.put (new Integer (AccessibleStateType.FOCUSED), "FOCUSED");
maStateMap.put(new Integer (AccessibleStateType.HORIZONTAL), R)113         maStateMap.put (new Integer (AccessibleStateType.HORIZONTAL), "HORIZONTAL");
maStateMap.put(new Integer (AccessibleStateType.ICONIFIED), R)114         maStateMap.put (new Integer (AccessibleStateType.ICONIFIED), "ICONIFIED");
maStateMap.put(new Integer (AccessibleStateType.MODAL), R)115         maStateMap.put (new Integer (AccessibleStateType.MODAL), "MODAL");
maStateMap.put(new Integer (AccessibleStateType.MULTI_LINE), R)116         maStateMap.put (new Integer (AccessibleStateType.MULTI_LINE), "MULTI_LINE");
maStateMap.put(new Integer (AccessibleStateType.MULTI_SELECTABLE), R)117         maStateMap.put (new Integer (AccessibleStateType.MULTI_SELECTABLE), "MULTI_SELECTABLE");
maStateMap.put(new Integer (AccessibleStateType.OPAQUE), R)118         maStateMap.put (new Integer (AccessibleStateType.OPAQUE), "OPAQUE");
maStateMap.put(new Integer (AccessibleStateType.PRESSED), R)119         maStateMap.put (new Integer (AccessibleStateType.PRESSED), "PRESSED");
maStateMap.put(new Integer (AccessibleStateType.RESIZABLE), R)120         maStateMap.put (new Integer (AccessibleStateType.RESIZABLE), "RESIZABLE");
maStateMap.put(new Integer (AccessibleStateType.SELECTABLE), R)121         maStateMap.put (new Integer (AccessibleStateType.SELECTABLE), "SELECTABLE");
maStateMap.put(new Integer (AccessibleStateType.SELECTED), R)122         maStateMap.put (new Integer (AccessibleStateType.SELECTED), "SELECTED");
maStateMap.put(new Integer (AccessibleStateType.SENSITIVE), R)123         maStateMap.put (new Integer (AccessibleStateType.SENSITIVE), "SENSITIVE");
maStateMap.put(new Integer (AccessibleStateType.SHOWING), R)124         maStateMap.put (new Integer (AccessibleStateType.SHOWING), "SHOWING");
maStateMap.put(new Integer (AccessibleStateType.SINGLE_LINE), R)125         maStateMap.put (new Integer (AccessibleStateType.SINGLE_LINE), "SINGLE_LINE");
maStateMap.put(new Integer (AccessibleStateType.STALE), R)126         maStateMap.put (new Integer (AccessibleStateType.STALE), "STALE");
maStateMap.put(new Integer (AccessibleStateType.TRANSIENT), R)127         maStateMap.put (new Integer (AccessibleStateType.TRANSIENT), "TRANSIENT");
maStateMap.put(new Integer (AccessibleStateType.VERTICAL), R)128         maStateMap.put (new Integer (AccessibleStateType.VERTICAL), "VERTICAL");
maStateMap.put(new Integer (AccessibleStateType.VISIBLE), R)129         maStateMap.put (new Integer (AccessibleStateType.VISIBLE), "VISIBLE");
maStateMap.put(new Integer (AccessibleStateType.MANAGES_DESCENDANTS), R)130         maStateMap.put (new Integer (AccessibleStateType.MANAGES_DESCENDANTS),
131             "MANAGES_DESCENDANTS");
132         //        maStateMap.put (new Integer (AccessibleStateType.INCONSISTENT),"INCONSISTENT");
133 
134 
maEventMap.put(new Integer (0), R)135         maEventMap.put (new Integer (0),
136             "[UNKNOWN]");
maEventMap.put(new Integer (AccessibleEventId.NAME_CHANGED), R)137         maEventMap.put (new Integer (AccessibleEventId.NAME_CHANGED),
138             "NAME_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.DESCRIPTION_CHANGED), R)139         maEventMap.put (new Integer (AccessibleEventId.DESCRIPTION_CHANGED),
140             "DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.ACTION_CHANGED), R)141         maEventMap.put (new Integer (AccessibleEventId.ACTION_CHANGED),
142             "ACTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.STATE_CHANGED), R)143         maEventMap.put (new Integer (AccessibleEventId.STATE_CHANGED),
144             "STATE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.ACTIVE_DESCENDANT_CHANGED), R)145         maEventMap.put (new Integer (AccessibleEventId.ACTIVE_DESCENDANT_CHANGED),
146             "ACTIVE_DESCENDANT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.BOUNDRECT_CHANGED), R)147         maEventMap.put (new Integer (AccessibleEventId.BOUNDRECT_CHANGED),
148             "BOUNDRECT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CHILD), R)149         maEventMap.put (new Integer (AccessibleEventId.CHILD),
150             "CHILD");
maEventMap.put(new Integer (AccessibleEventId.INVALIDATE_ALL_CHILDREN), R)151         maEventMap.put (new Integer (AccessibleEventId.INVALIDATE_ALL_CHILDREN),
152             "INVALIDATE_ALL_CHILDREN");
maEventMap.put(new Integer (AccessibleEventId.SELECTION_CHANGED), R)153         maEventMap.put (new Integer (AccessibleEventId.SELECTION_CHANGED),
154             "SELECTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.VISIBLE_DATA_CHANGED), R)155         maEventMap.put (new Integer (AccessibleEventId.VISIBLE_DATA_CHANGED),
156             "VISIBLE_DATA_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.VALUE_CHANGED), R)157         maEventMap.put (new Integer (AccessibleEventId.VALUE_CHANGED),
158             "VALUE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTENT_FLOWS_FROM_RELATION_CHANGED), R)159         maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_FROM_RELATION_CHANGED),
160             "CONTENT_FLOWS_FROM_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTENT_FLOWS_TO_RELATION_CHANGED), R)161         maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_TO_RELATION_CHANGED),
162             "CONTENT_FLOWS_TO_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTROLLED_BY_RELATION_CHANGED), R)163         maEventMap.put (new Integer (AccessibleEventId.CONTROLLED_BY_RELATION_CHANGED),
164             "CONTROLLED_BY_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CONTROLLER_FOR_RELATION_CHANGED), R)165         maEventMap.put (new Integer (AccessibleEventId.CONTROLLER_FOR_RELATION_CHANGED),
166             "CONTROLLER_FOR_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.LABEL_FOR_RELATION_CHANGED), R)167         maEventMap.put (new Integer (AccessibleEventId.LABEL_FOR_RELATION_CHANGED),
168             "LABEL_FOR_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.LABELED_BY_RELATION_CHANGED), R)169         maEventMap.put (new Integer (AccessibleEventId.LABELED_BY_RELATION_CHANGED),
170             "LABELED_BY_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.MEMBER_OF_RELATION_CHANGED), R)171         maEventMap.put (new Integer (AccessibleEventId.MEMBER_OF_RELATION_CHANGED),
172             "MEMBER_OF_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.SUB_WINDOW_OF_RELATION_CHANGED), R)173         maEventMap.put (new Integer (AccessibleEventId.SUB_WINDOW_OF_RELATION_CHANGED),
174             "SUB_WINDOW_OF_RELATION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.CARET_CHANGED), R)175         maEventMap.put (new Integer (AccessibleEventId.CARET_CHANGED),
176             "CARET_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_SELECTION_CHANGED), R)177         maEventMap.put (new Integer (AccessibleEventId.TEXT_SELECTION_CHANGED),
178             "TEXT_SELECTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_CHANGED), R)179         maEventMap.put (new Integer (AccessibleEventId.TEXT_CHANGED),
180             "TEXT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TEXT_ATTRIBUTE_CHANGED), R)181         maEventMap.put (new Integer (AccessibleEventId.TEXT_ATTRIBUTE_CHANGED),
182             "TEXT_ATTRIBUTE_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.HYPERTEXT_CHANGED), R)183         maEventMap.put (new Integer (AccessibleEventId.HYPERTEXT_CHANGED),
184             "HYPERTEXT_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_CAPTION_CHANGED), R)185         maEventMap.put (new Integer (AccessibleEventId.TABLE_CAPTION_CHANGED),
186             "TABLE_CAPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_COLUMN_DESCRIPTION_CHANGED), R)187         maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_DESCRIPTION_CHANGED),
188             "TABLE_COLUMN_DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_COLUMN_HEADER_CHANGED), R)189         maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_HEADER_CHANGED),
190             "TABLE_COLUMN_HEADER_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_MODEL_CHANGED), R)191         maEventMap.put (new Integer (AccessibleEventId.TABLE_MODEL_CHANGED),
192             "TABLE_MODEL_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_ROW_DESCRIPTION_CHANGED), R)193         maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_DESCRIPTION_CHANGED),
194             "TABLE_ROW_DESCRIPTION_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_ROW_HEADER_CHANGED), R)195         maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_HEADER_CHANGED),
196             "TABLE_ROW_HEADER_CHANGED");
maEventMap.put(new Integer (AccessibleEventId.TABLE_SUMMARY_CHANGED), R)197         maEventMap.put (new Integer (AccessibleEventId.TABLE_SUMMARY_CHANGED),
198             "TABLE_SUMMARY_CHANGED");
199 
maRoleMap.put(new Integer(AccessibleRole.UNKNOWN), R)200         maRoleMap.put (new Integer(AccessibleRole.UNKNOWN), "UNKNOWN");
maRoleMap.put(new Integer (AccessibleRole.UNKNOWN), R)201         maRoleMap.put (new Integer (AccessibleRole.UNKNOWN), "UNKNOWN");
maRoleMap.put(new Integer (AccessibleRole.ALERT), R)202         maRoleMap.put (new Integer (AccessibleRole.ALERT), "ALERT");
maRoleMap.put(new Integer (AccessibleRole.COLUMN_HEADER), R)203         maRoleMap.put (new Integer (AccessibleRole.COLUMN_HEADER), "COLUMN_HEADER");
maRoleMap.put(new Integer (AccessibleRole.CANVAS), R)204         maRoleMap.put (new Integer (AccessibleRole.CANVAS), "CANVAS");
maRoleMap.put(new Integer (AccessibleRole.CHECK_BOX), R)205         maRoleMap.put (new Integer (AccessibleRole.CHECK_BOX), "CHECK_BOX");
maRoleMap.put(new Integer (AccessibleRole.CHECK_MENU_ITEM), R)206         maRoleMap.put (new Integer (AccessibleRole.CHECK_MENU_ITEM), "CHECK_MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.COLOR_CHOOSER), R)207         maRoleMap.put (new Integer (AccessibleRole.COLOR_CHOOSER), "COLOR_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.COMBO_BOX), R)208         maRoleMap.put (new Integer (AccessibleRole.COMBO_BOX), "COMBO_BOX");
maRoleMap.put(new Integer (AccessibleRole.DESKTOP_ICON), R)209         maRoleMap.put (new Integer (AccessibleRole.DESKTOP_ICON), "DESKTOP_ICON");
maRoleMap.put(new Integer (AccessibleRole.DESKTOP_PANE), R)210         maRoleMap.put (new Integer (AccessibleRole.DESKTOP_PANE), "DESKTOP_PANE");
maRoleMap.put(new Integer (AccessibleRole.DIRECTORY_PANE), R)211         maRoleMap.put (new Integer (AccessibleRole.DIRECTORY_PANE), "DIRECTORY_PANE");
maRoleMap.put(new Integer (AccessibleRole.DIALOG), R)212         maRoleMap.put (new Integer (AccessibleRole.DIALOG), "DIALOG");
maRoleMap.put(new Integer (AccessibleRole.DOCUMENT), R)213         maRoleMap.put (new Integer (AccessibleRole.DOCUMENT), "DOCUMENT");
maRoleMap.put(new Integer (AccessibleRole.EMBEDDED_OBJECT), R)214         maRoleMap.put (new Integer (AccessibleRole.EMBEDDED_OBJECT), "EMBEDDED_OBJECT");
maRoleMap.put(new Integer (AccessibleRole.END_NOTE), R)215         maRoleMap.put (new Integer (AccessibleRole.END_NOTE), "END_NOTE");
maRoleMap.put(new Integer (AccessibleRole.FILE_CHOOSER), R)216         maRoleMap.put (new Integer (AccessibleRole.FILE_CHOOSER), "FILE_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.FILLER), R)217         maRoleMap.put (new Integer (AccessibleRole.FILLER), "FILLER");
maRoleMap.put(new Integer (AccessibleRole.FONT_CHOOSER), R)218         maRoleMap.put (new Integer (AccessibleRole.FONT_CHOOSER), "FONT_CHOOSER");
maRoleMap.put(new Integer (AccessibleRole.FOOTER), R)219         maRoleMap.put (new Integer (AccessibleRole.FOOTER), "FOOTER");
maRoleMap.put(new Integer (AccessibleRole.FOOTNOTE), R)220         maRoleMap.put (new Integer (AccessibleRole.FOOTNOTE), "FOOTNOTE");
maRoleMap.put(new Integer (AccessibleRole.FRAME), R)221         maRoleMap.put (new Integer (AccessibleRole.FRAME), "FRAME");
maRoleMap.put(new Integer (AccessibleRole.GLASS_PANE), R)222         maRoleMap.put (new Integer (AccessibleRole.GLASS_PANE), "GLASS_PANE");
maRoleMap.put(new Integer (AccessibleRole.GRAPHIC), R)223         maRoleMap.put (new Integer (AccessibleRole.GRAPHIC), "GRAPHIC");
maRoleMap.put(new Integer (AccessibleRole.GROUP_BOX), R)224         maRoleMap.put (new Integer (AccessibleRole.GROUP_BOX), "GROUP_BOX");
maRoleMap.put(new Integer (AccessibleRole.HEADER), R)225         maRoleMap.put (new Integer (AccessibleRole.HEADER), "HEADER");
maRoleMap.put(new Integer (AccessibleRole.HEADING), R)226         maRoleMap.put (new Integer (AccessibleRole.HEADING), "HEADING");
maRoleMap.put(new Integer (AccessibleRole.HYPER_LINK), R)227         maRoleMap.put (new Integer (AccessibleRole.HYPER_LINK), "HYPER_LINK");
maRoleMap.put(new Integer (AccessibleRole.ICON), R)228         maRoleMap.put (new Integer (AccessibleRole.ICON), "ICON");
maRoleMap.put(new Integer (AccessibleRole.INTERNAL_FRAME), R)229         maRoleMap.put (new Integer (AccessibleRole.INTERNAL_FRAME), "INTERNAL_FRAME");
maRoleMap.put(new Integer (AccessibleRole.LABEL), R)230         maRoleMap.put (new Integer (AccessibleRole.LABEL), "LABEL");
maRoleMap.put(new Integer (AccessibleRole.LAYERED_PANE), R)231         maRoleMap.put (new Integer (AccessibleRole.LAYERED_PANE), "LAYERED_PANE");
maRoleMap.put(new Integer (AccessibleRole.LIST), R)232         maRoleMap.put (new Integer (AccessibleRole.LIST), "LIST");
maRoleMap.put(new Integer (AccessibleRole.LIST_ITEM), R)233         maRoleMap.put (new Integer (AccessibleRole.LIST_ITEM), "LIST_ITEM");
maRoleMap.put(new Integer (AccessibleRole.MENU), R)234         maRoleMap.put (new Integer (AccessibleRole.MENU), "MENU");
maRoleMap.put(new Integer (AccessibleRole.MENU_BAR), R)235         maRoleMap.put (new Integer (AccessibleRole.MENU_BAR), "MENU_BAR");
maRoleMap.put(new Integer (AccessibleRole.MENU_ITEM), R)236         maRoleMap.put (new Integer (AccessibleRole.MENU_ITEM), "MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.OPTION_PANE), R)237         maRoleMap.put (new Integer (AccessibleRole.OPTION_PANE), "OPTION_PANE");
maRoleMap.put(new Integer (AccessibleRole.PAGE_TAB), R)238         maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB), "PAGE_TAB");
maRoleMap.put(new Integer (AccessibleRole.PAGE_TAB_LIST), R)239         maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB_LIST), "PAGE_TAB_LIST");
maRoleMap.put(new Integer (AccessibleRole.PANEL), R)240         maRoleMap.put (new Integer (AccessibleRole.PANEL), "PANEL");
maRoleMap.put(new Integer (AccessibleRole.PARAGRAPH), R)241         maRoleMap.put (new Integer (AccessibleRole.PARAGRAPH), "PARAGRAPH");
maRoleMap.put(new Integer (AccessibleRole.PASSWORD_TEXT), R)242         maRoleMap.put (new Integer (AccessibleRole.PASSWORD_TEXT), "PASSWORD_TEXT");
maRoleMap.put(new Integer (AccessibleRole.POPUP_MENU), R)243         maRoleMap.put (new Integer (AccessibleRole.POPUP_MENU), "POPUP_MENU");
maRoleMap.put(new Integer (AccessibleRole.PUSH_BUTTON), R)244         maRoleMap.put (new Integer (AccessibleRole.PUSH_BUTTON), "PUSH_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.PROGRESS_BAR), R)245         maRoleMap.put (new Integer (AccessibleRole.PROGRESS_BAR), "PROGRESS_BAR");
maRoleMap.put(new Integer (AccessibleRole.RADIO_BUTTON), R)246         maRoleMap.put (new Integer (AccessibleRole.RADIO_BUTTON), "RADIO_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.RADIO_MENU_ITEM), R)247         maRoleMap.put (new Integer (AccessibleRole.RADIO_MENU_ITEM), "RADIO_MENU_ITEM");
maRoleMap.put(new Integer (AccessibleRole.ROW_HEADER), R)248         maRoleMap.put (new Integer (AccessibleRole.ROW_HEADER), "ROW_HEADER");
maRoleMap.put(new Integer (AccessibleRole.ROOT_PANE), R)249         maRoleMap.put (new Integer (AccessibleRole.ROOT_PANE), "ROOT_PANE");
maRoleMap.put(new Integer (AccessibleRole.SCROLL_BAR), R)250         maRoleMap.put (new Integer (AccessibleRole.SCROLL_BAR), "SCROLL_BAR");
maRoleMap.put(new Integer (AccessibleRole.SCROLL_PANE), R)251         maRoleMap.put (new Integer (AccessibleRole.SCROLL_PANE), "SCROLL_PANE");
maRoleMap.put(new Integer (AccessibleRole.SHAPE), R)252         maRoleMap.put (new Integer (AccessibleRole.SHAPE), "SHAPE");
maRoleMap.put(new Integer (AccessibleRole.SEPARATOR), R)253         maRoleMap.put (new Integer (AccessibleRole.SEPARATOR), "SEPARATOR");
maRoleMap.put(new Integer (AccessibleRole.SLIDER), R)254         maRoleMap.put (new Integer (AccessibleRole.SLIDER), "SLIDER");
maRoleMap.put(new Integer (AccessibleRole.SPIN_BOX), R)255         maRoleMap.put (new Integer (AccessibleRole.SPIN_BOX), "SPIN_BOX");
maRoleMap.put(new Integer (AccessibleRole.SPLIT_PANE), R)256         maRoleMap.put (new Integer (AccessibleRole.SPLIT_PANE), "SPLIT_PANE");
maRoleMap.put(new Integer (AccessibleRole.STATUS_BAR), R)257         maRoleMap.put (new Integer (AccessibleRole.STATUS_BAR), "STATUS_BAR");
maRoleMap.put(new Integer (AccessibleRole.TABLE), R)258         maRoleMap.put (new Integer (AccessibleRole.TABLE), "TABLE");
maRoleMap.put(new Integer (AccessibleRole.TABLE_CELL), R)259         maRoleMap.put (new Integer (AccessibleRole.TABLE_CELL), "TABLE_CELL");
maRoleMap.put(new Integer (AccessibleRole.TEXT), R)260         maRoleMap.put (new Integer (AccessibleRole.TEXT), "TEXT");
maRoleMap.put(new Integer (AccessibleRole.TEXT_FRAME), R)261         maRoleMap.put (new Integer (AccessibleRole.TEXT_FRAME), "TEXT_FRAME");
maRoleMap.put(new Integer (AccessibleRole.TOGGLE_BUTTON), R)262         maRoleMap.put (new Integer (AccessibleRole.TOGGLE_BUTTON), "TOGGLE_BUTTON");
maRoleMap.put(new Integer (AccessibleRole.TOOL_BAR), R)263         maRoleMap.put (new Integer (AccessibleRole.TOOL_BAR), "TOOL_BAR");
maRoleMap.put(new Integer (AccessibleRole.TOOL_TIP), R)264         maRoleMap.put (new Integer (AccessibleRole.TOOL_TIP), "TOOL_TIP");
maRoleMap.put(new Integer (AccessibleRole.TREE), R)265         maRoleMap.put (new Integer (AccessibleRole.TREE), "TREE");
maRoleMap.put(new Integer (AccessibleRole.VIEW_PORT), R)266         maRoleMap.put (new Integer (AccessibleRole.VIEW_PORT), "VIEW_PORT");
maRoleMap.put(new Integer (AccessibleRole.WINDOW), R)267         maRoleMap.put (new Integer (AccessibleRole.WINDOW), "WINDOW");
268 
maRelationMap.put(new Integer (AccessibleRelationType.INVALID), R)269         maRelationMap.put (new Integer (AccessibleRelationType.INVALID), "INVALID");
maRelationMap.put(new Integer (AccessibleRelationType.CONTENT_FLOWS_FROM), R)270         maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_FROM), "CONTENT_FLOWS_FROM");
maRelationMap.put(new Integer (AccessibleRelationType.CONTENT_FLOWS_TO), R)271         maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_TO), "CONTENT_FLOWS_TO");
maRelationMap.put(new Integer (AccessibleRelationType.CONTROLLED_BY), R)272         maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLED_BY), "CONTROLLED_BY");
maRelationMap.put(new Integer (AccessibleRelationType.CONTROLLER_FOR), R)273         maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLER_FOR), "CONTROLLER_FOR");
maRelationMap.put(new Integer (AccessibleRelationType.LABEL_FOR), R)274         maRelationMap.put (new Integer (AccessibleRelationType.LABEL_FOR), "LABEL_FOR");
maRelationMap.put(new Integer (AccessibleRelationType.LABELED_BY), R)275         maRelationMap.put (new Integer (AccessibleRelationType.LABELED_BY), "LABELED_BY");
maRelationMap.put(new Integer (AccessibleRelationType.MEMBER_OF), R)276         maRelationMap.put (new Integer (AccessibleRelationType.MEMBER_OF), "MEMBER_OF");
maRelationMap.put(new Integer (AccessibleRelationType.SUB_WINDOW_OF), R)277         maRelationMap.put (new Integer (AccessibleRelationType.SUB_WINDOW_OF), "SUB_WINDOW_OF");
278     }
279 }
280