Package com.vaadin.ui

Examples of com.vaadin.ui.GridLayout.addComponent()


        LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
        setMainWindow(w);

        GridLayout gl = new GridLayout(3, 3);
        gl.setSpacing(true);
        gl.addComponent(new Label("Before form"));
        gl.newLine();

        form = new Form(gl);
        form.setItemDataSource(new BeanItem<MyBean>(new MyBean()));
View Full Code Here


        gl.newLine();

        form = new Form(gl);
        form.setItemDataSource(new BeanItem<MyBean>(new MyBean()));

        gl.addComponent(new Label("After form"));

        w.addComponent(form);

        w.addComponent(new Button("new item", new Button.ClickListener() {
View Full Code Here

        root.setContent(content);
        main.addComponent(root);

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

        tf.setImmediate(true);
        content.addComponent(tf);
        tf = new TextField("Disabled");
        tf.setImmediate(true);
        tf.setEnabled(false);
        content.addComponent(tf);

        VerticalLayout oneLayout = new VerticalLayout();
        oneLayout.setMargin(true);
        one.setContent(oneLayout);
View Full Code Here

        VerticalLayout oneLayout = new VerticalLayout();
        oneLayout.setMargin(true);
        one.setContent(oneLayout);

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

        VerticalLayout twoLayout = new VerticalLayout();
        twoLayout.setMargin(true);
        two.setContent(twoLayout);

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

                return f;
            }

        });
        form.setItemDataSource(new BeanItem<MyBean>(new MyBean()));
        content.addComponent(form);

        table = new Table("Enabled");
        table.setPageLength(7);
        table.addContainerProperty("Text", String.class, null);
        for (int i = 0; i < 150; i++) {
View Full Code Here

                return f;
            }

        });
        table.setEditable(true);
        content.addComponent(table);

    }

    private void toggle(Component c) {
        boolean enable = "Disabled".equals(c.getCaption());
View Full Code Here

        GridLayout gl = new GridLayout(3, 2);
        gl.setStyleName("borders");
        gl.setSpacing(true);
        gl.setMargin(true);
        gl.setStyleName("ticket2222");
        gl.addComponent(new Label("Vert spacing: 50px; horiz 20px;"));
        gl.addComponent(new Label("Margin-left: 40px"));
        gl.addComponent(new Label("Margin-top: 100px;"));
        gl.addComponent(new Label("Margin-right: 20px;"));
        gl.addComponent(new Label("Margin-bottom: 30px;"));
        gl.addComponent(new Label("label 3"));
View Full Code Here

        gl.setStyleName("borders");
        gl.setSpacing(true);
        gl.setMargin(true);
        gl.setStyleName("ticket2222");
        gl.addComponent(new Label("Vert spacing: 50px; horiz 20px;"));
        gl.addComponent(new Label("Margin-left: 40px"));
        gl.addComponent(new Label("Margin-top: 100px;"));
        gl.addComponent(new Label("Margin-right: 20px;"));
        gl.addComponent(new Label("Margin-bottom: 30px;"));
        gl.addComponent(new Label("label 3"));
        gl.addStyleName("borders");
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.