Examples of ProgressBar


Examples of com.davidjc.ajaxfileupload.components.ProgressBar

     * @see org.apache.struts2.views.jsp.ComponentTagSupport#getBean(com.opensymphony.xwork2.util.ValueStack, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    @Override
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
  logger.info("");
  return new ProgressBar(stack, req, res);
    }
View Full Code Here

Examples of com.davidjc.ajaxfileupload.components.ProgressBar

    @Override
    protected void populateParams() {
  super.populateParams();
  logger.info("");
  ProgressBar prg = (ProgressBar) component;
  prg.setAction(action);
  prg.setDoafter(doafter);
  prg.setDobefore(dobefore);
    }
View Full Code Here

Examples of com.drakulo.games.ais.ui.component.ProgressBar

   *            The progress color
   * @return the progress bar
   */
  public static ProgressBar createBar(String title, Color color,
      boolean displayValues) {
    ProgressBar pb = new ProgressBar(displayValues);
    pb.setWidth(102);
    pb.setHeight(20);
    pb.setEmptyColor(Color.darkGray);
    pb.setFilledColor(color);
    pb.setTitle(FontHelper.firstToUpper(title));
    return pb;
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.ProgressBar

    buttonBar.add(new Button("Progress", new SelectionListener<ButtonEvent>() {
      public void componentSelected(ButtonEvent ce) {
        final MessageBox box = MessageBox.progress("Please wait", "Loading items...",
            "Initializing...");
        final ProgressBar bar = box.getProgressBar();
        final Timer t = new Timer() {
          float i;

          @Override
          public void run() {
            bar.updateProgress(i / 100, (int) i + "% Complete");
            i += 5;
            if (i > 105) {
              cancel();
              box.close();
              Info.display("Message", "Items were loaded", "");
View Full Code Here

Examples of com.google.gwt.widgetideas.client.ProgressBar

        VerticalPanel panel = new VerticalPanel();
        panel.setBorderWidth(3);
      
        panel.add(new Label("Please Wait (Notice that this is modal!)"));
       
        progressBar = new ProgressBar();
        progressBar.setWidth("300");
          
        panel.add(progressBar);
        this.add(panel);
        this.center();
View Full Code Here

Examples of com.google.gwtexpui.progress.client.ProgressBar

      }
    }

    void initMeter() {
      if (meter == null) {
        meter = new ProgressBar(Util.M.loadingPatchSet(detail.getPatchSet().getId().get()));
        PatchTable.this.myBody.clear();
        PatchTable.this.myBody.add(meter);
      }
      updateMeter();
    }
View Full Code Here

Examples of com.googlecode.mgwt.ui.client.widget.progress.ProgressBar

  public ProgressBarViewImpl() {

    FlowPanel content = new FlowPanel();
    content.getElement().getStyle().setMarginTop(20, Unit.PX);

    content.add(new ProgressBar());

    HTML html = new HTML("animation is purely done with css");
    html.getElement().setAttribute("style", "text-align: center; padding: 20px;");
    content.add(html);
View Full Code Here

Examples of com.googlecode.wicket.jquery.ui.widget.progressbar.ProgressBar

            //TODO uncomment later target.add(value);
            //TODO add current step result as info
          }
        }
      });
      container.add(progressBar = new ProgressBar("progress", new Model<Integer>(0)) {
        private static final long serialVersionUID = 1L;

        @Override
        protected void onComplete(AjaxRequestTarget target) {
          timer.stop(target);
View Full Code Here

Examples of com.moneychanger.ui.ProgressBar


            final Runnable doMoneychanger = new Runnable() {
                @Override
                public void run() {
                    new ProgressBar().setVisible(true);
                }
            };

            Thread appThread = new Thread() {
                @Override
View Full Code Here

Examples of com.pointcliki.ui.ProgressBar

        fDownNo.cleanup();
        fDownNo = null;
        fDownInfo.cleanup();
        fDownInfo = null;
       
        final ProgressBar downloadBar = new ProgressBar(new Vector2f(340, 32), new Color(20, 44, 48), HOVER);
        StartScene.this.addChild(downloadBar.position(new Vector2f(60, 115)));
       
        final TextEntity downloadText = new TextEntity("Please wait while Dizgruntled downloads\nrequired resources", TextEntity.ALIGN_LEFT, fFont);
        StartScene.this.addChild(downloadText.position(new Vector2f(60, 200)));
       
        // Download the resources
        final Thread downloader = new Thread() {
         
          private DownloadExtractor fVrzDown;
          private DownloadExtractor fRezDown;

          @Override
          public void run() {
            try {
              URL url = new URL("http://pointcliki.com/gruntz/download.txt");
              Scanner s = new Scanner(url.openStream());
              final String rez = s.nextLine();
              final String vrz = s.nextLine();
              s.close();
             
              // Download the VRZ
              fVrzDown = new DownloadExtractor(new URL(vrz), new File("lib/vrz.zip"), new File("lib/GRUNTZ.VRZ")) {
 
                @Override
                public void onError(Exception e) {
                  JFrame frame = new JFrame();
                  frame.setVisible(true);
                  frame.setLocationRelativeTo(null);
                  frame.setAlwaysOnTop(true);
                  JOptionPane.showMessageDialog(frame, "Sorry, Dizgruntled can't download the files at this time. Please try again later", "Download Error", 0);
                  frame.dispose();
                  fVrzDown.cancel();
                  fRezDown.cancel();
                 
                  // Clean up
                  removeChild(fBack);
                  downloadBar.cleanup();
                  downloadText.cleanup();
                  showDownloadPage();
                }
 
                @Override
                public void onExtracting() {
                  downloadText.text("Extracting resources...");
                }
 
                @Override
                public void onProgress(float f) {
                  downloadBar.percent(f / 2 + fRezDown.progress() / 2);
                }
 
                @Override
                public void onDone() {
                  done.set(done.get() + 1);
                }
             
              };
             
              // Download the REZ
              fRezDown = new DownloadExtractor(new URL(rez), new File("lib/rez.zip"), new File("lib/GRUNTZ.REZ")) {
 
                @Override
                public void onError(Exception e) {
                  JFrame frame = new JFrame();
                  frame.setVisible(true);
                  frame.setLocationRelativeTo(null);
                  frame.setAlwaysOnTop(true);
                  JOptionPane.showMessageDialog(frame, "Sorry, Dizgruntled can't download the files at this time. Please try again later", "Download Error", 0);
                  frame.dispose();
                  fVrzDown.cancel();
                  fRezDown.cancel();
                 
                  // Clean up
                  removeChild(fBack);
                  downloadBar.cleanup();
                  downloadText.cleanup();
                  showDownloadPage();
                }
 
                @Override
                public void onExtracting() {
                  downloadText.text("Extracting resources...");
                }
 
                @Override
                public void onProgress(float f) {
                  downloadBar.percent(f / 2 + fVrzDown.progress() / 2);
                }
 
                @Override
                public void onDone() {
                  done.set(done.get() + 1);                 
                }
             
              };
             
              final HyperlinkText cancelText = new HyperlinkText("Cancel Download", TextEntity.ALIGN_LEFT, fFont, Color.white, HOVER) {
                /**
                 * Serial key
                 */
                private static final long serialVersionUID = 896122497881495986L;
 
                @Override
                public void click() {
                  fVrzDown.cancel();
                  fRezDown.cancel();
                  // Clean up
                  removeChild(fBack);
                  downloadBar.cleanup();
                  downloadText.cleanup();
                  showDownloadPage();
                }
              };
              StartScene.this.addChild(cancelText.position(new Vector2f(60, 450)));
             
              fVrzDown.start();
              fRezDown.start();
             
            } catch (Exception e) {
              JFrame frame = new JFrame();
              frame.setVisible(true);
              frame.setLocationRelativeTo(null);
              frame.setAlwaysOnTop(true);
              JOptionPane.showMessageDialog(frame, "Sorry, Dizgruntled can't download the files at this time. Please try again later", "Download Error", 0);
              frame.dispose();
              // Clean up
              removeChild(fBack);
              downloadBar.cleanup();
              downloadText.cleanup();
              showDownloadPage();
            }
           
            fFinishedDownload = new Minion<FrameEvent>() {
              @Override
              public long run(Dispatcher<FrameEvent> dispatcher, String type, FrameEvent event) {
                if (done.get() < 2) {
                  return Minion.CONTINUE;
                } else {
                  // Clean up
                  removeChild(fBack);
                  downloadBar.cleanup();
                  downloadText.cleanup();
                  showMenuPage();
                 
                  return Minion.FINISH;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.