120 return null;
121 }
122
123 /*
124 * Subclasses should override disposeImpl() instead of dispose(). Client
125 * code should always invoke dispose(), never disposeImpl().
126 */
127 protected synchronized void disposeImpl() {
128 super.disposeImpl();
129 clientComponentWindow = null;
130 }
131
132 protected void awtLock() {
133 XToolkit.awtLock();
134 }
135
136 protected void awtUnlock() {
137 XToolkit.awtUnlock();
138 }
139
140 long getCurrentParentWindow() {
141 return ((XWindow)clientComponentWindow.getPeer()).getContentWindow();
142 }
143
144 /*
145 * Native methods
146 */
147 private native boolean openXIMNative(long display);
148 private native boolean createXICNative(long window);
149 private native void setXICFocusNative(long window,
150 boolean value, boolean active);
151 private native void adjustStatusWindow(long window);
152 }
|
120 return null;
121 }
122
123 /*
124 * Subclasses should override disposeImpl() instead of dispose(). Client
125 * code should always invoke dispose(), never disposeImpl().
126 */
127 protected synchronized void disposeImpl() {
128 super.disposeImpl();
129 clientComponentWindow = null;
130 }
131
132 protected void awtLock() {
133 XToolkit.awtLock();
134 }
135
136 protected void awtUnlock() {
137 XToolkit.awtUnlock();
138 }
139
140 @SuppressWarnings("deprecation")
141 long getCurrentParentWindow() {
142 return ((XWindow)clientComponentWindow.getPeer()).getContentWindow();
143 }
144
145 /*
146 * Native methods
147 */
148 private native boolean openXIMNative(long display);
149 private native boolean createXICNative(long window);
150 private native void setXICFocusNative(long window,
151 boolean value, boolean active);
152 private native void adjustStatusWindow(long window);
153 }
|