code: public static void progress(boolean visible, Panel container) {
          loader.setType(LoaderType.PROGRESS);
          loader.setContainer(container);
          if (visible) {
              loader.show();
          } else {
              loader.hide();
          }
      }
docs: Static helper class that shows / hides a progress loader within a container