xref: /trunk/main/odk/examples/DevelopersGuide/Accessibility/NameProvider.java (revision 34dd1e2512dbacb6a9a7e4c7f17b9296daa8eff3)
1*34dd1e25SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*34dd1e25SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*34dd1e25SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*34dd1e25SAndrew Rist  * distributed with this work for additional information
6*34dd1e25SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*34dd1e25SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*34dd1e25SAndrew Rist  * "License"); you may not use this file except in compliance
9*34dd1e25SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*34dd1e25SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*34dd1e25SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*34dd1e25SAndrew Rist  * software distributed under the License is distributed on an
15*34dd1e25SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*34dd1e25SAndrew Rist  * KIND, either express or implied.  See the License for the
17*34dd1e25SAndrew Rist  * specific language governing permissions and limitations
18*34dd1e25SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*34dd1e25SAndrew Rist  *************************************************************/
21*34dd1e25SAndrew Rist 
22*34dd1e25SAndrew Rist 
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.DEFUNC), "DEFUNC");
107cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.EDITABLE), "EDITABLE");
108cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.ENABLED), "ENABLED");
109cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.EXPANDABLE), "EXPANDABLE");
110cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.EXPANDED), "EXPANDED");
111cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.FOCUSABLE), "FOCUSABLE");
112cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.FOCUSED), "FOCUSED");
113cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.HORIZONTAL), "HORIZONTAL");
114cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.ICONIFIED), "ICONIFIED");
115cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.MODAL), "MODAL");
116cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.MULTI_LINE), "MULTI_LINE");
117cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.MULTI_SELECTABLE), "MULTI_SELECTABLE");
118cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.OPAQUE), "OPAQUE");
119cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.PRESSED), "PRESSED");
120cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.RESIZABLE), "RESIZABLE");
121cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.SELECTABLE), "SELECTABLE");
122cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.SELECTED), "SELECTED");
123cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.SENSITIVE), "SENSITIVE");
124cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.SHOWING), "SHOWING");
125cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.SINGLE_LINE), "SINGLE_LINE");
126cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.STALE), "STALE");
127cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.TRANSIENT), "TRANSIENT");
128cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.VERTICAL), "VERTICAL");
129cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.VISIBLE), "VISIBLE");
130cdf0e10cSrcweir         maStateMap.put (new Integer (AccessibleStateType.MANAGES_DESCENDANTS),
131cdf0e10cSrcweir             "MANAGES_DESCENDANTS");
132cdf0e10cSrcweir         //        maStateMap.put (new Integer (AccessibleStateType.INCONSISTENT),"INCONSISTENT");
133cdf0e10cSrcweir 
134cdf0e10cSrcweir 
135cdf0e10cSrcweir         maEventMap.put (new Integer (0),
136cdf0e10cSrcweir             "[UNKNOWN]");
137cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.NAME_CHANGED),
138cdf0e10cSrcweir             "NAME_CHANGED");
139cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.DESCRIPTION_CHANGED),
140cdf0e10cSrcweir             "DESCRIPTION_CHANGED");
141cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.ACTION_CHANGED),
142cdf0e10cSrcweir             "ACTION_CHANGED");
143cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.STATE_CHANGED),
144cdf0e10cSrcweir             "STATE_CHANGED");
145cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.ACTIVE_DESCENDANT_CHANGED),
146cdf0e10cSrcweir             "ACTIVE_DESCENDANT_CHANGED");
147cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.BOUNDRECT_CHANGED),
148cdf0e10cSrcweir             "BOUNDRECT_CHANGED");
149cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.CHILD),
150cdf0e10cSrcweir             "CHILD");
151cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.INVALIDATE_ALL_CHILDREN),
152cdf0e10cSrcweir             "INVALIDATE_ALL_CHILDREN");
153cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.SELECTION_CHANGED),
154cdf0e10cSrcweir             "SELECTION_CHANGED");
155cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.VISIBLE_DATA_CHANGED),
156cdf0e10cSrcweir             "VISIBLE_DATA_CHANGED");
157cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.VALUE_CHANGED),
158cdf0e10cSrcweir             "VALUE_CHANGED");
159cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_FROM_RELATION_CHANGED),
160cdf0e10cSrcweir             "CONTENT_FLOWS_FROM_RELATION_CHANGED");
161cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_TO_RELATION_CHANGED),
162cdf0e10cSrcweir             "CONTENT_FLOWS_TO_RELATION_CHANGED");
163cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.CONTROLLED_BY_RELATION_CHANGED),
164cdf0e10cSrcweir             "CONTROLLED_BY_RELATION_CHANGED");
165cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.CONTROLLER_FOR_RELATION_CHANGED),
166cdf0e10cSrcweir             "CONTROLLER_FOR_RELATION_CHANGED");
167cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.LABEL_FOR_RELATION_CHANGED),
168cdf0e10cSrcweir             "LABEL_FOR_RELATION_CHANGED");
169cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.LABELED_BY_RELATION_CHANGED),
170cdf0e10cSrcweir             "LABELED_BY_RELATION_CHANGED");
171cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.MEMBER_OF_RELATION_CHANGED),
172cdf0e10cSrcweir             "MEMBER_OF_RELATION_CHANGED");
173cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.SUB_WINDOW_OF_RELATION_CHANGED),
174cdf0e10cSrcweir             "SUB_WINDOW_OF_RELATION_CHANGED");
175cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.CARET_CHANGED),
176cdf0e10cSrcweir             "CARET_CHANGED");
177cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TEXT_SELECTION_CHANGED),
178cdf0e10cSrcweir             "TEXT_SELECTION_CHANGED");
179cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TEXT_CHANGED),
180cdf0e10cSrcweir             "TEXT_CHANGED");
181cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TEXT_ATTRIBUTE_CHANGED),
182cdf0e10cSrcweir             "TEXT_ATTRIBUTE_CHANGED");
183cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.HYPERTEXT_CHANGED),
184cdf0e10cSrcweir             "HYPERTEXT_CHANGED");
185cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TABLE_CAPTION_CHANGED),
186cdf0e10cSrcweir             "TABLE_CAPTION_CHANGED");
187cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_DESCRIPTION_CHANGED),
188cdf0e10cSrcweir             "TABLE_COLUMN_DESCRIPTION_CHANGED");
189cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_HEADER_CHANGED),
190cdf0e10cSrcweir             "TABLE_COLUMN_HEADER_CHANGED");
191cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TABLE_MODEL_CHANGED),
192cdf0e10cSrcweir             "TABLE_MODEL_CHANGED");
193cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_DESCRIPTION_CHANGED),
194cdf0e10cSrcweir             "TABLE_ROW_DESCRIPTION_CHANGED");
195cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_HEADER_CHANGED),
196cdf0e10cSrcweir             "TABLE_ROW_HEADER_CHANGED");
197cdf0e10cSrcweir         maEventMap.put (new Integer (AccessibleEventId.TABLE_SUMMARY_CHANGED),
198cdf0e10cSrcweir             "TABLE_SUMMARY_CHANGED");
199cdf0e10cSrcweir 
200cdf0e10cSrcweir         maRoleMap.put (new Integer(AccessibleRole.UNKNOWN), "UNKNOWN");
201cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.UNKNOWN), "UNKNOWN");
202cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.ALERT), "ALERT");
203cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.COLUMN_HEADER), "COLUMN_HEADER");
204cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.CANVAS), "CANVAS");
205cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.CHECK_BOX), "CHECK_BOX");
206cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.CHECK_MENU_ITEM), "CHECK_MENU_ITEM");
207cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.COLOR_CHOOSER), "COLOR_CHOOSER");
208cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.COMBO_BOX), "COMBO_BOX");
209cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.DESKTOP_ICON), "DESKTOP_ICON");
210cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.DESKTOP_PANE), "DESKTOP_PANE");
211cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.DIRECTORY_PANE), "DIRECTORY_PANE");
212cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.DIALOG), "DIALOG");
213cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.DOCUMENT), "DOCUMENT");
214cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.EMBEDDED_OBJECT), "EMBEDDED_OBJECT");
215cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.END_NOTE), "END_NOTE");
216cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.FILE_CHOOSER), "FILE_CHOOSER");
217cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.FILLER), "FILLER");
218cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.FONT_CHOOSER), "FONT_CHOOSER");
219cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.FOOTER), "FOOTER");
220cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.FOOTNOTE), "FOOTNOTE");
221cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.FRAME), "FRAME");
222cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.GLASS_PANE), "GLASS_PANE");
223cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.GRAPHIC), "GRAPHIC");
224cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.GROUP_BOX), "GROUP_BOX");
225cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.HEADER), "HEADER");
226cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.HEADING), "HEADING");
227cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.HYPER_LINK), "HYPER_LINK");
228cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.ICON), "ICON");
229cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.INTERNAL_FRAME), "INTERNAL_FRAME");
230cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.LABEL), "LABEL");
231cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.LAYERED_PANE), "LAYERED_PANE");
232cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.LIST), "LIST");
233cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.LIST_ITEM), "LIST_ITEM");
234cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.MENU), "MENU");
235cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.MENU_BAR), "MENU_BAR");
236cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.MENU_ITEM), "MENU_ITEM");
237cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.OPTION_PANE), "OPTION_PANE");
238cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB), "PAGE_TAB");
239cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB_LIST), "PAGE_TAB_LIST");
240cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.PANEL), "PANEL");
241cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.PARAGRAPH), "PARAGRAPH");
242cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.PASSWORD_TEXT), "PASSWORD_TEXT");
243cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.POPUP_MENU), "POPUP_MENU");
244cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.PUSH_BUTTON), "PUSH_BUTTON");
245cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.PROGRESS_BAR), "PROGRESS_BAR");
246cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.RADIO_BUTTON), "RADIO_BUTTON");
247cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.RADIO_MENU_ITEM), "RADIO_MENU_ITEM");
248cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.ROW_HEADER), "ROW_HEADER");
249cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.ROOT_PANE), "ROOT_PANE");
250cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.SCROLL_BAR), "SCROLL_BAR");
251cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.SCROLL_PANE), "SCROLL_PANE");
252cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.SHAPE), "SHAPE");
253cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.SEPARATOR), "SEPARATOR");
254cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.SLIDER), "SLIDER");
255cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.SPIN_BOX), "SPIN_BOX");
256cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.SPLIT_PANE), "SPLIT_PANE");
257cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.STATUS_BAR), "STATUS_BAR");
258cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.TABLE), "TABLE");
259cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.TABLE_CELL), "TABLE_CELL");
260cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.TEXT), "TEXT");
261cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.TEXT_FRAME), "TEXT_FRAME");
262cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.TOGGLE_BUTTON), "TOGGLE_BUTTON");
263cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.TOOL_BAR), "TOOL_BAR");
264cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.TOOL_TIP), "TOOL_TIP");
265cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.TREE), "TREE");
266cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.VIEW_PORT), "VIEW_PORT");
267cdf0e10cSrcweir         maRoleMap.put (new Integer (AccessibleRole.WINDOW), "WINDOW");
268cdf0e10cSrcweir 
269cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.INVALID), "INVALID");
270cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_FROM), "CONTENT_FLOWS_FROM");
271cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_TO), "CONTENT_FLOWS_TO");
272cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLED_BY), "CONTROLLED_BY");
273cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLER_FOR), "CONTROLLER_FOR");
274cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.LABEL_FOR), "LABEL_FOR");
275cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.LABELED_BY), "LABELED_BY");
276cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.MEMBER_OF), "MEMBER_OF");
277cdf0e10cSrcweir         maRelationMap.put (new Integer (AccessibleRelationType.SUB_WINDOW_OF), "SUB_WINDOW_OF");
278cdf0e10cSrcweir     }
279cdf0e10cSrcweir }
280