Exemplo n.º 1
0
  @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);
  }
Exemplo n.º 2
0
 /** Show a circular loader. */
 public static void showLoading(boolean isShow) {
   showLoading(isShow, RootPanel.get());
 }