Package com.vaadin.ui

Examples of com.vaadin.ui.ProgressIndicator


        // t.refreshRowCache();
        // }
        // });
        // mainWindow.addComponent(button);

        ProgressIndicator pi = new ProgressIndicator();
        pi.setPollingInterval(1000);
        pi.setIndeterminate(true);
        mainWindow.addComponent(pi);

        Thread r = new Thread() {
            @Override
            public void run() {
View Full Code Here


                }
                super.setPositionX(positionX);
            }
        };
        getMainWindow().addWindow(subWindow);
        ProgressIndicator pi = new ProgressIndicator();
        pi.setIndeterminate(true);
        pi.setPollingInterval(delay);
        addComponent(pi);
    }
View Full Code Here

        final OptionGroup optionGroup = new OptionGroup("OptionGroup "
                + count++);
        test(layout, optionGroup);

        final ProgressIndicator pi = new ProgressIndicator();
        test(layout, pi);

        final RichTextArea rta = new RichTextArea();
        test(layout, rta);
View Full Code Here

    @Override
    protected void setup(VaadinRequest request) {

        // Progress indicator for changing the value of the RTA
        ProgressIndicator pi = new ProgressIndicator() {
            {
                registerRpc(new ProgressIndicatorServerRpc() {

                    @Override
                    public void poll() {
                        rta.markAsDirty();
                    }
                });
            }
        };
        pi.setHeight("0px");
        addComponent(pi);

        rta = new RichTextArea();
        rta.setId("rta");
        rta.setImmediate(true);
View Full Code Here

        }
    };

    @Override
    protected void setup(VaadinRequest request) {
        addComponent(new ProgressIndicator() {
            {
                registerRpc(new ProgressIndicatorServerRpc() {
                    @Override
                    public void poll() {
                        // System.out.println("Pausing poll request");
View Full Code Here

        addComponent(new Button("Use ProgressIndicator",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        useComponent(new ProgressIndicator());
                    }
                }));

        addComponent(new Button("Stop background thread",
                new Button.ClickListener() {
View Full Code Here

    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

        output.setCaption("Events:");

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

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

        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

        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

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.