src/solaris/classes/sun/awt/X11InputMethod.java

Print this page




 309         boolean compositionState = false;
 310         if (compositionEnableSupported) {
 311             try {
 312                 compositionState = isCompositionEnabled();
 313             } catch (UnsupportedOperationException e) {
 314                 compositionEnableSupported = false;
 315             }
 316         }
 317         return compositionState;
 318     }
 319 
 320     /**
 321      * Activate input method.
 322      */
 323     public synchronized void activate() {
 324         clientComponentWindow = getClientComponentWindow();
 325         if (clientComponentWindow == null)
 326             return;
 327 
 328         if (lastXICFocussedComponent != null){
 329             if (log.isLoggable(PlatformLogger.FINE)) {
 330                 log.fine("XICFocused {0}, AWTFocused {1}",
 331                          lastXICFocussedComponent, awtFocussedComponent);
 332             }
 333         }
 334 
 335         if (pData == 0) {
 336             if (!createXIC()) {
 337                 return;
 338             }
 339             disposed = false;
 340         }
 341 
 342         /*  reset input context if necessary and set the XIC focus
 343         */
 344         resetXICifneeded();
 345         ComponentPeer lastXICFocussedComponentPeer = null;
 346         ComponentPeer awtFocussedComponentPeer = getPeer(awtFocussedComponent);
 347 
 348         if (lastXICFocussedComponent != null) {
 349            lastXICFocussedComponentPeer = getPeer(lastXICFocussedComponent);




 309         boolean compositionState = false;
 310         if (compositionEnableSupported) {
 311             try {
 312                 compositionState = isCompositionEnabled();
 313             } catch (UnsupportedOperationException e) {
 314                 compositionEnableSupported = false;
 315             }
 316         }
 317         return compositionState;
 318     }
 319 
 320     /**
 321      * Activate input method.
 322      */
 323     public synchronized void activate() {
 324         clientComponentWindow = getClientComponentWindow();
 325         if (clientComponentWindow == null)
 326             return;
 327 
 328         if (lastXICFocussedComponent != null){
 329             if (log.isLoggable(PlatformLogger.Level.FINE)) {
 330                 log.fine("XICFocused {0}, AWTFocused {1}",
 331                          lastXICFocussedComponent, awtFocussedComponent);
 332             }
 333         }
 334 
 335         if (pData == 0) {
 336             if (!createXIC()) {
 337                 return;
 338             }
 339             disposed = false;
 340         }
 341 
 342         /*  reset input context if necessary and set the XIC focus
 343         */
 344         resetXICifneeded();
 345         ComponentPeer lastXICFocussedComponentPeer = null;
 346         ComponentPeer awtFocussedComponentPeer = getPeer(awtFocussedComponent);
 347 
 348         if (lastXICFocussedComponent != null) {
 349            lastXICFocussedComponentPeer = getPeer(lastXICFocussedComponent);