Package com.googlecode.gwt.test

Examples of com.googlecode.gwt.test.WindowOperationsHandler


@PatchClass(Window.class)
class WindowPatcher {

   @PatchMethod
   static void alert(String msg) {
      WindowOperationsHandler handler = GwtConfig.get().getModuleRunner().getWindowOperationsHandler();
      if (handler != null) {
         handler.alert(msg);
      }
   }
View Full Code Here


      }
   }

   @PatchMethod
   static boolean confirm(String msg) {
      WindowOperationsHandler handler = GwtConfig.get().getModuleRunner().getWindowOperationsHandler();
      if (handler == null) {
         throw new GwtTestConfigurationException(
                  "A call to Window.confirm(msg) was triggered, but no "
                           + WindowOperationsHandler.class.getSimpleName()
                           + " has been registered. You need to setup your own with the protected 'setWindowOperationsHandler' method available in your test class");

      }

      return handler.confirm(msg);
   }
View Full Code Here

   }

   @PatchMethod
   static void open(String url, String name, String features) {
      WindowOperationsHandler handler = GwtConfig.get().getModuleRunner().getWindowOperationsHandler();
      if (handler != null) {
         handler.open(url, name, features);
      }
   }
View Full Code Here

      }
   }

   @PatchMethod
   static void print() {
      WindowOperationsHandler handler = GwtConfig.get().getModuleRunner().getWindowOperationsHandler();
      if (handler != null) {
         handler.print();
      }
   }
View Full Code Here

      }
   }

   @PatchMethod
   static String prompt(String msg, String initialValue) {
      WindowOperationsHandler handler = GwtConfig.get().getModuleRunner().getWindowOperationsHandler();
      if (handler != null) {
         return handler.prompt(msg, initialValue);
      }

      return null;
   }
View Full Code Here

TOP

Related Classes of com.googlecode.gwt.test.WindowOperationsHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.