Package com.vaadin.ui

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


        title.setSizeUndefined();
        top.addComponent(title);
        top.setExpandRatio(title, 1);

        MenuBar settings = new MenuBar();
        settings.addStyleName("user-menu");
        StringGenerator sg = new StringGenerator();
        MenuItem settingsItem = settings.addItem(
                sg.nextString(true) + " " + sg.nextString(true)
                        + sg.nextString(false), new ThemeResource(
                        "../tests-valo/img/profile-pic-300px.jpg"), null);
View Full Code Here


        menuBar.setCaption("Normal style");
        addComponent(menuBar);

        menuBar = getMenuBar();
        menuBar.setCaption("Small style");
        menuBar.addStyleName("small");
        addComponent(menuBar);

        menuBar = getMenuBar();
        menuBar.setCaption("Borderless style");
        menuBar.addStyleName("borderless");
View Full Code Here

        menuBar.addStyleName("small");
        addComponent(menuBar);

        menuBar = getMenuBar();
        menuBar.setCaption("Borderless style");
        menuBar.addStyleName("borderless");
        addComponent(menuBar);

        menuBar = getMenuBar();
        menuBar.setCaption("Small borderless style");
        menuBar.addStyleName("borderless");
View Full Code Here

        menuBar.addStyleName("borderless");
        addComponent(menuBar);

        menuBar = getMenuBar();
        menuBar.setCaption("Small borderless style");
        menuBar.addStyleName("borderless");
        menuBar.addStyleName("small");
        addComponent(menuBar);

        Label h2 = new Label("Drop Down Button");
        h2.addStyleName("h2");
View Full Code Here

        addComponent(menuBar);

        menuBar = getMenuBar();
        menuBar.setCaption("Small borderless style");
        menuBar.addStyleName("borderless");
        menuBar.addStyleName("small");
        addComponent(menuBar);

        Label h2 = new Label("Drop Down Button");
        h2.addStyleName("h2");
        addComponent(h2);
View Full Code Here

        addComponent(wrap);

        wrap.addComponent(getMenuButton("Normal", false));

        MenuBar split = getMenuButton("Small", false);
        split.addStyleName("small");
        wrap.addComponent(split);

        split = getMenuButton("Borderless", false);
        split.addStyleName("borderless");
        wrap.addComponent(split);
View Full Code Here

        MenuBar split = getMenuButton("Small", false);
        split.addStyleName("small");
        wrap.addComponent(split);

        split = getMenuButton("Borderless", false);
        split.addStyleName("borderless");
        wrap.addComponent(split);

        split = getMenuButton("Themed", false);
        split.addStyleName("color1");
        wrap.addComponent(split);
View Full Code Here

        split = getMenuButton("Borderless", false);
        split.addStyleName("borderless");
        wrap.addComponent(split);

        split = getMenuButton("Themed", false);
        split.addStyleName("color1");
        wrap.addComponent(split);

        split = getMenuButton("Small", false);
        split.addStyleName("color1");
        split.addStyleName("small");
View Full Code Here

        split = getMenuButton("Themed", false);
        split.addStyleName("color1");
        wrap.addComponent(split);

        split = getMenuButton("Small", false);
        split.addStyleName("color1");
        split.addStyleName("small");
        wrap.addComponent(split);

        h2 = new Label("Split Button");
        h2.addStyleName("h2");
View Full Code Here

        split.addStyleName("color1");
        wrap.addComponent(split);

        split = getMenuButton("Small", false);
        split.addStyleName("color1");
        split.addStyleName("small");
        wrap.addComponent(split);

        h2 = new Label("Split Button");
        h2.addStyleName("h2");
        addComponent(h2);
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.