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