src/windows/classes/sun/awt/windows/WEmbeddedFrame.java

Print this page




 209                                     int dx, int dy, int dwidth, int dheight);
 210 
 211     /**
 212      * Initialize JNI field IDs
 213      */
 214     private static native void initIDs();
 215 
 216     /**
 217      * This method is called from the native code when this embedded
 218      * frame should be activated. It is expected to be overridden in
 219      * subclasses, for example, in plugin to activate the browser
 220      * window that contains this embedded frame.
 221      *
 222      * NOTE: This method may be called by privileged threads.
 223      *     DO NOT INVOKE CLIENT CODE ON THIS THREAD!
 224      */
 225     public void activateEmbeddingTopLevel() {
 226     }
 227 
 228     @SuppressWarnings("deprecation")
 229     public void synthesizeWindowActivation(final boolean doActivate) {
 230         if (!doActivate || EventQueue.isDispatchThread()) {
 231             ((WEmbeddedFramePeer)getPeer()).synthesizeWmActivate(doActivate);
 232         } else {
 233             // To avoid focus concurrence b/w IE and EmbeddedFrame
 234             // activation is postponed by means of posting it to EDT.
 235             EventQueue.invokeLater(new Runnable() {
 236                     public void run() {
 237                         ((WEmbeddedFramePeer)getPeer()).synthesizeWmActivate(true);
 238                     }
 239                 });
 240         }
 241     }
 242 
 243     public void registerAccelerator(AWTKeyStroke stroke) {}
 244     public void unregisterAccelerator(AWTKeyStroke stroke) {}
 245 
 246     /**
 247      * Should be overridden in subclasses. Call to
 248      *     super.notifyModalBlocked(blocker, blocked) must be present
 249      *     when overriding.
 250      * It may occur that embedded frame is not put into its
 251      *     container at the moment when it is blocked, for example,
 252      *     when running an applet in IE. Then the call to this method
 253      *     should be delayed until embedded frame is reparented.
 254      *
 255      * NOTE: This method may be called by privileged threads.
 256      *     DO NOT INVOKE CLIENT CODE ON THIS THREAD!
 257      */


 209                                     int dx, int dy, int dwidth, int dheight);
 210 
 211     /**
 212      * Initialize JNI field IDs
 213      */
 214     private static native void initIDs();
 215 
 216     /**
 217      * This method is called from the native code when this embedded
 218      * frame should be activated. It is expected to be overridden in
 219      * subclasses, for example, in plugin to activate the browser
 220      * window that contains this embedded frame.
 221      *
 222      * NOTE: This method may be called by privileged threads.
 223      *     DO NOT INVOKE CLIENT CODE ON THIS THREAD!
 224      */
 225     public void activateEmbeddingTopLevel() {
 226     }
 227 
 228     @SuppressWarnings("deprecation")
 229     public void synthesizeWindowActivation(final boolean activate) {
 230         if (!activate || EventQueue.isDispatchThread()) {
 231             ((WFramePeer)getPeer()).emulateActivation(activate);
 232         } else {
 233             // To avoid focus concurrence b/w IE and EmbeddedFrame
 234             // activation is postponed by means of posting it to EDT.
 235             EventQueue.invokeLater(new Runnable() {
 236                     public void run() {
 237                         ((WFramePeer)getPeer()).emulateActivation(true);
 238                     }
 239                 });
 240         }
 241     }
 242 
 243     public void registerAccelerator(AWTKeyStroke stroke) {}
 244     public void unregisterAccelerator(AWTKeyStroke stroke) {}
 245 
 246     /**
 247      * Should be overridden in subclasses. Call to
 248      *     super.notifyModalBlocked(blocker, blocked) must be present
 249      *     when overriding.
 250      * It may occur that embedded frame is not put into its
 251      *     container at the moment when it is blocked, for example,
 252      *     when running an applet in IE. Then the call to this method
 253      *     should be delayed until embedded frame is reparented.
 254      *
 255      * NOTE: This method may be called by privileged threads.
 256      *     DO NOT INVOKE CLIENT CODE ON THIS THREAD!
 257      */