< prev index next >

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

Print this page
rev 54086 : 8240487: Cleanup whitespace in .cc, .hh, .m, and .mm files


 552          }
 553          } else {
 554          */
 555         static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView");
 556         static JNF_MEMBER_CACHE(jm_deliverWindowDidExposeEvent, jc_CPlatformView, "deliverWindowDidExposeEvent", "()V");
 557         jobject jlocal = (*env)->NewLocalRef(env, m_cPlatformView);
 558         if (!(*env)->IsSameObject(env, jlocal, NULL)) {
 559             JNFCallVoidMethod(env, jlocal, jm_deliverWindowDidExposeEvent);
 560             (*env)->DeleteLocalRef(env, jlocal);
 561         }
 562         /*
 563          }
 564          */
 565     }
 566 }
 567 
 568 -(BOOL) isCodePointInUnicodeBlockNeedingIMEvent: (unichar) codePoint {
 569     if ((codePoint == 0x0024) || (codePoint == 0x00A3) ||
 570         (codePoint == 0x00A5) ||
 571         ((codePoint >= 0x20A3) && (codePoint <= 0x20BF)) ||
 572         ((codePoint >= 0x3000) && (codePoint <= 0x303F)) ||
 573         ((codePoint >= 0xFF00) && (codePoint <= 0xFFEF))) {
 574         // Code point is in 'CJK Symbols and Punctuation' or
 575         // 'Halfwidth and Fullwidth Forms' Unicode block or
 576         // currency symbols unicode
 577         return YES;
 578     }
 579     return NO;
 580 }
 581 
 582 -(NSMutableString *) parseString : (id) complexString {
 583     if ([complexString isKindOfClass:[NSString class]]) {
 584         return [complexString mutableCopy];
 585     }
 586     else {
 587         return [complexString mutableString];
 588     }
 589 }
 590 
 591 // NSAccessibility support
 592 - (jobject)awtComponent:(JNIEnv*)env
 593 {
 594     static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView");
 595     static JNF_MEMBER_CACHE(jf_Peer, jc_CPlatformView, "peer", "Lsun/lwawt/LWWindowPeer;");
 596     if ((env == NULL) || (m_cPlatformView == NULL)) {




 552          }
 553          } else {
 554          */
 555         static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView");
 556         static JNF_MEMBER_CACHE(jm_deliverWindowDidExposeEvent, jc_CPlatformView, "deliverWindowDidExposeEvent", "()V");
 557         jobject jlocal = (*env)->NewLocalRef(env, m_cPlatformView);
 558         if (!(*env)->IsSameObject(env, jlocal, NULL)) {
 559             JNFCallVoidMethod(env, jlocal, jm_deliverWindowDidExposeEvent);
 560             (*env)->DeleteLocalRef(env, jlocal);
 561         }
 562         /*
 563          }
 564          */
 565     }
 566 }
 567 
 568 -(BOOL) isCodePointInUnicodeBlockNeedingIMEvent: (unichar) codePoint {
 569     if ((codePoint == 0x0024) || (codePoint == 0x00A3) ||
 570         (codePoint == 0x00A5) ||
 571         ((codePoint >= 0x20A3) && (codePoint <= 0x20BF)) ||
 572         ((codePoint >= 0x3000) && (codePoint <= 0x303F)) ||
 573         ((codePoint >= 0xFF00) && (codePoint <= 0xFFEF))) {
 574         // Code point is in 'CJK Symbols and Punctuation' or
 575         // 'Halfwidth and Fullwidth Forms' Unicode block or
 576         // currency symbols unicode
 577         return YES;
 578     }
 579     return NO;
 580 }
 581 
 582 -(NSMutableString *) parseString : (id) complexString {
 583     if ([complexString isKindOfClass:[NSString class]]) {
 584         return [complexString mutableCopy];
 585     }
 586     else {
 587         return [complexString mutableString];
 588     }
 589 }
 590 
 591 // NSAccessibility support
 592 - (jobject)awtComponent:(JNIEnv*)env
 593 {
 594     static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView");
 595     static JNF_MEMBER_CACHE(jf_Peer, jc_CPlatformView, "peer", "Lsun/lwawt/LWWindowPeer;");
 596     if ((env == NULL) || (m_cPlatformView == NULL)) {


< prev index next >