@UiHandler("btnLogin")
  void onLogin(ClickEvent e) {
    MaterialLoader.showLoading(true);
    Timer t =
        new Timer() {

          @Override
          public void run() {
            MaterialLoader.showLoading(false);
            RootPanel.get().clear();
            RootPanel.get().add(new HomePanel());
          }
        };
    t.schedule(2000);
  }
示例#2
0
 /** Show a circular loader. */
 public static void showLoading(boolean isShow) {
   showLoading(isShow, RootPanel.get());
 }