Examples of ProgressBar


Examples of org.eclipse.swt.widgets.ProgressBar

        if (SchedulerTableItem.this.started) {
          if (SchedulerTableItem.this.progressBar != null)
            SchedulerTableItem.this.progressBar.dispose();
          if (SchedulerTableItem.this.isWorkTrackable || SchedulerTableItem.this.done) {
            SchedulerTableItem.this.progressBar = new ProgressBar(table, SWT.NONE);
            SchedulerTableItem.this.progressBar.setSelection(
              SchedulerTableItem.this.progressSelection);
          } else {
            SchedulerTableItem.this.progressBar =
              new ProgressBar(table, SWT.INDETERMINATE);
          }
        } else {
          SchedulerTableItem.this.progressBar = new ProgressBar(table, SWT.NONE);
        }

        SchedulerTableItem.this.tableEditor = new TableEditor(table);
        SchedulerTableItem.this.tableEditor.grabHorizontal = true;
        SchedulerTableItem.this.tableEditor.grabVertical = true;
View Full Code Here

Examples of org.eclipse.swt.widgets.ProgressBar

        SchedulerTableItem.this.isWorkTrackable = true;
        guiRun(new Runnable() {
          public void run() {
            Table table = (Table) progressBar.getParent();
            SchedulerTableItem.this.progressBar.dispose();
            SchedulerTableItem.this.progressBar = new ProgressBar(table, SWT.NONE);
            SchedulerTableItem.this.progressBar.setSelection(progressBar.getMinimum());
            SchedulerTableItem.this.tableEditor = new TableEditor(table);
            SchedulerTableItem.this.tableEditor.grabHorizontal = true;
            SchedulerTableItem.this.tableEditor.grabVertical = true;
            SchedulerTableItem.this.tableEditor.setEditor(
View Full Code Here

Examples of org.eclipse.swt.widgets.ProgressBar

    });

    progressLabel = new Label(filteredLinksComposite, SWT.NONE);
    progressLabel.setText("progress:");

    progressBar = new ProgressBar(filteredLinksComposite, SWT.NONE);
    gridData = new GridData();
    gridData.horizontalSpan = 4;
    gridData.horizontalAlignment = SWT.FILL;
    progressBar.setLayoutData(gridData);
    updateLists(true);
View Full Code Here

Examples of org.eclipse.swt.widgets.ProgressBar

    unitLabel.setToolTipText("the expected unit for the value");

    progressLabel = new Label(composite, SWT.NONE);
    progressLabel.setText("progress:");

    progressBar = new ProgressBar(composite, SWT.INDETERMINATE);
    gridData = new GridData();
    gridData.horizontalSpan = 1;
    gridData.horizontalAlignment = SWT.FILL;
    progressBar.setLayoutData(gridData);
    progressBar.setToolTipText("the current progress of the search");
View Full Code Here

Examples of org.eclipse.swt.widgets.ProgressBar

        statusTextLData.left = new FormAttachment(0, 100, 5);
        statusTextLData.right = new FormAttachment(100, 100, -5);
        statusTextLData.bottom = new FormAttachment(100, 100, -28);
        statusTextCLabel.setLayoutData(statusTextLData);

        progressBar = new ProgressBar(this, SWT.NONE);
        FormData progressBarLData = new FormData();
        progressBarLData.height = 25;
        progressBarLData.left = new FormAttachment(0, 100, 5);
        progressBarLData.right = new FormAttachment(100, 100, -100);
        progressBarLData.bottom= new FormAttachment(100, 100, -2);
View Full Code Here

Examples of org.eclipse.swt.widgets.ProgressBar

        for(int i=0; i < 2; i++) {
            final AbstractSplash splash = new AbstractSplash(Display.getDefault(), fileLocation) {
                private ProgressBar progressBar;

                @Override public void initializeComponents() {
                    progressBar = new ProgressBar(this, SWT.NONE);
                    FormData progressBarFormData = new FormData(25,25);
                    progressBarFormData.left = new FormAttachment(0,100,5);
                    progressBarFormData.right = new FormAttachment(100,100,-5);
                    progressBarFormData.bottom = new FormAttachment(100,100,-5);
                    progressBar.setLayoutData(progressBarFormData);
View Full Code Here

Examples of org.exist.util.ProgressBar

            final Long2ObjectHashMap<Loggable> txnsStarted = new Long2ObjectHashMap<Loggable>();
            Checkpoint lastCheckpoint = null;
            long lastLsn = Lsn.LSN_INVALID;
                  Loggable next;
                  try {
            final ProgressBar progress = new ProgressBar("Scanning journal ", last.length());
                while ((next = reader.nextEntry()) != null) {
//                          LOG.debug(next.dump());
              progress.set(Lsn.getOffset(next.getLsn()));
              if (next.getLogType() == LogEntryTypes.TXN_START) {
                        // new transaction starts: add it to the transactions table
                        txnsStarted.put(next.getTransactionId(), next);
                    } else if (next.getLogType() == LogEntryTypes.TXN_ABORT) {
                      // transaction aborted: remove it from the transactions table
View Full Code Here

Examples of org.odlabs.wiquery.ui.progressbar.ProgressBar

 
  public ProgressBarPanel(String id) {
    super(id);
   
    // Indeterminate progress bar
    final ProgressBar indeterminateProgressBar = new ProgressBar("indeterminateProgressBar");
    indeterminateProgressBar.setValue(false);
    indeterminateProgressBar.setMax(50);
    add(indeterminateProgressBar);
   
    // Classic progress bar
    final ProgressBar classicProgressBar = new ProgressBar("classicProgressBar");
    classicProgressBar.setValue(10);
    classicProgressBar.setMax(20);
    classicProgressBar.setChangeEvent(JsScopeUiEvent.quickScope(indeterminateProgressBar.increment()));
    classicProgressBar.setCompleteEvent(JsScopeUiEvent.quickScope(indeterminateProgressBar.disable()));
    add(classicProgressBar);
   
    // Increment link
    final AjaxLink<Void> incrementLink = new AjaxLink<Void>("incrementLink") {
      private static final long serialVersionUID = 1L;

      @Override
      public void onClick(AjaxRequestTarget target) {
        target.appendJavaScript(classicProgressBar.increment().render());
      }
    };
    add(incrementLink);
   
    // Decrement link
    final AjaxLink<Void> decrementLink = new AjaxLink<Void>("decrementLink") {
      private static final long serialVersionUID = 1L;

      @Override
      public void onClick(AjaxRequestTarget target) {
        target.appendJavaScript(classicProgressBar.decrement().render());
      }
    };
    add(decrementLink);
  }
View Full Code Here

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

    targetArea = formFactory.addTextAreaElement("targetArea", "edit.targetArea", -1, 1, -1, true, null, this.flc);
    // Add annotation box
    annotationArea = formFactory.addTextAreaElement("annotationArea", "edit.annotationArea", -1, 1, -1, true, null, this.flc);
    // Add progress bar
    // init with values
    progressBarBundle = new ProgressBar("progressBarBundle", 200, 1, bundlesList.size(), translate("generic.bundles"));
    progressBarBundle.setPercentagesEnabled(false);
    this.flc.put("progressBarBundle", progressBarBundle);
    progressBarKey = new ProgressBar("progressBarKey", 200, 1, keysList.size(), translate("generic.keys"));
    progressBarKey.setPercentagesEnabled(false);
    this.flc.put("progressBarKey", progressBarKey);
    // Add navigation buttons
    previousLink = new FormLinkImpl("previousLink", "previousLink", "edit.button.previous", Link.BUTTON);
    formLayout.add(previousLink);
View Full Code Here

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

      this.flc.contextPut("targetLangKey", targetLocale.toString());
    }
    targetLangSelection.addActionListener(this, FormEvent.ONCHANGE);
    // Add progress bar as normal component (not a form element)
    int bundlesCount = i18nMgr.countBundles(null, true);
    progressBar = new ProgressBar("progressBar", 200, 0, 0, translate("start.progressBar.unitLabel", bundlesCount + ""));
    this.flc.put("progressBar", progressBar);
  }
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.