Examples of ThemeResource


Examples of com.vaadin.server.ThemeResource

        ol.setComponentAlignment(tf, Alignment.BOTTOM_RIGHT);

        tf = new TextField(
                "A very long caption which is probably much longer than the field and includes indicators");
        tf.setValue("Undefined width");
        tf.setIcon(new ThemeResource("icons/16/document-add.png"));
        tf.setRequired(true);
        tf.setComponentError(new UserError("abc123"));
        ol.addComponent(tf);
        ol.setComponentAlignment(tf, Alignment.BOTTOM_RIGHT);
View Full Code Here

Examples of com.vaadin.server.ThemeResource

        tf = new TextField(
                "A very long caption which is probably much longer than the field and includes indicators");
        tf.setValue("100% wide field, ratio 3");
        tf.setSizeFull();
        tf.setIcon(new ThemeResource("icons/16/document-add.png"));
        tf.setRequired(true);
        tf.setComponentError(new UserError("abc123"));
        ol.addComponent(tf);
        ol.setComponentAlignment(tf, Alignment.BOTTOM_RIGHT);
        ol.setExpandRatio(tf, 3);
View Full Code Here

Examples of com.vaadin.server.ThemeResource

        tf = new TextField(
                "A very long caption which is probably much longer than the field and includes indicators");
        tf.setValue("200px wide field");
        tf.setWidth("200px");
        tf.setIcon(new ThemeResource("icons/16/document-add.png"));
        tf.setRequired(true);
        tf.setComponentError(new UserError("abc123"));
        ol.addComponent(tf);
        ol.setComponentAlignment(tf, Alignment.BOTTOM_RIGHT);
View Full Code Here

Examples of com.vaadin.server.ThemeResource

        HorizontalLayout images = new HorizontalLayout();
        images.setSpacing(true);

        Label l = new Label("Chameleon theme image in caption");
        l.setIcon(new ThemeResource("img/magnifier.png"));
        images.addComponent(l);
        Image image = new Image("Runo theme image", new ThemeResource(
                "icons/64/ok.png"));
        images.addComponent(image);
        image = new Image("Reindeer theme image", new ThemeResource(
                "button/img/left-focus.png"));
        images.addComponent(image);
        addComponent(images);
        addComponent(gl);
View Full Code Here

Examples of com.vaadin.server.ThemeResource

    private HorizontalLayout getRow(int i) {
        HorizontalLayout row = new HorizontalLayout();
        // row.setWidth("100%");
        // row.setSpacing(true);

        Embedded icon = new Embedded(null, new ThemeResource(
                "../runo/icons/32/document.png"));
        // row.addComponent(icon);
        // row.setComponentAlignment(icon, Alignment.MIDDLE_LEFT);

        Label text = new Label(
View Full Code Here

Examples of com.vaadin.server.ThemeResource

        if (primaryStyleName != null) {
            l.addStyleName(primaryStyleName);
        }

        if (iconUrl != null) {
            l.setIcon(new ThemeResource(iconUrl));
        }

        addComponent(l);
        return l;
View Full Code Here

Examples of com.vaadin.server.ThemeResource

        HorizontalSplitPanel horiz = new HorizontalSplitPanel();
        horiz.setSplitPosition(50);
        horiz.setFirstComponent(new Label("Some content 1"));
        horiz.setSecondComponent(new Label("Some content 2"));
        horiz.setIcon(new ThemeResource(parent.ICON_URL));
        horiz.setCaption("HorizSplitPan");
        horiz.setId("layout" + debugIdCounter++);

        addComponent(horiz);
View Full Code Here

Examples of com.vaadin.server.ThemeResource

    private Panel createPanelWith(String caption, String styleName) {
        VerticalLayout panelLayout = new VerticalLayout();
        panelLayout.setMargin(true);
        Panel panel = new Panel(caption, panelLayout);
        panelLayout.addComponent(new Label("Some content"));
        panel.setIcon(new ThemeResource(parent.ICON_URL));
        panel.setComponentError(new UserError("A error message..."));
        panel.setId("layout" + debugIdCounter++);

        if (styleName != null) {
            panel.addStyleName(styleName);
View Full Code Here

Examples of com.vaadin.server.ThemeResource

public class ImageAltText extends TestBase {

    @Override
    protected void setup() {
        final Image image = new Image("Caption", new ThemeResource(
                "../runo/icons/64/ok.png"));
        image.setDebugId("image");
        image.setAlternateText("Original alt text");
        addComponent(image);
View Full Code Here

Examples of com.vaadin.server.ThemeResource

        t.setImmediate(true);
        t.setContainerDataSource(TestUtils.getISO3166Container());
        t.setColumnReorderingAllowed(true);
        t.setColumnCollapsingAllowed(true);
        // t.setColumnHeaders(new String[] { "Country", "Code", "Icon file" });
        t.setColumnIcon(TestUtils.iso3166_PROPERTY_NAME, new ThemeResource(
                parent.ICON_URL));

        // Actions (a.k.a context menu)
        t.addActionHandler(new Action.Handler() {
            @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.