1 16 package com.google.gwt.user.client; 17 18 import com.google.gwt.core.client.JavaScriptObject; 19 20 28 public final class Event extends JavaScriptObject { 29 30 33 public static final int BUTTON_LEFT = 1; 34 35 38 public static final int BUTTON_MIDDLE = 4; 39 40 43 public static final int BUTTON_RIGHT = 2; 44 45 48 public static final int ONBLUR = 0x01000; 49 50 53 public static final int ONCHANGE = 0x00400; 54 55 58 public static final int ONCLICK = 0x00001; 59 60 63 public static final int ONDBLCLICK = 0x00002; 64 65 68 public static final int ONERROR = 0x10000; 69 70 73 public static final int ONFOCUS = 0x00800; 74 75 78 public static final int ONKEYDOWN = 0x00080; 79 80 84 public static final int ONKEYPRESS = 0x00100; 85 86 89 public static final int ONKEYUP = 0x00200; 90 91 94 public static final int ONLOAD = 0x08000; 95 96 99 public static final int ONLOSECAPTURE = 0x02000; 100 101 104 public static final int ONMOUSEDOWN = 0x00004; 105 106 109 public static final int ONMOUSEMOVE = 0x00040; 110 111 114 public static final int ONMOUSEOUT = 0x00020; 115 116 119 public static final int ONMOUSEOVER = 0x00010; 120 121 124 public static final int ONMOUSEUP = 0x00008; 125 126 129 public static final int ONMOUSEWHEEL = 0x20000; 130 131 134 public static final int ONSCROLL = 0x04000; 135 136 139 public static final int FOCUSEVENTS = ONFOCUS | ONBLUR; 140 141 144 public static final int KEYEVENTS = ONKEYDOWN | ONKEYPRESS | ONKEYUP; 145 146 150 public static final int MOUSEEVENTS = ONMOUSEDOWN | ONMOUSEUP | ONMOUSEMOVE 151 | ONMOUSEOVER | ONMOUSEOUT; 152 153 158 protected Event() { 159 } 160 161 166 public boolean equals(Object other) { 167 return super.equals(other); 168 } 169 170 175 public int hashCode() { 176 return super.hashCode(); 177 } 178 179 184 public String toString() { 185 return DOM.eventToString(this); 186 }; 187 } 188 | Popular Tags |