< prev index next >

modules/javafx.web/src/main/java/com/sun/webkit/event/WCMouseEvent.java

Print this page
rev 10044 : 8166231: use @Native annotation in web classes
Reviewed-by: kcr


   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.webkit.event;
  27 


  28 public final class WCMouseEvent {
  29 
  30     // id
  31     public final static int MOUSE_PRESSED = 0;
  32     public final static int MOUSE_RELEASED = 1;
  33     public final static int MOUSE_MOVED = 2;
  34     public final static int MOUSE_DRAGGED = 3;
  35     public final static int MOUSE_WHEEL = 4;
  36 
  37     // button
  38     public final static int NOBUTTON = 0;
  39     public final static int BUTTON1 = 1;
  40     public final static int BUTTON2 = 2;
  41     public final static int BUTTON3 = 4;
  42 
  43     private final int id;
  44     private final long when;
  45 
  46     private final int button;
  47     private final int clickCount;
  48 
  49     private final int x;
  50     private final int y;
  51     private final int screenX;
  52     private final int screenY;
  53 
  54     private final boolean shift;
  55     private final boolean control;
  56     private final boolean alt;
  57     private final boolean meta;
  58 
  59     private final boolean popupTrigger;
  60 
  61     public WCMouseEvent(int id, int button, int clickCount, int x, int y, int screenX, int screenY,




   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.webkit.event;
  27 
  28 import java.lang.annotation.Native;
  29 
  30 public final class WCMouseEvent {
  31 
  32     // id
  33     @Native public final static int MOUSE_PRESSED = 0;
  34     @Native public final static int MOUSE_RELEASED = 1;
  35     @Native public final static int MOUSE_MOVED = 2;
  36     @Native public final static int MOUSE_DRAGGED = 3;
  37     @Native public final static int MOUSE_WHEEL = 4;
  38 
  39     // button
  40     @Native public final static int NOBUTTON = 0;
  41     @Native public final static int BUTTON1 = 1;
  42     @Native public final static int BUTTON2 = 2;
  43     @Native public final static int BUTTON3 = 4;
  44 
  45     private final int id;
  46     private final long when;
  47 
  48     private final int button;
  49     private final int clickCount;
  50 
  51     private final int x;
  52     private final int y;
  53     private final int screenX;
  54     private final int screenY;
  55 
  56     private final boolean shift;
  57     private final boolean control;
  58     private final boolean alt;
  59     private final boolean meta;
  60 
  61     private final boolean popupTrigger;
  62 
  63     public WCMouseEvent(int id, int button, int clickCount, int x, int y, int screenX, int screenY,


< prev index next >