Package org.eclipse.swt.widgets

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


        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

    });

    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

    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

        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

        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

    workLabel = new Label(shell, SWT.WRAP);
    workLabel.setText("[NO.1][2008-10-10 12:11:23.214]loginAction");
    workLabel.setBounds(16, 60, 412, 16);

    ProgressBar progressBar = new ProgressBar(shell, SWT.HORIZONTAL|SWT.INDETERMINATE);
    progressBar.setBounds(16, 80, 412, 16);

    backButton = new Button(shell, SWT.PUSH);
    backButton.setText("后台运行");
    backButton.setBounds(264, 110, 80, 24);
    backButton.addSelectionListener(new SelectionAdapter() {
View Full Code Here

        final Display display = new Display();
        final Image image = new Image(display,
                Viewer.class.getResourceAsStream("DataBrowserSplash.jpg"));
        final Shell splash = new Shell(SWT.ON_TOP);
        final ProgressBar bar = new ProgressBar(splash, SWT.NONE);
        bar.setMaximum(10);
        Label label = new Label(splash, SWT.NONE);
        label.setImage(image);
        FormLayout layout = new FormLayout();
        splash.setLayout(layout);
        FormData labelData = new FormData();
        labelData.right = new FormAttachment(100, 0);
        labelData.bottom = new FormAttachment(100, 0);
        label.setLayoutData(labelData);
        FormData progressData = new FormData();
        progressData.left = new FormAttachment(0, 5);
        progressData.right = new FormAttachment(100, -5);
        progressData.bottom = new FormAttachment(100, -5);
        bar.setLayoutData(progressData);
        splash.pack();
        // dual screen detection over 21 inches 1600 pixel
        Rectangle splashRect = splash.getBounds();
        Rectangle displayRect = oneScreenBound();
        int x = (displayRect.width - splashRect.width) / 2;
        int y = (displayRect.height - splashRect.height) / 2;
        splash.setLocation(x, y);
        splash.open();
        display.asyncExec(new Runnable() {
            public void run() {
                try {
                    Shell shell = new Shell(display);
                    bar.setSelection(1);
                    Thread.sleep(500);
                    shell.setLayout(new FillLayout());
                    bar.setSelection(2);
                    Thread.sleep(500);
                    Rectangle displayRect = oneScreenBound();
                    shell.setSize(displayRect.width, displayRect.height);
                    shell.setLocation(0, 0);
                    bar.setSelection(3);
                    Thread.sleep(500);
                    shell.setSize(1280, 1024);
                    bar.setSelection(4);
                    Thread.sleep(500);
                    new DatasetViewer(shell, SWT.NONE);
                    bar.setSelection(8);
                    Thread.sleep(1000);
                    shell.open();
                    bar.setSelection(9);
                    Thread.sleep(500);
                    bar.setSelection(10);
                    Thread.sleep(500);
                    splash.close();
                    image.dispose();
                }
                catch (InterruptedException e) {
View Full Code Here

      public void widgetSelected(SelectionEvent e){
        viewer.goAddress();
      }     
    });   
  
    progressBar = new ProgressBar(liveSash, SWT.NONE);
   
    liveSash.setMaximizedControl(cboAddress);
   
    butRefresh = resources.createIcon(this,
        resources.getImageRefesh(), resources.getTextRefesh(), new HyperlinkAdapter(){   
View Full Code Here

    return shell;
 
 
 
  public ProgressBar createProgress(Composite composite, GridData gridData){
    ProgressBar progressBar =  new ProgressBar(composite, SWT.HORIZONTAL);  
    progressBar.setBackground(UIDATA.BCOLOR);
    progressBar.setForeground(UIDATA.PROGRESS_COLOR);
    progressBar.setLayoutData(gridData);
    return progressBar;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.ProgressBar

Copyright © 2018 www.massapicom. 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.