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