< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m

Print this page

        

*** 1205,1231 **** allowIgnored:YES]; if ([children count] > 0) { // handle case of AXMenuItem // need to ask menu what is selected NSArray *selectedChildrenOfMenu = ! [self accessibilitySelectedChildrenAttribute]; JavaComponentAccessibility *selectedMenuItem = ! [selectedChildrenOfMenu objectAtIndex:0]; if (selectedMenuItem != nil) { jobject itemValue = ! JNFCallStaticObjectMethod( env, sjm_getAccessibleName, selectedMenuItem->fAccessible, selectedMenuItem->fComponent ); // AWT_THREADING Safe (AWTRunLoop) if (itemValue == NULL) { return nil; } NSString* itemString = JNFJavaToNSString(env, itemValue); (*env)->DeleteLocalRef(env, itemValue); return itemString; } else { ! return nil; } } } // ask Java for the component's accessibleValue. In java, the "accessibleValue" just means a numerical value --- 1205,1231 ---- allowIgnored:YES]; if ([children count] > 0) { // handle case of AXMenuItem // need to ask menu what is selected NSArray *selectedChildrenOfMenu = ! [self accessibilitySelectedChildrenAttribute]; JavaComponentAccessibility *selectedMenuItem = ! [selectedChildrenOfMenu objectAtIndex:0]; if (selectedMenuItem != nil) { jobject itemValue = ! JNFCallStaticObjectMethod( env, sjm_getAccessibleName, selectedMenuItem->fAccessible, selectedMenuItem->fComponent ); // AWT_THREADING Safe (AWTRunLoop) if (itemValue == NULL) { return nil; } NSString* itemString = JNFJavaToNSString(env, itemValue); (*env)->DeleteLocalRef(env, itemValue); return itemString; } else { ! return nil; } } } // ask Java for the component's accessibleValue. In java, the "accessibleValue" just means a numerical value
< prev index next >