Examples of ProgressBar


Examples of org.olat.core.gui.components.progressbar.ProgressBar

      throw new AssertException("Cannot write to selected folder.");
    // mainVC is the main view
   
    mainVC = createVelocityContainer("upload");
    // Add progress bar
    ubar = new ProgressBar("ubar");
    ubar.setWidth(200);
    ubar.setUnitLabel("MB");
    mainVC.put(ubar.getComponentName(), ubar);

    // Calculate quota and limits
View Full Code Here

Examples of org.olat.core.gui.components.progressbar.ProgressBar

      JSAndCSSComponent autoCompleteJsCss = new JSAndCSSComponent("auto_complete_js_css", this.getClass(), null, null, true, sb.toString());
      myContent.put("autoCompleteJsCss", autoCompleteJsCss);
    }
    closeButton = LinkFactory.createButton("close", myContent, this);
   
    qtiscoreprogress = new ProgressBar("qtiscoreprogress", 150, 0, 0, "");
    myContent.put("qtiscoreprogress", qtiscoreprogress);
    Boolean displayScoreProgress = (Boolean) modConfig.get(IQEditController.CONFIG_KEY_SCOREPROGRESS);
    if (displayScoreProgress == null) displayScoreProgress = Boolean.TRUE; // migration,
                                                                            // display
                                                                            // menu
    if (!displayScoreProgress.booleanValue()) qtiscoreprogress.setVisible(false);
    myContent.contextPut("displayScoreProgress", displayScoreProgress);

    qtiquestionprogress = new ProgressBar("qtiquestionprogress", 150, 0, 0, "");
    myContent.put("qtiquestionprogress", qtiquestionprogress);
    Boolean displayQuestionProgress = (Boolean) modConfig.get(IQEditController.CONFIG_KEY_QUESTIONPROGRESS);
    if (displayQuestionProgress == null) displayQuestionProgress = Boolean.FALSE; // migration,
                                                                                  // don't
                                                                                  // display
View Full Code Here

Examples of org.openfaces.component.output.ProgressBar

    }

    @Override
    protected void writeProgressBar(FacesContext context, AbstractFileUpload fileUpload) throws IOException {
        if (progressBar == null) {
            progressBar = new ProgressBar();
            progressBar.setDefaultProgressImgUrl(DEFAULT_UPLOADED_MIN_URL);
        }
        progressBar.setStyleClass(Styles.getCSSClass(context, progressBar, progressBar.getStyle(), StyleGroup.regularStyleGroup(), progressBar.getStyleClass(), getProgressBarStyle(((SingleFileUpload) fileUpload))));
        progressBar.setLabelClass(Styles.getCSSClass(context, progressBar, progressBar.getLabelStyle(), StyleGroup.regularStyleGroup(), progressBar.getLabelClass(), "o_s_file_upload_progress_label"));
        progressBar.encodeAll(context);
View Full Code Here

Examples of org.pokenet.client.ui.base.ProgressBar

      m_pokeIcon[i] = new Label();
      m_pokeBall[i] = new Label();
      m_pokeName[i] = new Label();

      m_level[i] = new Label();
      m_hp[i] = new ProgressBar(0, 0);
      m_hp[i].setForeground(Color.green);

      m_pokeIcon[i].setSize(32, 32);

      m_pokeName[i].pack();
View Full Code Here

Examples of org.pokenet.client.ui.base.ProgressBar

    for (int i = 0; i < 6; i++) {
      m_pokeIcon[i] = new ToggleButton();
      m_pokeName[i] = new Label();

      m_level[i] = new Label();
      m_hp[i] = new ProgressBar(0, 0);
      m_hp[i].setForeground(Color.green);

      final int j = i;
      m_pokeIcon[i].addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
View Full Code Here

Examples of org.spiffyui.client.widgets.ProgressBar

    private void addProgressBar()
    {
        /*
         * Add a progress bar to our page
         */
        ProgressBar bar = new ProgressBar("WidgetsPanelProgressBar");
        bar.setValue(65);
        addToSlidingGrid(bar, "WidgetsProgressSpan", Index.getStrings().progressBar(), STRINGS.ProgressBar_html());
    }
View Full Code Here

Examples of org.wicketstuff.progressbar.ProgressBar

    public GrabTweetsDialog(String id, String user) {
        super(id);

        this.userName = user;
        final Form form = new Form("grabForm");
        final ProgressBar bar = new ProgressBar("bar", new ProgressionModel() {

            @Override
            protected Progression getProgression() {
                if (pkg == null)
                    return new Progression(0);

                return new Progression(pkg.getProgress());
            }
        }) {

            @Override
            protected void onFinished(AjaxRequestTarget target) {
                logger.info("finished: " + pkg.getProgress() + " canceled:" + pkg.isCanceled());

                if (pkg.getException() != null) {
                    logger.error("Error while storing archive", pkg.getException());
                    String msg = TwitterSearch.getMessage(pkg.getException());
                    if (msg.length() > 0)
                        error(msg);
                    else
                        error("Couldn't process your request. Please contact admin "
                                + "or twitter.com/jetwick if problem remains!");
                } else
                    info(grabber.getTweetCount() + " tweets were stored for " + grabber.getUserName()
                            + ". In approx. 5min they will be searchable.");

                GrabTweetsDialog.this.updateAfterAjax(target);
                GrabTweetsDialog.this.onClose(target);
                started = false;
            }
        };
        form.add(bar);
        form.add(new AjaxSubmitLink("ajaxSubmit") {

            @Override
            protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
                if (!started) {
                    started = true;
                    bar.start(target);
                    final String userName = getUsername();
                    if (getMaxTweets() > 0) {
                        grabber.setUserName(userName);
                        grabber.setTweetsCount(getMaxTweets());
                        grabber.setTwitterSearch(getTwitterSearch());
View Full Code Here

Examples of org.xith3d.ui.hud.widgets.ProgressBar

       
        genomeLabel = new Label(panel.getWidth(), panel.getHeight());
        panel.addWidget(genomeLabel, 6f, 6f);
       
        panel.addWidget(new Label(panel.getResX() - 20f, 30f, "Food level :"), 6f, 71f);
        foodBar = new ProgressBar(panel.getResX() - 20f, 30f);
        foodBar.setMinValue(0);
        foodBar.setMaxValue(100);
        panel.addWidget(foodBar, 6f, 92f);
       
        action = new Label(panel.getResX() - 20f, 30f, "Action :");
View Full Code Here

Examples of transfer.ui.bar.ProgressBar

  public TransferTableEntry(AbstractFileTransfer transfer)
  {
    this.transfer = transfer;
    this.transfer.addListener(this);

    progressBar = new ProgressBar(transfer.getFile().getLength());

    completedSize = transfer.getCompletedSize();
    progressBar.setProgress(completedSize);
  }
View Full Code Here

Examples of versusSNP.gui.widgets.ProgressBar

  public void run() {
    boolean createProgressBar = false;
    if (progressBar == null)
      createProgressBar = true;
    if (createProgressBar)
      progressBar = new ProgressBar(UICaption.progress_caption_load_fasta, UICaption.progress_label_load_fasta, true);
    progressBar.setVisible(true);
    if (readFile(path, genome)) {
      genome.attachSequences(sequences);
    }
    if (createProgressBar)
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.