< prev index next >

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

Print this page




 528          }
 529          } else {
 530          */
 531         static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView");
 532         static JNF_MEMBER_CACHE(jm_deliverWindowDidExposeEvent, jc_CPlatformView, "deliverWindowDidExposeEvent", "()V");
 533         jobject jlocal = (*env)->NewLocalRef(env, m_cPlatformView);
 534         if (!(*env)->IsSameObject(env, jlocal, NULL)) {
 535             JNFCallVoidMethod(env, jlocal, jm_deliverWindowDidExposeEvent);
 536             (*env)->DeleteLocalRef(env, jlocal);
 537         }
 538         /*
 539          }
 540          */
 541     }
 542 }
 543 
 544 -(BOOL) isCodePointInUnicodeBlockNeedingIMEvent: (unichar) codePoint {
 545     if ((codePoint == 0x0024) || (codePoint == 0x00A3) ||
 546         (codePoint == 0x00A5) ||
 547         ((codePoint >= 0x20A3) && (codePoint <= 0x20BF)) ||
 548         ((codePoint >= 0x3000) && (codePoint <= 0x303F)) ||
 549         ((codePoint >= 0xFF00) && (codePoint <= 0xFFEF))) {
 550         // Code point is in 'CJK Symbols and Punctuation' or
 551         // 'Halfwidth and Fullwidth Forms' Unicode block or
 552         // currency symbols unicode
 553         return YES;
 554     }
 555     return NO;
 556 }
 557 
 558 -(NSMutableString *) parseString : (id) complexString {
 559     if ([complexString isKindOfClass:[NSString class]]) {
 560         return [complexString mutableCopy];
 561     }
 562     else {
 563         return [complexString mutableString];
 564     }
 565 }
 566 
 567 // NSAccessibility support
 568 - (jobject)awtComponent:(JNIEnv*)env
 569 {
 570     static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView");
 571     static JNF_MEMBER_CACHE(jf_Peer, jc_CPlatformView, "peer", "Lsun/lwawt/LWWindowPeer;");
 572     if ((env == NULL) || (m_cPlatformView == NULL)) {




 528          }
 529          } else {
 530          */
 531         static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView");
 532         static JNF_MEMBER_CACHE(jm_deliverWindowDidExposeEvent, jc_CPlatformView, "deliverWindowDidExposeEvent", "()V");
 533         jobject jlocal = (*env)->NewLocalRef(env, m_cPlatformView);
 534         if (!(*env)->IsSameObject(env, jlocal, NULL)) {
 535             JNFCallVoidMethod(env, jlocal, jm_deliverWindowDidExposeEvent);
 536             (*env)->DeleteLocalRef(env, jlocal);
 537         }
 538         /*
 539          }
 540          */
 541     }
 542 }
 543 
 544 -(BOOL) isCodePointInUnicodeBlockNeedingIMEvent: (unichar) codePoint {
 545     if ((codePoint == 0x0024) || (codePoint == 0x00A3) ||
 546         (codePoint == 0x00A5) ||
 547         ((codePoint >= 0x20A3) && (codePoint <= 0x20BF)) ||
 548         ((codePoint >= 0x3000) && (codePoint <= 0x303F)) ||
 549         ((codePoint >= 0xFF00) && (codePoint <= 0xFFEF))) {
 550         // Code point is in 'CJK Symbols and Punctuation' or
 551         // 'Halfwidth and Fullwidth Forms' Unicode block or
 552         // currency symbols unicode
 553         return YES;
 554     }
 555     return NO;
 556 }
 557 
 558 -(NSMutableString *) parseString : (id) complexString {
 559     if ([complexString isKindOfClass:[NSString class]]) {
 560         return [complexString mutableCopy];
 561     }
 562     else {
 563         return [complexString mutableString];
 564     }
 565 }
 566 
 567 // NSAccessibility support
 568 - (jobject)awtComponent:(JNIEnv*)env
 569 {
 570     static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView");
 571     static JNF_MEMBER_CACHE(jf_Peer, jc_CPlatformView, "peer", "Lsun/lwawt/LWWindowPeer;");
 572     if ((env == NULL) || (m_cPlatformView == NULL)) {


< prev index next >