Examples of ProgressIndicator


Examples of com.vaadin.ui.ProgressIndicator

    protected void setup() {
        final VerticalLayout lo = new VerticalLayout();

        addComponent(lo);

        final ProgressIndicator pi = new ProgressIndicator();
        pi.setPollingInterval(400);
        lo.addComponent(pi);

        Button hideProgressIndicator = new Button("Hide progress indicator",
                new ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        pi.setVisible(!pi.isVisible());
                        event.getButton().setCaption(
                                (pi.isVisible() ? "Hide" : "Show")
                                        + " progress indicator");

                    }
                });
        addComponent(hideProgressIndicator);

        Button disableProgressIndicator = new Button(
                "Disable progress indicator", new ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        pi.setEnabled(!pi.isEnabled());
                        event.getButton().setCaption(
                                (pi.isEnabled() ? "Disable" : "Enable")
                                        + " progress indicator");

                    }
                });

        addComponent(disableProgressIndicator);
        Button removeProgressIndicator = new Button(
                "Remove progress indicator", new ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        if (pi.getParent() != null) {
                            lo.removeComponent(pi);
                            event.getButton().setCaption(
                                    "Add progress indicator");
                        } else {
                            lo.addComponent(pi);
View Full Code Here

Examples of com.vaadin.ui.ProgressIndicator

        output.setCaption("Events:");

        output.setContentMode(ContentMode.HTML);
        addComponent(output);

        ProgressIndicator progressIndicator = new ProgressIndicator();
        addComponent(progressIndicator);
        progressIndicator.setPollingInterval(3000);
    }
View Full Code Here

Examples of com.vaadin.ui.ProgressIndicator

        Slider slider = new Slider(0, 20);
        slider.setWidth("200px");
        slider.setPropertyDataSource(item.getItemProperty("doubleValue"));
        addComponent(slider);

        ProgressIndicator pi = new ProgressIndicator();
        pi.setPollingInterval(60 * 1000);
        pi.setWidth("200px");
        pi.setPropertyDataSource(item.getItemProperty("floatValue"));
        addComponent(pi);
    }
View Full Code Here

Examples of com.vaadin.ui.ProgressIndicator

        setMainWindow(main);

        main.addComponent(new Label("Test the second issue in ticket #1581"));

        time = new Label();
        poller = new ProgressIndicator();
        poller.setPollingInterval(200);
        main.addComponent(time);
        main.addComponent(poller);

        thread = new Thread() {
View Full Code Here

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

Examples of com.vaadin.ui.ProgressIndicator

    /**
     * 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

Examples of com.vaadin.ui.ProgressIndicator

    }

    /** 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

Examples of datafu.linkanalysis.PageRank.ProgressIndicator

      return null;
    }
   
    System.out.println(String.format("Nodes: %d, Edges: %d", graph.nodeCount(), graph.edgeCount()));
   
    ProgressIndicator progressIndicator = getProgressIndicator();
    System.out.println("Finished loading graph.");
    long startTime = System.nanoTime();
    System.out.println("Initializing.");
    try
    {
View Full Code Here

Examples of io.druid.segment.ProgressIndicator

        int lineCount = 0;
        int runningTotalLineCount = 0;
        long startTime = System.currentTimeMillis();

        Set<String> allDimensionNames = Sets.newHashSet();
        final ProgressIndicator progressIndicator = makeProgressIndicator(context);

        for (final Text value : values) {
          context.progress();
          final InputRow inputRow = index.formatRow(parser.parse(value.toString()));
          allDimensionNames.addAll(inputRow.getDimensions());
View Full Code Here

Examples of javafx.scene.control.ProgressIndicator

import javafx.util.StringConverter;

public class ComponentUtil {
 
  public static Node createProgressIndicator(){
    ProgressIndicator indicator = new ProgressIndicator();
    indicator.setMaxHeight(350);
    indicator.setMaxWidth(350);
   
    BorderPane borderPane = new BorderPane();
    BorderPane.setMargin(indicator, new Insets(5));
    borderPane.setCenter(indicator);
    borderPane.setStyle("-fx-background-color: rgba(230,230,230,0.7);");
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.