Examples of addStyleName()


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

    @Override
    protected void init(VaadinRequest request) {
        CssLayout container = new CssLayout();
        // Needed in order for contained components to size properly
        container.setWidth("100%");
        container.addStyleName("container");
        setContent(container);

        typography(container);
        tables(container);
        forms(container);
View Full Code Here

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

        row.addComponent(date);

        date = new DateField("Error, borderless");
        setDate(date);
        date.setComponentError(new UserError("Fix it, now!"));
        date.addStyleName("borderless");
        row.addComponent(date);

        CssLayout group = new CssLayout();
        group.setCaption("Grouped with a Button");
        group.addStyleName("v-component-group");
View Full Code Here

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

                addComponent(createComponentFromPaletteItem("text", ""));
                addComponent(labels);
            } else {

                final DragAndDropWrapper placeholder = new DragAndDropWrapper(l);
                placeholder.addStyleName("placeholder");
                placeholder.setDropHandler(new DropHandler() {

                    @Override
                    public AcceptCriterion getAcceptCriterion() {
                        // return new SourceIsTarget.get());
View Full Code Here

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

                new FlagSeResource());
        main.addComponent(appResourceTest);
        Embedded specialNameResourceTest = new Embedded(
                "Test ApplicationResources with special names",
                new SpecialNameResource());
        specialNameResourceTest.addStyleName("hugeBorder");
        main.addComponent(specialNameResourceTest);

        userInfo.setCaption("User info");
        userInfo.setContentMode(ContentMode.PREFORMATTED);
        main.addComponent(userInfo);
View Full Code Here

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

public class StylePrefix extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        FormLayout layout = new FormLayout();
        layout.addStyleName("mystyle");
        addComponent(layout);
    }

    @Override
    protected String getTestDescription() {
View Full Code Here

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

        gl.addComponent(new Label("Margin-left: 40px"));
        gl.addComponent(new Label("Margin-top: 100px;"));
        gl.addComponent(new Label("Margin-right: 20px;"));
        gl.addComponent(new Label("Margin-bottom: 30px;"));
        gl.addComponent(new Label("label 3"));
        gl.addStyleName("borders");

        layout.addComponent(horiz);
        layout.addComponent(new Label(" "));
        layout.addComponent(vert);
        layout.addComponent(new Label(" "));
View Full Code Here

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

        menuItems.put("forms", "Forms");

        HorizontalLayout top = new HorizontalLayout();
        top.setWidth("100%");
        top.setDefaultComponentAlignment(Alignment.MIDDLE_LEFT);
        top.addStyleName("valo-menu-title");
        menu.addComponent(top);
        menu.addComponent(createThemeSelect());

        Button showMenu = new Button("Menu", new ClickListener() {
            @Override
View Full Code Here

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

        sp = new HorizontalSplitPanel();
        sp.setCaption("Large style");
        sp.setWidth("300px");
        sp.setHeight("200px");
        sp.addStyleName("large");
        sp.setFirstComponent(getContent());
        sp.setSecondComponent(getContent());
        row.addComponent(sp);

        sp2 = new VerticalSplitPanel();
View Full Code Here

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

        layout.setWidth("100%");
        layout.setHeight("100%");

        Image image = new Image();
        image.setSource(new ThemeResource("images/meme.jpg"));
        image.addStyleName("demo-meme");
        layout.addComponent(image);

        return layout;
    }
View Full Code Here

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

    }

    private void typography(CssLayout container) {
        for (int i = 1; i <= 6; i++) {
            Label header = new Label("Bootstrap heading <h" + i + ">");
            header.addStyleName(Bootstrap.Typography.valueOf("H" + i)
                    .styleName());
            container.addComponent(header);
        }

        Label text = new Label(
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.