src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java

Print this page




  72                                  double pluginY, int buttonNumber, int clickCount) {
  73         int x = (int)pluginX;
  74         int y = (int)pluginY;
  75         Point locationOnScreen = getLocationOnScreen();
  76         int screenX = locationOnScreen.x + x;
  77         int screenY = locationOnScreen.y + y;
  78 
  79         responder.handleMouseEvent(eventType, modifierFlags, buttonNumber,
  80                                    clickCount, x, y, screenX, screenY);
  81     }
  82 
  83     public void handleScrollEvent(double pluginX, double pluginY, int modifierFlags,
  84                                   double deltaX, double deltaY, double deltaZ) {
  85         int x = (int)pluginX;
  86         int y = (int)pluginY;
  87 
  88         responder.handleScrollEvent(x, y, modifierFlags, deltaX, deltaY);
  89     }
  90 
  91     public void handleKeyEvent(int eventType, int modifierFlags, String characters,







  92                                String charsIgnoringMods, boolean isRepeat, short keyCode) {
  93         responder.handleKeyEvent(eventType, modifierFlags, charsIgnoringMods, keyCode);
  94     }
  95 
  96     public void handleInputEvent(String text) {
  97         new RuntimeException("Not implemented");
  98     }
  99 
 100     public void handleFocusEvent(boolean focused) {
 101         this.focused = focused;
 102         updateOverlayWindowActiveState();
 103     }
 104 
 105     public void handleWindowFocusEvent(boolean parentWindowActive) {
 106         this.parentWindowActive = parentWindowActive;
 107         updateOverlayWindowActiveState();
 108     }
 109 
 110     public boolean isParentWindowActive() {
 111         return parentWindowActive;
 112     }
 113 
 114     /*
 115      * May change appearance of contents of window, and generate a
 116      * WINDOW_ACTIVATED event.
 117      */


  72                                  double pluginY, int buttonNumber, int clickCount) {
  73         int x = (int)pluginX;
  74         int y = (int)pluginY;
  75         Point locationOnScreen = getLocationOnScreen();
  76         int screenX = locationOnScreen.x + x;
  77         int screenY = locationOnScreen.y + y;
  78 
  79         responder.handleMouseEvent(eventType, modifierFlags, buttonNumber,
  80                                    clickCount, x, y, screenX, screenY);
  81     }
  82 
  83     public void handleScrollEvent(double pluginX, double pluginY, int modifierFlags,
  84                                   double deltaX, double deltaY, double deltaZ) {
  85         int x = (int)pluginX;
  86         int y = (int)pluginY;
  87 
  88         responder.handleScrollEvent(x, y, modifierFlags, deltaX, deltaY);
  89     }
  90 
  91     public void handleKeyEvent(int eventType, int modifierFlags, String characters,
  92                                String charsIgnoringMods, boolean isRepeat, short keyCode,
  93                                boolean needsKeyTyped) {
  94         responder.handleKeyEvent(eventType, modifierFlags, charsIgnoringMods, keyCode, needsKeyTyped);
  95     }
  96 
  97     // REMIND: delete this method once 'deploy' changes for 7156194 is pushed
  98     public void handleKeyEvent(int eventType, int modifierFlags, String characters,
  99                                String charsIgnoringMods, boolean isRepeat, short keyCode) {
 100         handleKeyEvent(eventType, modifierFlags, characters, charsIgnoringMods, isRepeat, keyCode, true);
 101     }
 102 
 103     public void handleInputEvent(String text) {
 104         responder.handleInputEvent(text);
 105     }
 106 
 107     public void handleFocusEvent(boolean focused) {
 108         this.focused = focused;
 109         updateOverlayWindowActiveState();
 110     }
 111 
 112     public void handleWindowFocusEvent(boolean parentWindowActive) {
 113         this.parentWindowActive = parentWindowActive;
 114         updateOverlayWindowActiveState();
 115     }
 116 
 117     public boolean isParentWindowActive() {
 118         return parentWindowActive;
 119     }
 120 
 121     /*
 122      * May change appearance of contents of window, and generate a
 123      * WINDOW_ACTIVATED event.
 124      */