< prev index next >

src/java.desktop/aix/classes/sun/awt/X11InputMethod.java

Print this page




 171         if (pData != 0) {
 172             setStatusAreaVisible(false, pData);
 173             turnoffStatusWindow();
 174         }
 175     }
 176 
 177     /**
 178      * Updates composed text with XIM preedit information and
 179      * posts composed text to the awt event queue. The args of
 180      * this method correspond to the XIM preedit callback
 181      * information. The XIM highlight attributes are translated via
 182      * fixed mapping (i.e., independent from any underlying input
 183      * method engine). This method is invoked in the AWT Toolkit
 184      * (X event loop) thread context and thus inside the AWT Lock.
 185      */
 186     // NOTE: This method may be called by privileged threads.
 187     //       This functionality is implemented in a package-private method
 188     //       to insure that it cannot be overridden by client subclasses.
 189     //       DO NOT INVOKE CLIENT CODE ON THIS THREAD!
 190     void dispatchComposedText(String chgText,
 191                                            int chgStyles[],
 192                                            int chgOffset,
 193                                            int chgLength,
 194                                            int caretPosition,
 195                                            long when) {
 196         if (disposed) {
 197             return;
 198         }
 199 
 200         // Workaround for deadlock bug on solaris2.6_zh bug#4170760
 201         if (chgText == null
 202             && chgStyles == null
 203             && chgOffset == 0
 204             && chgLength == 0
 205             && caretPosition == 0
 206             && composedText == null
 207             && committedText == null)
 208             return;
 209 
 210         // Recalculate chgOffset and chgLength for supplementary char
 211         if (composedText != null) {




 171         if (pData != 0) {
 172             setStatusAreaVisible(false, pData);
 173             turnoffStatusWindow();
 174         }
 175     }
 176 
 177     /**
 178      * Updates composed text with XIM preedit information and
 179      * posts composed text to the awt event queue. The args of
 180      * this method correspond to the XIM preedit callback
 181      * information. The XIM highlight attributes are translated via
 182      * fixed mapping (i.e., independent from any underlying input
 183      * method engine). This method is invoked in the AWT Toolkit
 184      * (X event loop) thread context and thus inside the AWT Lock.
 185      */
 186     // NOTE: This method may be called by privileged threads.
 187     //       This functionality is implemented in a package-private method
 188     //       to insure that it cannot be overridden by client subclasses.
 189     //       DO NOT INVOKE CLIENT CODE ON THIS THREAD!
 190     void dispatchComposedText(String chgText,
 191                                            int[] chgStyles,
 192                                            int chgOffset,
 193                                            int chgLength,
 194                                            int caretPosition,
 195                                            long when) {
 196         if (disposed) {
 197             return;
 198         }
 199 
 200         // Workaround for deadlock bug on solaris2.6_zh bug#4170760
 201         if (chgText == null
 202             && chgStyles == null
 203             && chgOffset == 0
 204             && chgLength == 0
 205             && caretPosition == 0
 206             && composedText == null
 207             && committedText == null)
 208             return;
 209 
 210         // Recalculate chgOffset and chgLength for supplementary char
 211         if (composedText != null) {


< prev index next >