예제 #1
0
 /** Simulates a keydown event. */
 public static void keyDown(Widget target, int keyCode) {
   dispatchEvent(target, EventBuilder.create(Event.ONKEYDOWN).setKeyCode(keyCode).build());
 }
예제 #2
0
 /** Simulates a dblclick event. */
 public static void dblClick(Widget target) {
   dispatchEvent(target, EventBuilder.create(Event.ONDBLCLICK).build());
 }
예제 #3
0
 /** Simulates a focus event. */
 public static void focus(Widget target) {
   dispatchEvent(target, EventBuilder.create(Event.ONFOCUS).build());
 }
예제 #4
0
 /** Simulates a onblur event. */
 public static void blur(Widget target) {
   dispatchEvent(target, EventBuilder.create(Event.ONBLUR).build());
 }
예제 #5
0
 /** Simulates a onchange event. */
 public static void change(Widget target) {
   dispatchEvent(target, EventBuilder.create(Event.ONCHANGE).build());
 }
예제 #6
0
 /** Simulates a mouseout event. */
 public static void mouseOut(Widget target) {
   dispatchEvent(target, EventBuilder.create(Event.ONMOUSEOUT).build());
 }
예제 #7
0
 /** Simulates a mousewheel event. */
 public static void mouseWheel(Widget target) {
   dispatchEvent(target, EventBuilder.create(Event.ONMOUSEWHEEL).build());
 }
예제 #8
0
 /** Simulates a mousedown event. */
 public static void mouseDown(Widget target) {
   dispatchEvent(target, EventBuilder.create(Event.ONMOUSEDOWN).build());
 }
예제 #9
0
 /** Simulates a mousemove event. */
 public static void mouseMove(Widget target) {
   dispatchEvent(target, EventBuilder.create(Event.ONMOUSEMOVE).build());
 }
예제 #10
0
 /** Simulates a keypress event. */
 public static void keyPress(Widget target, int keyCode) {
   dispatchEvent(target, EventBuilder.create(Event.ONKEYPRESS).setKeyCode(keyCode).build());
 }