Package com.vaadin.ui

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


        final FormLayout fl = new FormLayout();
        addComponent(fl);

        for (int i = 20; i-- > 0;) {
            fl.addComponent(new TextField());
        }

        final Table table = new Table();
        table.setSelectable(true);
        table.addContainerProperty("item", String.class, "");
View Full Code Here


        table.addContainerProperty("item", String.class, "");
        for (int i = 50; i-- > 0;) {
            table.addItem(new String[] { "item" + i }, i);
        }

        fl.addComponent(table);
    }

    @Override
    protected String getTestDescription() {
        return "Clicking in the Table should not cause the page to scroll";
View Full Code Here

        FormLayout layout = new FormLayout();

        TextField field1 = new TextField("Red style");
        field1.setStyleName("ticket4997-red");
        layout.addComponent(field1);

        TextField field2 = new TextField("Blue style");
        field2.setStyleName("ticket4997-blue");
        layout.addComponent(field2);
View Full Code Here

        field1.setStyleName("ticket4997-red");
        layout.addComponent(field1);

        TextField field2 = new TextField("Blue style");
        field2.setStyleName("ticket4997-blue");
        layout.addComponent(field2);

        TextField field3 = new TextField("Red-Blue style");
        field3.addStyleName("ticket4997-red");
        field3.addStyleName("ticket4997-blue");
        layout.addComponent(field3);
View Full Code Here

        layout.addComponent(field2);

        TextField field3 = new TextField("Red-Blue style");
        field3.addStyleName("ticket4997-red");
        field3.addStyleName("ticket4997-blue");
        layout.addComponent(field3);

        TextField field4 = new TextField("Disabled");
        field4.setEnabled(false);
        field4.addStyleName("foobar"); // no visible change, but points out
        // a regression #5377
View Full Code Here

        TextField field4 = new TextField("Disabled");
        field4.setEnabled(false);
        field4.addStyleName("foobar"); // no visible change, but points out
        // a regression #5377
        layout.addComponent(field4);

        addComponent(layout);
    }

    @Override
View Full Code Here

        final PasswordField passwordField = new PasswordField("Password");
        passwordField.setId("pwd");
        Button login = new Button("login");
        login.setId("loginButton");
        login.setClickShortcut(KeyCode.ENTER);
        formLayout.addComponent(userField);
        formLayout.addComponent(passwordField);
        formLayout.addComponent(login);
        mainWindow.setContent(formLayout);

        login.addListener(new ClickListener() {
View Full Code Here

        passwordField.setId("pwd");
        Button login = new Button("login");
        login.setId("loginButton");
        login.setClickShortcut(KeyCode.ENTER);
        formLayout.addComponent(userField);
        formLayout.addComponent(passwordField);
        formLayout.addComponent(login);
        mainWindow.setContent(formLayout);

        login.addListener(new ClickListener() {
            @Override
View Full Code Here

        Button login = new Button("login");
        login.setId("loginButton");
        login.setClickShortcut(KeyCode.ENTER);
        formLayout.addComponent(userField);
        formLayout.addComponent(passwordField);
        formLayout.addComponent(login);
        mainWindow.setContent(formLayout);

        login.addListener(new ClickListener() {
            @Override
            public void buttonClick(final ClickEvent event) {
View Full Code Here

        FormLayout formLayout = new FormLayout();
        formLayout.setWidth("100%");
        Upload u = new Upload("Upload in FormLayout", this);
        u.setImmediate(true);
        formLayout.addComponent(u);
        addTestComponent(formLayout);

    }

    @Override
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.