Package com.vaadin.ui

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


        al.setStyleName("borders");
        al.setWidth("300px");
        al.setHeight("500px");
        al.addComponent(new TextField("This is its caption",
                "This is a textfield"), "top: 60px; left: 0px; width: 100px;");
        al.addComponent(new TextField("Another textfield caption",
                "This is another textfield"),
                "top: 120px; left: 20px; width: 100px;");

        al.addComponent(new Button("A button with its own click listener",
                new Button.ClickListener() {
View Full Code Here


                "This is a textfield"), "top: 60px; left: 0px; width: 100px;");
        al.addComponent(new TextField("Another textfield caption",
                "This is another textfield"),
                "top: 120px; left: 20px; width: 100px;");

        al.addComponent(new Button("A button with its own click listener",
                new Button.ClickListener() {

                    @Override
                    public void buttonClick(
                            com.vaadin.ui.Button.ClickEvent event) {
View Full Code Here

        abs.setWidth("100px");
        abs.setHeight("100px");

        Label l = new Label("This should be clipped at 100px");
        l.setSizeUndefined();
        abs.addComponent(l, "top:50px;left:50px");

        Label l2 = new Label("This should not be visible");
        l2.setSizeUndefined();
        abs.addComponent(l2, "top:80px;left:150px");
View Full Code Here

        l.setSizeUndefined();
        abs.addComponent(l, "top:50px;left:50px");

        Label l2 = new Label("This should not be visible");
        l2.setSizeUndefined();
        abs.addComponent(l2, "top:80px;left:150px");

        Label l3 = new Label("This should be clipped vertically at 100px");
        l3.setWidth("50px");
        abs.addComponent(l3, "top:20px;left:0px");
View Full Code Here

        l2.setSizeUndefined();
        abs.addComponent(l2, "top:80px;left:150px");

        Label l3 = new Label("This should be clipped vertically at 100px");
        l3.setWidth("50px");
        abs.addComponent(l3, "top:20px;left:0px");

        addComponent(abs);
    }

    @Override
View Full Code Here

        final Label l = new Label("Top 20, Left 20");
        l.setSizeUndefined();
        l.setId("positionedLabel");
        l.setVisible(false);
        abs.addComponent(l, "top:20px;left:20px");

        final Button action = new Button("Set visible");
        action.addClickListener(new ClickListener() {

            @Override
View Full Code Here

                    action.setCaption("Move down");
                }
            }
        });
        action.setId("actionButton");
        abs.addComponent(action, "top: 70px;left: 150px;");

        addComponent(abs);
    }

    @Override
View Full Code Here

        AbsoluteLayout al = new AbsoluteLayout();

        TextArea ta = new TextArea();
        ta.setValue("When resizing the layout this text area should also get resized");
        ta.setSizeFull();
        al.addComponent(ta, "left: 10px; right: 10px; top: 10px; bottom: 10px;");

        HorizontalSplitPanel horizPanel = new HorizontalSplitPanel();
        horizPanel.setSizeFull();
        horizPanel.setFirstComponent(al);
View Full Code Here

        absoluteLayout.setCaption("comparison table in full size");

        Table table = new Table();
        table.setSizeFull();
        table.setId("comparison-table");
        absoluteLayout.addComponent(table, "top:0;bottom:0;left:0;right:0;");
        return absoluteLayout;
    }

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

        absoluteLayout.setCaption("full-sized table expected");

        Table table = new Table();
        table.setSizeFull();
        table.setId("full-table");
        absoluteLayout.addComponent(table);
        return absoluteLayout;
    }

    /**
     * Creates an {@link AbsoluteLayout} of fixed size that contains a
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.