Package com.vaadin.ui

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


        Table table = new Table();
        table.setWidth(50, Unit.PERCENTAGE);
        table.setHeight(50, Unit.PERCENTAGE);
        table.setId("half-table");
        absoluteLayout.addComponent(table);
        return absoluteLayout;
    }

    /**
     * Creates an {@link AbsoluteLayout} of fixed size that contains a
View Full Code Here


        Table table = new Table();
        table.setWidth(50, Unit.PERCENTAGE);
        table.setHeight(50, Unit.PERCENTAGE);
        table.setId("halfwithtiny-table");
        absoluteLayout.addComponent(table);

        Table tableTiny = new Table();
        tableTiny.setWidth(50, Unit.PIXELS);
        tableTiny.setHeight(50, Unit.PIXELS);
        absoluteLayout.addComponent(tableTiny, "right:50;");
View Full Code Here

        absoluteLayout.addComponent(table);

        Table tableTiny = new Table();
        tableTiny.setWidth(50, Unit.PIXELS);
        tableTiny.setHeight(50, Unit.PIXELS);
        absoluteLayout.addComponent(tableTiny, "right:50;");
        return absoluteLayout;
    }

    /**
     * Creates an {@link AbsoluteLayout} of full size that contains a half-sized
View Full Code Here

        Table table = new Table();
        table.setWidth(50, Unit.PERCENTAGE);
        table.setHeight(50, Unit.PERCENTAGE);
        table.setId("halfinfull-table");
        absoluteLayout.addComponent(table);
        return absoluteLayout;
    }

    /**
     * Creates an {@link AbsoluteLayout} of fixed size that contains a
View Full Code Here

        layout.setHeight("500px");

        Label lbl = new Label("Label");
        lbl.setStyleName("my-label");
        lbl.addStyleName("my-second-label");
        layout.addComponent(lbl);

        Button btn = new Button("Button");
        btn.setStyleName("my-button");
        btn.addStyleName("my-second-button");
        layout.addComponent(btn, "top:50px;");
View Full Code Here

        layout.addComponent(lbl);

        Button btn = new Button("Button");
        btn.setStyleName("my-button");
        btn.addStyleName("my-second-button");
        layout.addComponent(btn, "top:50px;");

        addComponent(layout);
    }

    @Override
View Full Code Here

        final Button b = new Button("Add", new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                if (l.getParent() == null) {
                    al.addComponent(l);
                    event.getButton().setCaption("Remove");
                } else {
                    al.removeComponent(l);
                    event.getButton().setCaption("Add");
                }
View Full Code Here

        layout.setPrimaryStyleName("my-absolute-layout");

        Component comp1 = new NativeButton("Child 1");
        comp1.setWidth("100%");
        comp1.setHeight("50px");
        layout.addComponent(comp1);

        addComponent(layout);

        addComponent(new Button("Change primary stylename",
                new Button.ClickListener() {
View Full Code Here

        setTheme("tests-tickets");
        layout.setStyleName("cyan");
        layout.setWidth("1000px");
        layout.setHeight("500px");

        layout.addComponent(new Label("Hello World"));

        Button button = new Button("Centered button,z-index:10;");
        button.setSizeFull();
        layout.addComponent(button,
                "top:40%;bottom:40%;right:20%;left:20%;z-index:10;");
View Full Code Here

        layout.addComponent(new Label("Hello World"));

        Button button = new Button("Centered button,z-index:10;");
        button.setSizeFull();
        layout.addComponent(button,
                "top:40%;bottom:40%;right:20%;left:20%;z-index:10;");

        Label label = new Label(
                "Exotic positioned label. Fullsize, top:100px; left:2cm; right: 3.5in; bottom:12.12mm ");
        label.setStyleName("yellow");
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.