1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * The Contents of this file are made available subject to the terms of 4*cdf0e10cSrcweir * the BSD license. 5*cdf0e10cSrcweir * 6*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 7*cdf0e10cSrcweir * All rights reserved. 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * Redistribution and use in source and binary forms, with or without 10*cdf0e10cSrcweir * modification, are permitted provided that the following conditions 11*cdf0e10cSrcweir * are met: 12*cdf0e10cSrcweir * 1. Redistributions of source code must retain the above copyright 13*cdf0e10cSrcweir * notice, this list of conditions and the following disclaimer. 14*cdf0e10cSrcweir * 2. Redistributions in binary form must reproduce the above copyright 15*cdf0e10cSrcweir * notice, this list of conditions and the following disclaimer in the 16*cdf0e10cSrcweir * documentation and/or other materials provided with the distribution. 17*cdf0e10cSrcweir * 3. Neither the name of Sun Microsystems, Inc. nor the names of its 18*cdf0e10cSrcweir * contributors may be used to endorse or promote products derived 19*cdf0e10cSrcweir * from this software without specific prior written permission. 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22*cdf0e10cSrcweir * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23*cdf0e10cSrcweir * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24*cdf0e10cSrcweir * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25*cdf0e10cSrcweir * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26*cdf0e10cSrcweir * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27*cdf0e10cSrcweir * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 28*cdf0e10cSrcweir * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 29*cdf0e10cSrcweir * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 30*cdf0e10cSrcweir * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 31*cdf0e10cSrcweir * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32*cdf0e10cSrcweir * 33*cdf0e10cSrcweir *************************************************************************/ 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir import java.util.HashMap; 36*cdf0e10cSrcweir import com.sun.star.accessibility.AccessibleStateType; 37*cdf0e10cSrcweir import com.sun.star.accessibility.AccessibleEventId; 38*cdf0e10cSrcweir import com.sun.star.accessibility.AccessibleRole; 39*cdf0e10cSrcweir import com.sun.star.accessibility.AccessibleRelationType; 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir /** Provide names for several accessibility constants groups. 43*cdf0e10cSrcweir */ 44*cdf0e10cSrcweir public class NameProvider 45*cdf0e10cSrcweir { 46*cdf0e10cSrcweir /** Return the name of the specified state. 47*cdf0e10cSrcweir @param nStateId 48*cdf0e10cSrcweir Id of the state for which to return its name. This is one of 49*cdf0e10cSrcweir the ids listed in the <type>AccessibleStateType</const> 50*cdf0e10cSrcweir constants group. 51*cdf0e10cSrcweir @return 52*cdf0e10cSrcweir Returns the name of the specified state or an empty string if an 53*cdf0e10cSrcweir invalid / unknown state id was given. 54*cdf0e10cSrcweir */ 55*cdf0e10cSrcweir public static String getStateName (int nStateId) 56*cdf0e10cSrcweir { 57*cdf0e10cSrcweir return (String)maStateMap.get (new Integer(nStateId)); 58*cdf0e10cSrcweir } 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir /** Return the name of the specified event. 62*cdf0e10cSrcweir @param nEventId 63*cdf0e10cSrcweir Id of the event type for which to return its name. This is one 64*cdf0e10cSrcweir of the ids listed in the <type>AccessibleEventId</const> 65*cdf0e10cSrcweir constants group. 66*cdf0e10cSrcweir @return 67*cdf0e10cSrcweir Returns the name of the specified event type or an empty string 68*cdf0e10cSrcweir if an invalid / unknown event id was given. 69*cdf0e10cSrcweir */ 70*cdf0e10cSrcweir public static String getEventName (int nEventId) 71*cdf0e10cSrcweir { 72*cdf0e10cSrcweir return (String)maEventMap.get (new Integer(nEventId)); 73*cdf0e10cSrcweir } 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir /** Return the name of the specified role. 77*cdf0e10cSrcweir @param nRole 78*cdf0e10cSrcweir Id of the role for which to return its name. This is one of 79*cdf0e10cSrcweir the ids listed in the <type>AccessibleRole</const> 80*cdf0e10cSrcweir constants group. 81*cdf0e10cSrcweir @return 82*cdf0e10cSrcweir Returns the name of the specified role or an empty string if an 83*cdf0e10cSrcweir invalid / unknown role id was given. 84*cdf0e10cSrcweir */ 85*cdf0e10cSrcweir public static String getRoleName (int nRole) 86*cdf0e10cSrcweir { 87*cdf0e10cSrcweir return (String)maRoleMap.get (new Integer(nRole)); 88*cdf0e10cSrcweir } 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir /** Return the name of the specified relation. 92*cdf0e10cSrcweir @param nRelation 93*cdf0e10cSrcweir Id of the relation for which to return its name. This is one of 94*cdf0e10cSrcweir the ids listed in the <type>AccessibleRelationType</const> 95*cdf0e10cSrcweir constants group. 96*cdf0e10cSrcweir @return 97*cdf0e10cSrcweir Returns the name of the specified relation type or an empty 98*cdf0e10cSrcweir string if an invalid / unknown role id was given. 99*cdf0e10cSrcweir */ 100*cdf0e10cSrcweir public static String getRelationName (int nRelation) 101*cdf0e10cSrcweir { 102*cdf0e10cSrcweir return (String)maRelationMap.get (new Integer(nRelation)); 103*cdf0e10cSrcweir } 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir private static HashMap maStateMap = new HashMap(); 107*cdf0e10cSrcweir private static HashMap maEventMap = new HashMap(); 108*cdf0e10cSrcweir private static HashMap maRoleMap = new HashMap(); 109*cdf0e10cSrcweir private static HashMap maRelationMap = new HashMap(); 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir static { 112*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.INVALID), "INVALID"); 113*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.ACTIVE), "ACTIVE"); 114*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.ARMED), "ARMED"); 115*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.BUSY), "BUSY"); 116*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.CHECKED), "CHECKED"); 117*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.DEFUNC), "DEFUNC"); 118*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.EDITABLE), "EDITABLE"); 119*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.ENABLED), "ENABLED"); 120*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.EXPANDABLE), "EXPANDABLE"); 121*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.EXPANDED), "EXPANDED"); 122*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.FOCUSABLE), "FOCUSABLE"); 123*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.FOCUSED), "FOCUSED"); 124*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.HORIZONTAL), "HORIZONTAL"); 125*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.ICONIFIED), "ICONIFIED"); 126*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.MODAL), "MODAL"); 127*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.MULTI_LINE), "MULTI_LINE"); 128*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.MULTI_SELECTABLE), "MULTI_SELECTABLE"); 129*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.OPAQUE), "OPAQUE"); 130*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.PRESSED), "PRESSED"); 131*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.RESIZABLE), "RESIZABLE"); 132*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.SELECTABLE), "SELECTABLE"); 133*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.SELECTED), "SELECTED"); 134*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.SENSITIVE), "SENSITIVE"); 135*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.SHOWING), "SHOWING"); 136*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.SINGLE_LINE), "SINGLE_LINE"); 137*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.STALE), "STALE"); 138*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.TRANSIENT), "TRANSIENT"); 139*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.VERTICAL), "VERTICAL"); 140*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.VISIBLE), "VISIBLE"); 141*cdf0e10cSrcweir maStateMap.put (new Integer (AccessibleStateType.MANAGES_DESCENDANTS), 142*cdf0e10cSrcweir "MANAGES_DESCENDANTS"); 143*cdf0e10cSrcweir // maStateMap.put (new Integer (AccessibleStateType.INCONSISTENT),"INCONSISTENT"); 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir maEventMap.put (new Integer (0), 147*cdf0e10cSrcweir "[UNKNOWN]"); 148*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.NAME_CHANGED), 149*cdf0e10cSrcweir "NAME_CHANGED"); 150*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.DESCRIPTION_CHANGED), 151*cdf0e10cSrcweir "DESCRIPTION_CHANGED"); 152*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.ACTION_CHANGED), 153*cdf0e10cSrcweir "ACTION_CHANGED"); 154*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.STATE_CHANGED), 155*cdf0e10cSrcweir "STATE_CHANGED"); 156*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.ACTIVE_DESCENDANT_CHANGED), 157*cdf0e10cSrcweir "ACTIVE_DESCENDANT_CHANGED"); 158*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.BOUNDRECT_CHANGED), 159*cdf0e10cSrcweir "BOUNDRECT_CHANGED"); 160*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.CHILD), 161*cdf0e10cSrcweir "CHILD"); 162*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.INVALIDATE_ALL_CHILDREN), 163*cdf0e10cSrcweir "INVALIDATE_ALL_CHILDREN"); 164*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.SELECTION_CHANGED), 165*cdf0e10cSrcweir "SELECTION_CHANGED"); 166*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.VISIBLE_DATA_CHANGED), 167*cdf0e10cSrcweir "VISIBLE_DATA_CHANGED"); 168*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.VALUE_CHANGED), 169*cdf0e10cSrcweir "VALUE_CHANGED"); 170*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_FROM_RELATION_CHANGED), 171*cdf0e10cSrcweir "CONTENT_FLOWS_FROM_RELATION_CHANGED"); 172*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.CONTENT_FLOWS_TO_RELATION_CHANGED), 173*cdf0e10cSrcweir "CONTENT_FLOWS_TO_RELATION_CHANGED"); 174*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.CONTROLLED_BY_RELATION_CHANGED), 175*cdf0e10cSrcweir "CONTROLLED_BY_RELATION_CHANGED"); 176*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.CONTROLLER_FOR_RELATION_CHANGED), 177*cdf0e10cSrcweir "CONTROLLER_FOR_RELATION_CHANGED"); 178*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.LABEL_FOR_RELATION_CHANGED), 179*cdf0e10cSrcweir "LABEL_FOR_RELATION_CHANGED"); 180*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.LABELED_BY_RELATION_CHANGED), 181*cdf0e10cSrcweir "LABELED_BY_RELATION_CHANGED"); 182*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.MEMBER_OF_RELATION_CHANGED), 183*cdf0e10cSrcweir "MEMBER_OF_RELATION_CHANGED"); 184*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.SUB_WINDOW_OF_RELATION_CHANGED), 185*cdf0e10cSrcweir "SUB_WINDOW_OF_RELATION_CHANGED"); 186*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.CARET_CHANGED), 187*cdf0e10cSrcweir "CARET_CHANGED"); 188*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TEXT_SELECTION_CHANGED), 189*cdf0e10cSrcweir "TEXT_SELECTION_CHANGED"); 190*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TEXT_CHANGED), 191*cdf0e10cSrcweir "TEXT_CHANGED"); 192*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TEXT_ATTRIBUTE_CHANGED), 193*cdf0e10cSrcweir "TEXT_ATTRIBUTE_CHANGED"); 194*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.HYPERTEXT_CHANGED), 195*cdf0e10cSrcweir "HYPERTEXT_CHANGED"); 196*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TABLE_CAPTION_CHANGED), 197*cdf0e10cSrcweir "TABLE_CAPTION_CHANGED"); 198*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_DESCRIPTION_CHANGED), 199*cdf0e10cSrcweir "TABLE_COLUMN_DESCRIPTION_CHANGED"); 200*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TABLE_COLUMN_HEADER_CHANGED), 201*cdf0e10cSrcweir "TABLE_COLUMN_HEADER_CHANGED"); 202*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TABLE_MODEL_CHANGED), 203*cdf0e10cSrcweir "TABLE_MODEL_CHANGED"); 204*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_DESCRIPTION_CHANGED), 205*cdf0e10cSrcweir "TABLE_ROW_DESCRIPTION_CHANGED"); 206*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TABLE_ROW_HEADER_CHANGED), 207*cdf0e10cSrcweir "TABLE_ROW_HEADER_CHANGED"); 208*cdf0e10cSrcweir maEventMap.put (new Integer (AccessibleEventId.TABLE_SUMMARY_CHANGED), 209*cdf0e10cSrcweir "TABLE_SUMMARY_CHANGED"); 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir maRoleMap.put (new Integer(AccessibleRole.UNKNOWN), "UNKNOWN"); 212*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.UNKNOWN), "UNKNOWN"); 213*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.ALERT), "ALERT"); 214*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.COLUMN_HEADER), "COLUMN_HEADER"); 215*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.CANVAS), "CANVAS"); 216*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.CHECK_BOX), "CHECK_BOX"); 217*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.CHECK_MENU_ITEM), "CHECK_MENU_ITEM"); 218*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.COLOR_CHOOSER), "COLOR_CHOOSER"); 219*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.COMBO_BOX), "COMBO_BOX"); 220*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.DESKTOP_ICON), "DESKTOP_ICON"); 221*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.DESKTOP_PANE), "DESKTOP_PANE"); 222*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.DIRECTORY_PANE), "DIRECTORY_PANE"); 223*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.DIALOG), "DIALOG"); 224*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.DOCUMENT), "DOCUMENT"); 225*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.EMBEDDED_OBJECT), "EMBEDDED_OBJECT"); 226*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.END_NOTE), "END_NOTE"); 227*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.FILE_CHOOSER), "FILE_CHOOSER"); 228*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.FILLER), "FILLER"); 229*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.FONT_CHOOSER), "FONT_CHOOSER"); 230*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.FOOTER), "FOOTER"); 231*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.FOOTNOTE), "FOOTNOTE"); 232*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.FRAME), "FRAME"); 233*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.GLASS_PANE), "GLASS_PANE"); 234*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.GRAPHIC), "GRAPHIC"); 235*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.GROUP_BOX), "GROUP_BOX"); 236*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.HEADER), "HEADER"); 237*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.HEADING), "HEADING"); 238*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.HYPER_LINK), "HYPER_LINK"); 239*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.ICON), "ICON"); 240*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.INTERNAL_FRAME), "INTERNAL_FRAME"); 241*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.LABEL), "LABEL"); 242*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.LAYERED_PANE), "LAYERED_PANE"); 243*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.LIST), "LIST"); 244*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.LIST_ITEM), "LIST_ITEM"); 245*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.MENU), "MENU"); 246*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.MENU_BAR), "MENU_BAR"); 247*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.MENU_ITEM), "MENU_ITEM"); 248*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.OPTION_PANE), "OPTION_PANE"); 249*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB), "PAGE_TAB"); 250*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.PAGE_TAB_LIST), "PAGE_TAB_LIST"); 251*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.PANEL), "PANEL"); 252*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.PARAGRAPH), "PARAGRAPH"); 253*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.PASSWORD_TEXT), "PASSWORD_TEXT"); 254*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.POPUP_MENU), "POPUP_MENU"); 255*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.PUSH_BUTTON), "PUSH_BUTTON"); 256*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.PROGRESS_BAR), "PROGRESS_BAR"); 257*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.RADIO_BUTTON), "RADIO_BUTTON"); 258*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.RADIO_MENU_ITEM), "RADIO_MENU_ITEM"); 259*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.ROW_HEADER), "ROW_HEADER"); 260*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.ROOT_PANE), "ROOT_PANE"); 261*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.SCROLL_BAR), "SCROLL_BAR"); 262*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.SCROLL_PANE), "SCROLL_PANE"); 263*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.SHAPE), "SHAPE"); 264*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.SEPARATOR), "SEPARATOR"); 265*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.SLIDER), "SLIDER"); 266*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.SPIN_BOX), "SPIN_BOX"); 267*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.SPLIT_PANE), "SPLIT_PANE"); 268*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.STATUS_BAR), "STATUS_BAR"); 269*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.TABLE), "TABLE"); 270*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.TABLE_CELL), "TABLE_CELL"); 271*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.TEXT), "TEXT"); 272*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.TEXT_FRAME), "TEXT_FRAME"); 273*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.TOGGLE_BUTTON), "TOGGLE_BUTTON"); 274*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.TOOL_BAR), "TOOL_BAR"); 275*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.TOOL_TIP), "TOOL_TIP"); 276*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.TREE), "TREE"); 277*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.VIEW_PORT), "VIEW_PORT"); 278*cdf0e10cSrcweir maRoleMap.put (new Integer (AccessibleRole.WINDOW), "WINDOW"); 279*cdf0e10cSrcweir 280*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.INVALID), "INVALID"); 281*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_FROM), "CONTENT_FLOWS_FROM"); 282*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.CONTENT_FLOWS_TO), "CONTENT_FLOWS_TO"); 283*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLED_BY), "CONTROLLED_BY"); 284*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.CONTROLLER_FOR), "CONTROLLER_FOR"); 285*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.LABEL_FOR), "LABEL_FOR"); 286*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.LABELED_BY), "LABELED_BY"); 287*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.MEMBER_OF), "MEMBER_OF"); 288*cdf0e10cSrcweir maRelationMap.put (new Integer (AccessibleRelationType.SUB_WINDOW_OF), "SUB_WINDOW_OF"); 289*cdf0e10cSrcweir } 290*cdf0e10cSrcweir } 291