Esempio n. 1
0
 @PatchMethod
 static void print() {
   WindowOperationsHandler handler = GwtConfig.get().getWindowOperationsHandler();
   if (handler != null) {
     handler.print();
   }
 }
Esempio n. 2
0
 @PatchMethod
 static void open(String url, String name, String features) {
   WindowOperationsHandler handler = GwtConfig.get().getWindowOperationsHandler();
   if (handler != null) {
     handler.open(url, name, features);
   }
 }
Esempio n. 3
0
 @PatchMethod
 static void alert(String msg) {
   WindowOperationsHandler handler = GwtConfig.get().getWindowOperationsHandler();
   if (handler != null) {
     handler.alert(msg);
   }
 }
Esempio n. 4
0
  @PatchMethod
  static String prompt(String msg, String initialValue) {
    WindowOperationsHandler handler = GwtConfig.get().getWindowOperationsHandler();
    if (handler != null) {
      return handler.prompt(msg, initialValue);
    }

    return null;
  }
Esempio n. 5
0
  @PatchMethod
  static boolean confirm(String msg) {
    WindowOperationsHandler handler = GwtConfig.get().getWindowOperationsHandler();
    if (handler != null) {
      return handler.confirm(msg);
    }

    return false;
  }