Пример #1
0
 public Event sendEvent(final SWTUIElement w, final int event) {
   if (PlayerWrapUtils.unwrapWidget(w).isDisposed()) {
     return null;
   }
   try {
     Event e = createEvent(w);
     sendEventRaw(event, e);
     return e;
   } catch (Throwable e) {
     TeslaCore.log(e);
   }
   return null;
 }
Пример #2
0
 public Event sendEvent(final SWTUIElement w, Event event) {
   Widget unwrapWidget = PlayerWrapUtils.unwrapWidget(w);
   if (unwrapWidget.isDisposed()) {
     return null;
   }
   try {
     event.widget = unwrapWidget;
     sendEventRaw(event.type, event);
     return event;
   } catch (SecurityException e) {
     TeslaCore.log(e);
   } catch (IllegalArgumentException e) {
     TeslaCore.log(e);
   }
   return null;
 }
Пример #3
0
 public Event sendEvent(final SWTUIElement w, final int event, int x, int y) {
   if (PlayerWrapUtils.unwrapWidget(w).isDisposed()) {
     return null;
   }
   try {
     Event e = createEvent(w);
     e.x = x;
     e.y = y;
     e.type = event;
     sendEventRaw(event, e);
     return e;
   } catch (SecurityException e) {
     TeslaCore.log(e);
   } catch (IllegalArgumentException e) {
     TeslaCore.log(e);
   }
   return null;
 }
Пример #4
0
 public Event createEvent(SWTUIElement wrap) {
   return createEvent(PlayerWrapUtils.unwrapWidget(wrap));
 }