Package com.vaadin.ui

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


        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)
                + ".com");
View Full Code Here


        period.setWidth("10em");
        wrap.addComponent(period);
        form.addComponent(wrap);

        section = new Label("Additional Info");
        section.addStyleName("h4");
        section.addStyleName("colored");
        form.addComponent(section);

        TextField website = new TextField("Website");
        website.setInputPrompt("http://");
View Full Code Here

        wrap.addComponent(period);
        form.addComponent(wrap);

        section = new Label("Additional Info");
        section.addStyleName("h4");
        section.addStyleName("colored");
        form.addComponent(section);

        TextField website = new TextField("Website");
        website.setInputPrompt("http://");
        website.setWidth("100%");
View Full Code Here

        footer.setDefaultComponentAlignment(Alignment.MIDDLE_LEFT);
        form.addComponent(footer);
        footer.addComponent(edit);

        Label lastModified = new Label("Last modified by you a minute ago");
        lastModified.addStyleName("light");
        footer.addComponent(lastModified);
    }

    @Override
    public void enter(ViewChangeEvent event) {
View Full Code Here

public class PopupViews extends VerticalLayout implements View {
    public PopupViews() {
        setMargin(true);

        Label h1 = new Label("Popup Views");
        h1.addStyleName("h1");
        addComponent(h1);

        HorizontalLayout row = new HorizontalLayout();
        row.addStyleName("wrapping");
        row.setSpacing(true);
View Full Code Here

    public Tabsheets() {
        setMargin(true);

        Label h1 = new Label("Tabs");
        h1.addStyleName("h1");
        addComponent(h1);

        HorizontalLayout wrap = new HorizontalLayout();
        wrap.setSpacing(true);
        wrap.addStyleName("wrapping");
View Full Code Here

        final CheckBox disable = new CheckBox("Disable tabs");
        disable.setImmediate(true);
        wrap.addComponent(disable);

        Label h3 = new Label("Additional Styles");
        h3.addStyleName("h3");
        addComponent(h3);

        wrap = new HorizontalLayout();
        wrap.setSpacing(true);
        wrap.addStyleName("wrapping");
View Full Code Here

public class Trees extends VerticalLayout implements View {
    public Trees() {
        setMargin(true);

        Label h1 = new Label("Trees");
        h1.addStyleName("h1");
        addComponent(h1);

        HorizontalLayout row = new HorizontalLayout();
        row.addStyleName("wrapping");
        row.setSpacing(true);
View Full Code Here

public class ComboBoxes extends VerticalLayout implements View {
    public ComboBoxes() {
        setMargin(true);

        Label h1 = new Label("Combo Boxes");
        h1.addStyleName("h1");
        addComponent(h1);

        HorizontalLayout row = new HorizontalLayout();
        row.addStyleName("wrapping");
        row.setSpacing(true);
View Full Code Here

public class SplitPanels extends VerticalLayout implements View {
    public SplitPanels() {
        setMargin(true);

        Label h1 = new Label("Split Panels");
        h1.addStyleName("h1");
        addComponent(h1);

        addComponent(new Label(
                "Outlines are just to show the areas of the SplitPanels. They are not part of the actual component style."));
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.