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