Package com.vaadin.ui

Examples of com.vaadin.ui.Label.addStyleName()


        HorizontalLayout info = new HorizontalLayout();
        info.setSpacing(true);
        info.setMargin(true);
        addComponent(info);
        final Label startLbl = new Label();
        startLbl.addStyleName("start");
        info.addComponent(startLbl);

        final Label endLbl = new Label();
        endLbl.addStyleName("end");
        info.addComponent(endLbl);
View Full Code Here


        final Label startLbl = new Label();
        startLbl.addStyleName("start");
        info.addComponent(startLbl);

        final Label endLbl = new Label();
        endLbl.addStyleName("end");
        info.addComponent(endLbl);

        BasicEventProvider provider = new BasicEventProvider();
        provider.addEvent(basicEvent);
        calendar.setEventProvider(provider);
View Full Code Here

        HorizontalLayout header = new HorizontalLayout();
        header.setSpacing(true);
        root.addComponent(header);

        Label title = new Label("BoxLayout Test");
        title.addStyleName(Reindeer.LABEL_H1);
        header.addComponent(title);

        final CheckBox vertical = new CheckBox("Vertical", !horizontal);
        vertical.setImmediate(true);
        vertical.addListener(new ValueChangeListener() {
View Full Code Here

    }

    @Override
    public void menuSelected(MenuItem selectedItem) {
        Label label = new Label("action result");
        label.addStyleName("action-result");
        addComponent(label);
    }

}
View Full Code Here

    protected void setup() {
        VerticalLayout vl = new VerticalLayout();

        Label lbl = new Label("A label");
        lbl.setStyleName("my-label");
        lbl.addStyleName("my-second-label");
        vl.addComponent(lbl);

        Button btn = new Button("A Button");
        btn.setStyleName("my-button");
        btn.addStyleName("my-second-button");
View Full Code Here

        HorizontalLayout hl = new HorizontalLayout();

        lbl = new Label("A label");
        lbl.setStyleName("my-label");
        lbl.addStyleName("my-second-label");
        hl.addComponent(lbl);

        btn = new Button("A Button");
        btn.setStyleName("my-button");
        btn.addStyleName("my-second-button");
View Full Code Here

    public Forms() {
        setSpacing(true);
        setMargin(true);

        Label title = new Label("Forms");
        title.addStyleName("h1");
        addComponent(title);

        final FormLayout form = new FormLayout();
        form.setMargin(false);
        form.setWidth("800px");
View Full Code Here

        form.setWidth("800px");
        form.addStyleName("light");
        addComponent(form);

        Label section = new Label("Personal Info");
        section.addStyleName("h2");
        section.addStyleName("colored");
        form.addComponent(section);
        StringGenerator sg = new StringGenerator();

        TextField name = new TextField("Name");
View Full Code Here

        form.addStyleName("light");
        addComponent(form);

        Label section = new Label("Personal Info");
        section.addStyleName("h2");
        section.addStyleName("colored");
        form.addComponent(section);
        StringGenerator sg = new StringGenerator();

        TextField name = new TextField("Name");
        name.setValue(sg.nextString(true) + " " + sg.nextString(true));
View Full Code Here

        sex.select("Male");
        sex.addStyleName("horizontal");
        form.addComponent(sex);

        section = new Label("Contact Info");
        section.addStyleName("h3");
        section.addStyleName("colored");
        form.addComponent(section);

        TextField email = new TextField("Email");
        email.setValue(sg.nextString(false) + "@" + sg.nextString(false)
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.