Package com.vaadin.server

Examples of com.vaadin.server.ThemeResource


        GridLayout gl = new GridLayout();
        gl.setWidth("100%");

        Label l = new Label("This is a label");
        l.setCaption("This is its caption, it also has a large icon");
        l.setIcon(new ThemeResource("../runo/icons/64/ok.png"));
        gl.addComponent(l);
        addComponent(gl);
    }
View Full Code Here


            if (++iconCount >= ICONS.size()) {
                iconCount = 0;
            }
            return ICONS.get(iconCount);
        }
        return new ThemeResource("../runo/icons/" + imageSize + "/document.png");
    }
View Full Code Here

            private static final long serialVersionUID = -5042109683675242407L;

            @Override
            public Component generateCell(Table source, Object itemId,
                    Object columnId) {
                Embedded embedded = new Embedded(null, new ThemeResource(
                        "../runo/icons/16/ok.png"));
                return embedded;
            }
        });
View Full Code Here

            item = table.addItem(itemId);
        }
        item.getItemProperty("foo").setValue("foo " + itemId);
        item.getItemProperty("red").setValue("red " + itemId);
        item.getItemProperty("icon").setValue(
                new ThemeResource("../runo/icons/16/ok.png"));
    }
View Full Code Here

@SuppressWarnings("serial")
public class ClaraLogoEmbedded extends Embedded {

    public ClaraLogoEmbedded() {
        super(null, new ThemeResource("clara-logo-180x180.png"));
        // Reduce the size to support retina resolution.
        setHeight("90px");
        setWidth("90px");
    }
View Full Code Here

    public Resource getIcon(ThemeIcon annotation) {
        final String resourceId = annotation.value();
        if (resourceId.isEmpty()) {
            return null;
        } else {
            return new ThemeResource(resourceId);
        }
    }
View Full Code Here

    }

    @Override
    public Resource getIcon(LocalizedThemeIcon annotation) {
        final String resourceId = i18n.get(annotation.value());
        return new ThemeResource(resourceId);
    }
View Full Code Here

        combo.setNullSelectionAllowed(false);
        combo.select(combo.getItemIds().iterator().next());
        combo.setItemCaptionPropertyId(ValoThemeUI.CAPTION_PROPERTY);
        combo.setItemIconPropertyId(ValoThemeUI.ICON_PROPERTY);
        combo.setItemIcon(combo.getItemIds().iterator().next(),
                new ThemeResource("../runo/icons/16/document.png"));
        row.addComponent(combo);

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

        item.getItemProperty("Column 1").setValue("String A");
        item.getItemProperty("Column 2").setValue(new Label("Label A"));
        item.getItemProperty("Column 3").setValue(
                new Label("<b>Label A</b>", ContentMode.HTML));
        item.getItemProperty("Column 4").setValue(
                new Embedded("An embedded image", new ThemeResource(
                        "../runo/icons/32/ok.png")));

        item = table.addItem("Item 2 (row 2)");
        item.getItemProperty("Column 1").setValue("String B");
        item.getItemProperty("Column 2").setValue(new Label("Label B"));
        item.getItemProperty("Column 3")
                .setValue(
                        new Label(
                                "<a style=\"color: blue\" href=\"javascript:false\">Label B</a>",
                                ContentMode.HTML));
        item.getItemProperty("Column 4").setValue(
                new Embedded("", new ThemeResource(
                        "../runo/icons/32/cancel.png")));

        table.addItemClickListener(new ItemClickListener() {

            @Override
View Full Code Here

    grlSearch.setComponentAlignment(getTxtBusca(), Alignment.MIDDLE_CENTER);
    grlSearch.setColumnExpandRatio(0, 2);

    setBtnSearch(new Button());
    getBtnSearch().setIcon(
        new ThemeResource("../factelect/icons/refresh.png"));
    getBtnSearch().setWidth("-1px");
    getBtnSearch().setHeight("-1px");
    getBtnSearch().setStyleName(Reindeer.BUTTON_LINK);
    getBtnSearch().setDescription(
        GstFormat.description("Buscar", "Realizar busqueda con <br/>"
View Full Code Here

TOP

Related Classes of com.vaadin.server.ThemeResource

Copyright © 2018 www.massapicom. 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.