Package com.vaadin.ui

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


public class ResponsiveLayoutUpdate extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        HorizontalLayout layout = new HorizontalLayout();
        layout.addStyleName("layout-update");
        layout.setWidth("100%");
        setContent(layout);
        Responsive.makeResponsive(layout);

        Label label = new Label(
View Full Code Here


        Label h2 = new Label("Drop Down Button");
        h2.addStyleName("h2");
        addComponent(h2);

        HorizontalLayout wrap = new HorizontalLayout();
        wrap.addStyleName("wrapping");
        wrap.setSpacing(true);
        addComponent(wrap);

        wrap.addComponent(getMenuButton("Normal", false));
View Full Code Here

        h2 = new Label("Split Button");
        h2.addStyleName("h2");
        addComponent(h2);

        wrap = new HorizontalLayout();
        wrap.addStyleName("wrapping");
        wrap.setSpacing(true);
        addComponent(wrap);

        wrap.addComponent(getMenuButton("Normal", true));
View Full Code Here

        mainWindow.addComponent(root);
    }

    private Component createHeader() {
        HorizontalLayout header = new HorizontalLayout();
        header.addStyleName("header-background");
        Label title = new Label("...Title...");
        title.addStyleName("header-title");
        header.addComponent(title);
        Button logout = new Button("Logout");
        logout.addListener(new ClickListener() {
View Full Code Here

        titleLayout.setComponentAlignment(subtitleLabel,
                Alignment.BOTTOM_CENTER);

        // Sequence parts
        HorizontalLayout layout = new HorizontalLayout();
        layout.addStyleName("pexp-main-upper-bar");
        layout.setSpacing(true);
        layout.setWidth("100%");
        layout.setHeight(UPPER_BAR_HEIGHT, Sizeable.Unit.PIXELS);
        layout.addComponent(titleLayout);
        layout.setExpandRatio(titleLayout, 1.0f);
View Full Code Here

        display.setWidth("270px");
        display.setHeight("270px");

        // Add the foreground and background colorpickers to a layout
        HorizontalLayout mainLayout = new HorizontalLayout();
        mainLayout.addStyleName("colorpicker-mainlayout");
        mainLayout.setWidth("100%");
        mainLayout.setHeight(null);
        mainLayout.setMargin(true);
        mainLayout.setSpacing(true);
        getLayout().addComponent(mainLayout);
View Full Code Here

        controls.setSpacing(true);
        root.addComponent(controls);

        // Layout controls
        HorizontalLayout layout = new HorizontalLayout();
        layout.addStyleName("fieldset");
        layout.setSpacing(true);
        controls.addComponent(layout);
        layout.addComponent(new Label("Layout"));

        ArrayList<String> sizes = new ArrayList<String>();
View Full Code Here

        spacing.setImmediate(true);
        layout.addComponent(spacing);

        // Cell controls
        HorizontalLayout cell = new HorizontalLayout();
        cell.addStyleName("fieldset");
        cell.setSpacing(true);
        controls.addComponent(cell);
        cell.addComponent(new Label("Cell"));

        ArrayList<Alignment> alignments = new ArrayList<Alignment>();
View Full Code Here

        });
        cell.addComponent(expand);

        // Component controls
        HorizontalLayout component = new HorizontalLayout();
        component.addStyleName("fieldset");
        component.setSpacing(true);
        root.addComponent(component);
        component.addComponent(new Label("Component"));

        sizes = new ArrayList<String>();
View Full Code Here

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

        HorizontalLayout row = new HorizontalLayout();
        row.addStyleName("wrapping");
        row.setSpacing(true);
        addComponent(row);

        PopupView pv = new PopupView(new Content() {
            @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.