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