Package com.vaadin.ui

Examples of com.vaadin.ui.VerticalLayout


        table.addItem(new Object[] { "Larry", "the Bird", "@twitter" }, "larry");
        return table;
    }

    private void forms(CssLayout container) {
        VerticalLayout form = new VerticalLayout();
        form.addStyleName(Bootstrap.Forms.FORM.styleName());
        form.setSpacing(true);
        form.setCaption("Legend");

        TextField email = new TextField("Email address");
        email.setInputPrompt("Enter email");
        form.addComponent(email);

        PasswordField password = new PasswordField("Password");
        password.setInputPrompt("Password");
        form.addComponent(password);

        Upload upload = new Upload("File input", null);
        form.addComponent(upload);

        Label help = new Label("Example block-level help text here.");
        help.addStyleName("help-block");
        form.addComponent(help);

        CheckBox check = new CheckBox("Check me out");
        form.addComponent(check);

        Button submit = new Button("Submit");
        submit.addStyleName(Bootstrap.Buttons.DEFAULT.styleName());
        form.addComponent(submit);

        container.addComponent(form);
    }
View Full Code Here


    @Override
    protected void init(VaadinRequest request) {
        setPollInterval(300);
        eventBus.subscribe(this);

        layout = new VerticalLayout(
                new Button("Publish UI Event", new Button.ClickListener() {
                    @Override
                    public void buttonClick(Button.ClickEvent event) {
                        eventBus.publish(EventsUI.this, "Hello World from UI");
                    }
View Full Code Here

    @Override
    protected void init(VaadinRequest request) {
        eventBus.subscribe(this);

        layout = new VerticalLayout(
                new Button("Publish UI Event", new Button.ClickListener() {
                    @Override
                    public void buttonClick(Button.ClickEvent event) {
                        eventBus.publish(EventBusUI.this, "Hello World from UI");
                    }
View Full Code Here

public class TableInTabsheet extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        VerticalLayout vPrinc = new VerticalLayout();
        vPrinc.setStyleName(Reindeer.LAYOUT_BLUE);

        vPrinc.addComponent(title());
        vPrinc.addComponent(page());
        vPrinc.addComponent(new Label("Dvlop Tecnologia."));
        setContent(vPrinc);
    }
View Full Code Here

        setContent(vPrinc);
    }

    private VerticalLayout title() {

        VerticalLayout vP = new VerticalLayout();
        vP.setStyleName(Reindeer.LAYOUT_BLACK);
        Label tit = new Label("<h1> Tab/Table Test</h1>", ContentMode.HTML);
        vP.addComponent(tit);
        return vP;

    }
View Full Code Here

    @Override
    public void init() {

        setMainWindow(new LegacyWindow("#1868"));

        VerticalLayout pl = new VerticalLayout();
        pl.setMargin(true);
        Panel p = new Panel(
                "This is a really long caption for the panel, too long in fact!",
                pl);
        p.setWidth("300px");
        p.setHeight("300px");
View Full Code Here

    }

    private VerticalLayout page() {

        VerticalLayout vP = new VerticalLayout();
        vP.setStyleName(Reindeer.LAYOUT_BLUE);
        TabSheet t = new TabSheet();
        t.setWidth(1000, Unit.PIXELS);

        HorizontalLayout hP = new HorizontalLayout();
        t.addTab(Ranking(), "Ranking");
        try {

            t.addTab(GDocs(""), "Dez 2011");
            t.addTab(GDocs(""), "Jan 2012");
            t.addTab(GDocs(""), "Abr 2012");

        } catch (MalformedURLException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        hP.addComponent(t);
        vP.addComponent(hP);
        return vP;

    }
View Full Code Here

        p = new Panel();
        // layout.addComponent(p);
        p.setHeight("400px");

        VerticalLayout col = new VerticalLayout();
        col.setSizeFull();
        col.setSpacing(true);
        // row.setMargin(true);
        col.setDefaultComponentAlignment(Alignment.BOTTOM_CENTER);

        col.addComponents(new Button("Boo"), new InlineDateField(),
                new CheckBox("Far"), new Button("Abc"));

        p.setContent(col);

        TreeTable table = new TreeTable();
View Full Code Here

    }

    private VerticalLayout GDocs(String end) throws MalformedURLException {

        VerticalLayout vT = new VerticalLayout();
        vT.setHeight(500, Unit.PIXELS);
        vT.setWidth(900, Unit.PIXELS);

        return vT;

    }
View Full Code Here

*/
public class ScrollingBodyElementWithModalOpened extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        VerticalLayout verticalLayout = new VerticalLayout();
        verticalLayout.setHeight("10000px");

        Window window = new Window("Caption");

        VerticalLayout layout = new VerticalLayout();
        layout.setWidth("300px");
        layout.setHeight("300px");
        window.setContent(layout);

        addWindow(window);

        window.setModal(true);
View Full Code Here

TOP

Related Classes of com.vaadin.ui.VerticalLayout

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.