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)) log.fine("XICFocused {0}, AWTFocused {1}",

 330                                                               lastXICFocussedComponent, awtFocussedComponent);

 331         }
 332 
 333         if (pData == 0) {
 334             if (!createXIC()) {
 335                 return;
 336             }
 337             disposed = false;
 338         }
 339 
 340         /*  reset input context if necessary and set the XIC focus
 341         */
 342         resetXICifneeded();
 343         ComponentPeer lastXICFocussedComponentPeer = null;
 344         ComponentPeer awtFocussedComponentPeer = getPeer(awtFocussedComponent);
 345 
 346         if (lastXICFocussedComponent != null) {
 347            lastXICFocussedComponentPeer = getPeer(lastXICFocussedComponent);
 348         }
 349 
 350         /* If the last XIC focussed component has a different peer as the




 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);
 350         }
 351 
 352         /* If the last XIC focussed component has a different peer as the