Package com.vaadin.ui

Examples of com.vaadin.ui.LegacyWindow


public class Ticket2232 extends LegacyApplication {

    @Override
    public void init() {
        setMainWindow(new LegacyWindow());
        setTheme("tests-tickets");

        getMainWindow()
                .addComponent(
                        new Label(
View Full Code Here


    private Button b1;
    private Panel panel;

    @Override
    public void init() {
        LegacyWindow w = new LegacyWindow(getClass().getName());
        setMainWindow(w);
        // setTheme("tests-ticket");
        GridLayout layout = new GridLayout(10, 10);
        w.setContent(layout);
        createUI(layout);
    }
View Full Code Here

    Form form;
    Table table;

    @Override
    public void init() {
        LegacyWindow main = new LegacyWindow();
        setMainWindow(main);

        main.addComponent(info);

        HorizontalLayout l = new HorizontalLayout();
        main.addComponent(l);

        l.addComponent(new Button("Toggle root panel",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        toggle(root);
                    }
                }));
        l.addComponent(new Button("Toggle panel one",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        toggle(one);
                    }
                }));
        l.addComponent(new Button("Toggle panel two",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        toggle(two);
                    }
                }));
        l.addComponent(new Button("Toggle form", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                toggle(form);
            }
        }));
        l.addComponent(new Button("Toggle table", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                toggle(table);
            }
        }));

        GridLayout content = new GridLayout(2, 3);
        root.setContent(content);
        main.addComponent(root);

        TextField tf = new TextField("Enabled");
        tf.setImmediate(true);
        content.addComponent(tf);
        tf = new TextField("Disabled");
View Full Code Here

        classes.add(Panel.class);
        classes.add(VerticalSplitPanel.class);
        classes.add(HorizontalSplitPanel.class);
        classes.add(Form.class);

        LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
        setMainWindow(w);
        // setTheme("tests-tickets");
        createUI((AbstractOrderedLayout) w.getContent());
    }
View Full Code Here

public class Ticket2222 extends LegacyApplication {

    @Override
    public void init() {
        LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
        setMainWindow(w);
        setTheme("tests-tickets");
        createUI((AbstractOrderedLayout) w.getContent());
    }
View Full Code Here

    Label l = new Label("0");

    @Override
    public void init() {
        LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
        setMainWindow(w);
        // setTheme("tests-tickets");
        GridLayout gl = new GridLayout(4, 2);

        Button button = new Button("1", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                Button b = event.getButton();
                l.setValue(l.getValue() + b.getCaption());

            }

        });

        gl.addComponent(l, 0, 0, 3, 0);
        gl.addComponent(button);
        gl.addComponent(new Label("2"));
        gl.addComponent(new Label("3"));
        gl.addComponent(new Label("4"));

        w.setContent(gl);

    }
View Full Code Here

public class Ticket1940 extends LegacyApplication {

    @Override
    public void init() {
        final LegacyWindow w = new LegacyWindow(getClass().getName());
        setMainWindow(w);

        final VerticalLayout l = new VerticalLayout();
        l.setWidth("200px");
        l.setHeight(null);
        TextField t = new TextField();
        l.addComponent(t);
        t.setRequired(true);
        w.addComponent(l);

    }
View Full Code Here

public class Ticket2296 extends LegacyApplication {

    @Override
    public void init() {
        LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
        setMainWindow(w);
        setTheme("tests-tickets");
        CustomLayout cl = new CustomLayout("Ticket2296");
        cl.setSizeFull();
        Button b = new Button("100%x100% button");
        b.setSizeFull();
        cl.addComponent(b, "button1");

        b = new Button("100%x100% button");
        b.setSizeFull();
        cl.addComponent(b, "button2");

        b = new Button("50%x50% button");
        b.setWidth("50%");
        b.setHeight("50%");
        cl.addComponent(b, "button3");

        w.setContent(cl);
    }
View Full Code Here

    @Override
    public void init() {

        GridLayout lo = new GridLayout(2, 1);
        setMainWindow(new LegacyWindow("#1869", lo));
        lo.setMargin(true);
        lo.setSpacing(true);

        VerticalLayout el = new VerticalLayout();
        Panel elp = new Panel(
View Full Code Here

import com.vaadin.ui.Table;

public class Ticket2341 extends com.vaadin.server.LegacyApplication {
    @Override
    public void init() {
        LegacyWindow main = new LegacyWindow();
        setMainWindow(main);
        constructTables((Layout) main.getContent());
    }
View Full Code Here

TOP

Related Classes of com.vaadin.ui.LegacyWindow

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.