Package com.vaadin.ui

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


        lo.setHeight("250px");

        t = getTestTable(4, 50);
        t.setSizeFull();
        lo.setCaption("Fullsize table insize 400x250px layout");
        lo.addComponent(t);
        main.addComponent(lo);

        // t = new Table("Empty table");
        // main.addComponent(t);
View Full Code Here


    public LoginView(final Navigator navigator,
            final String fragmentAndParameters) {
        Layout layout = new VerticalLayout();

        final TextField email = new TextField("Email");
        layout.addComponent(email);

        final PasswordField password = new PasswordField("Password");
        layout.addComponent(password);

        final Button login = new Button("Login", new Button.ClickListener() {
View Full Code Here

        final TextField email = new TextField("Email");
        layout.addComponent(email);

        final PasswordField password = new PasswordField("Password");
        layout.addComponent(password);

        final Button login = new Button("Login", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                Notification.show("Ok, let's pretend you're " + email);
View Full Code Here

                // navigate back to the intended place
                navigator.navigateTo(fragmentAndParameters);
            }
        });
        layout.addComponent(login);
        setContent(layout);

    }

    @Override
View Full Code Here

public class SassyUI extends UI {
    @Override
    public void init(VaadinRequest request) {
        Button b = new Button("Reindeer");
        Layout layout = new VerticalLayout();
        layout.addComponent(b);

        b = new Button("important");
        b.addStyleName("important");
        layout.addComponent(b);
View Full Code Here

        Layout layout = new VerticalLayout();
        layout.addComponent(b);

        b = new Button("important");
        b.addStyleName("important");
        layout.addComponent(b);

        b = new Button("More important");
        b.setPrimaryStyleName("my-button");
        layout.addComponent(b);
View Full Code Here

        b.addStyleName("important");
        layout.addComponent(b);

        b = new Button("More important");
        b.setPrimaryStyleName("my-button");
        layout.addComponent(b);

        setContent(layout);
    }
}
View Full Code Here

        this.navigator = navigator;
        Layout layout = new VerticalLayout();

        date = new InlineDateField("Birth date");
        date.setImmediate(true);
        layout.addComponent(date);
        // pretend we have a datasource:
        date.setPropertyDataSource(new ObjectProperty<Date>(new Date()));
        date.setBuffered(true);
        // show buttons when date is changed
        date.addValueChangeListener(new ValueChangeListener() {
View Full Code Here

                date.commit();
                hideOrShowButtons();
                processPendingView();
            }
        });
        layout.addComponent(apply);

        // Discard the TextField changes when "Cancel" is clicked
        cancel = new Button("Cancel", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
View Full Code Here

                hideOrShowButtons();
                processPendingView();
            }
        });
        cancel.setStyleName(Reindeer.BUTTON_LINK);
        layout.addComponent(cancel);

        // attach a listener so that we'll get asked isViewChangeAllowed?
        navigator.addViewChangeListener(new ViewChangeListener() {
            @Override
            public boolean beforeViewChange(ViewChangeEvent event) {
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.