Package com.vaadin.ui

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


                    String data = (String) dropEvent.getTransferable().getData(
                            "text/plain");
                    if (data == null || "".equals(data)) {
                        data = "-- no Text --";
                    }
                    cssLayout.addComponent(new WrappedLabel(data));

                }

            }
        };
View Full Code Here


            }
        };
        lo.setSizeFull();

        f.setLayout(lo);
        lo.addComponent(l);

        f.getFooter().addComponent(new Button("OK button"));

        getLayout().setSizeFull();
        getLayout().addComponent(f);
View Full Code Here

        final CssLayout cl = new CssLayout();
        cl.setCaption("CSSLayout");
        cl.setStyleName("borders");
        cl.setWidth("300px");
        cl.setHeight("500px");
        cl.addComponent(new TextField("This is its caption",
                "This is a textfield"));
        cl.addComponent(new TextField("Another textfield caption",
                "This is another textfield"));

        cl.addComponent(new Button("A button with its own click listener",
View Full Code Here

                sp.setSecondComponent(folderView);
                folderView.reload();
            }
        });

        l.addComponent(tree1);

        sp.setSecondComponent(FolderView.get(null));

        getLayout().setSizeFull();
        getLayout().addComponent(sp);
View Full Code Here

        cl.setStyleName("borders");
        cl.setWidth("300px");
        cl.setHeight("500px");
        cl.addComponent(new TextField("This is its caption",
                "This is a textfield"));
        cl.addComponent(new TextField("Another textfield caption",
                "This is another textfield"));

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

        cl.addComponent(new TextField("This is its caption",
                "This is a textfield"));
        cl.addComponent(new TextField("Another textfield caption",
                "This is another textfield"));

        cl.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

            }
        };
        cssLayout.setSizeFull();
        Label l = new Label("bö");
        l.setSizeFull();
        cssLayout.addComponent(l);

        sp.addComponent(cssLayout);

        Button button = new Button("b");
        button.addListener(new ClickListener() {
View Full Code Here

        vl.setId("layout" + debugIdCounter++);
        addComponent(vl);

        CssLayout css = new CssLayout();
        css.setCaption("CssLayout");
        css.addComponent(new Label("Some content"));
        css.setId("layout" + debugIdCounter++);
        addComponent(css);

        AbsoluteLayout abs = new AbsoluteLayout();
        abs.setCaption("Abs layout");
View Full Code Here

    protected void setup() {
        final CssLayout pl = new CssLayout();
        final Panel p = new Panel(pl);
        p.setSizeFull();
        p.setHeight("600px");
        pl.addComponent(foo());
        addMore = new Button("Add");
        addMore.addListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                pl.removeComponent(addMore);
View Full Code Here

        addMore = new Button("Add");
        addMore.addListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                pl.removeComponent(addMore);
                pl.addComponent(foo());
                pl.addComponent(addMore);
            }
        });
        pl.addComponent(addMore);
        addComponent(p);
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.