Package com.vaadin.ui

Examples of com.vaadin.ui.Label


    public static final String VIEW_NAME = "";

    @PostConstruct
    void init() {
        addComponent(new Label("This is the home view"));
    }
View Full Code Here


    private Label message;

    ErrorView() {
        setMargin(true);
        addComponent(message = new Label());
    }
View Full Code Here

        }
        // initialize table
        this.table = table;
        // if no data show default message
        if (CollectionUtils.isEmpty(data)) {
            addComponent(new Label(NO_RESULTS_CAPTION, ContentMode.TEXT));
        } else {
            // we have data... insert it into table,
            // then define table, column and field presentation properties
            doPopulateGrid(data, table);
        }
View Full Code Here

        setContent(layout);
    }

    @Override
    public void onEvent(org.vaadin.spring.events.Event<Object> event) {
        layout.addComponent(new Label(event.toString()));
    }
View Full Code Here

    if (id.equals(Scheme.FORM.id())) {
      Button signOut = new Button("Sign Out");
      signOut.addClickListener(logoutListener);
      userArea.addComponent(signOut);
    }
    Label loggedInUser = new Label();
    loggedInUser.setValue(username);
    loggedInUser.setSizeUndefined();
    userArea.addComponent(loggedInUser);
    return userArea;
  }
View Full Code Here

public class ErrorView extends VerticalLayout implements View {
    private Label message;

    public ErrorView() {
        setMargin(true);
        addComponent(message = new Label());
    }
View Full Code Here

    @Override
    public void onEvent(final org.vaadin.spring.events.Event<Object> event) {
        getUI().access(new Runnable() {
            @Override
            public void run() {
                layout.addComponent(new Label(event.toString()));
            }
        });
    }
View Full Code Here

        Button b = new Button("Open", new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                Window centered = new Window("A window", new Label(
                        "Centered window"));
                centered.center();
                getMainWindow().addWindow(centered);
            }
        });
        layout.addComponent(b, 0, 0);

        b = new Button("Open", new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                Window centered = new Window("A window", new Label(
                        "Centered window"));
                centered.center();
                getMainWindow().addWindow(centered);
            }
        });
        layout.addComponent(b, 1, 1);

        b = new Button("Open", new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                Window centered = new Window("A window", new Label(
                        "Centered window"));
                centered.center();
                getMainWindow().addWindow(centered);
            }
        });
View Full Code Here

        gl.setSizeUndefined();
        gl.setStyleName("borders");
        getMainWindow().addComponent(gl);
        setTheme("tests-tickets");
        combo = new ComboBox("Combo caption");
        labelLong = new Label(
                "This should stay on one line or to wrap to multiple lines? At leas it should display all the text?. "
                        + "A long label, longer than the combo box. Why doesn't it affect the width? And why is the gridlayout so high?"
                        + "A long label, longer than the combo box. Why doesn't it affect the width? And why is the gridlayout so high?"
                        + "A long label, longer than the combo box. Why doesn't it affect the width? And why is the gridlayout so high?"
                        + "A long label, longer than the combo box. Why doesn't it affect the width? And why is the gridlayout so high?"
View Full Code Here

    Component buildTestMenu() {
        CssLayout menu = new CssLayout();
        menu.addStyleName("large-icons");

        Label logo = new Label("Va");
        logo.setSizeUndefined();
        logo.setPrimaryStyleName("valo-menu-logo");
        menu.addComponent(logo);

        Button b = new Button(
                "Reference <span class=\"valo-menu-badge\">3</span>");
        b.setIcon(FontAwesome.TH_LIST);
View Full Code Here

TOP

Related Classes of com.vaadin.ui.Label

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.