Package com.vaadin.ui

Examples of com.vaadin.ui.ProgressIndicator


        return c;
    }

    /** Create new ProgressIndicator and add it to current component container. */
    public ProgressIndicator progressindicator() {
        ProgressIndicator c = new ProgressIndicator();
        c.setImmediate(true);
        add(c);
        return c;
    }
View Full Code Here


    /**
     * Create new ProgressIndicator with given caption and add it to current
     * component container.
     */
    public ProgressIndicator progressindicator(String caption) {
        ProgressIndicator c = progressindicator();
        c.setCaption(caption);
        return c;
    }
View Full Code Here

    }

    /** Create new ProgressIndicator with given caption and listener. */
    public ProgressIndicator progressindicator(String caption,
            Property.ValueChangeListener changeListener) {
        ProgressIndicator c = progressindicator(caption);
        c.addListener(changeListener);
        return c;
    }
View Full Code Here

        final LegacyWindow main = new LegacyWindow("Hello window");
        setMainWindow(main);

        setTheme("tests-tickets");

        ProgressIndicator pi = new ProgressIndicator();
        pi.setCaption("Visible");
        pi.setIndeterminate(false);
        pi.setValue(new Float(0.5));
        main.addComponent(pi);

        pi = new ProgressIndicator();
        pi.setCaption("Visible (indeterminate)");
        pi.setIndeterminate(true);

        main.addComponent(pi);

        main.addComponent(pi);

        pi = new ProgressIndicator();
        pi.setCaption("Visible (indeterminate, with .redborder css)");
        pi.addStyleName("redborder");
        pi.setIndeterminate(true);

        main.addComponent(pi);

        pi = new ProgressIndicator();
        pi.setCaption("Disabled ");
        pi.setEnabled(false);
        pi.setIndeterminate(true);

        main.addComponent(pi);

        pi = new ProgressIndicator();

        pi.setCaption("Hidden (via css)");

        pi.addStyleName("dispnone");

        main.addComponent(pi);

    }
View Full Code Here

        m_targetsPanel.setLeftTable(m_distributionsPanel);
        m_targetsPanel.setRightTable(null);

        m_grid.setRowExpandRatio(2, 1.0f);

        m_progress = new ProgressIndicator(0f);
        m_progress.setStyleName("invisible");
        m_progress.setPollingInterval(500);

        m_grid.addComponent(m_progress, 0, 3);
View Full Code Here

        m_statusLine = new StatusLine();

        m_grid.addComponent(m_statusLine, 0, 3, 2, 3);

        m_progress = new ProgressIndicator(0f);
        m_progress.setStyleName("invisible");
        m_progress.setIndeterminate(false);
        m_progress.setPollingInterval(1000);

        m_grid.addComponent(m_progress, 3, 3);
View Full Code Here

    // Create the indicator
    // this is used for a simple poll mechanism
    // so that manual server-side starting/stopping of bundles has a direct
    // effect on the client UI
    ProgressIndicator indicator = new ProgressIndicator();
    // Set polling frequency to 1 seconds.
    indicator.setPollingInterval(1000);
    // Add it to Application's main window
    main.addComponent(indicator);
    // Hide the component does not work...
    indicator.setWidth("1px");
    indicator.setHeight("1px");
    indicator.setVisible(true);

    initialized = true;
  }
View Full Code Here

        m_grid.addComponent(m_targetsPanel, 3, 2);
        m_grid.addComponent(createAddTargetButton(main), 3, 1);
       
        m_grid.setRowExpandRatio(2, 1.0f);
       
        ProgressIndicator progress = new ProgressIndicator(0f);
        progress.setPollingInterval(500);
        m_grid.addComponent(progress, 0, 3);

        m_artifactsPanel.addListener(m_associations.createSelectionListener(m_artifactsPanel, m_artifactRepository, new Class[] {}, new Class[] { GroupObject.class, LicenseObject.class, GatewayObject.class }, new Table[] { m_featuresPanel, m_distributionsPanel, m_targetsPanel }));
        m_featuresPanel.addListener(m_associations.createSelectionListener(m_featuresPanel, m_featureRepository, new Class[] { ArtifactObject.class }, new Class[] { LicenseObject.class, GatewayObject.class }, new Table[] { m_artifactsPanel, m_distributionsPanel, m_targetsPanel }));
        m_distributionsPanel.addListener(m_associations.createSelectionListener(m_distributionsPanel, m_distributionRepository, new Class[] { GroupObject.class, ArtifactObject.class }, new Class[] { GatewayObject.class }, new Table[] { m_artifactsPanel, m_featuresPanel, m_targetsPanel }));
View Full Code Here

  // File upload event handling -------------------------------------------------------------------
 
  public void uploadStarted(StartedEvent event) {
    removeAllComponents(); // Visible components are replaced by a progress bar
   
    this.progressIndicator = new ProgressIndicator();
    progressIndicator.setPollingInterval(500);
    addComponent(progressIndicator);
    setComponentAlignment(progressIndicator, Alignment.MIDDLE_CENTER);
   
    for (StartedListener startedListener : startedListeners) {
View Full Code Here

        initComponent();
    }

    private void initComponent() {
        progressIndicator = new ProgressIndicator();
        progressIndicator.setPollingInterval(100);
        progressIndicator.setSizeFull();
        resetAndHideProgressIndicator();

        upload = new Upload(null, this);
View Full Code Here

TOP

Related Classes of com.vaadin.ui.ProgressIndicator

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.