Package com.vaadin.ui

Examples of com.vaadin.ui.ColorPickerArea


                layout2);
        layoutLeft.addComponent(panel2);

        HorizontalLayout layout3 = createHorizontalLayout();

        colorpicker5 = new ColorPickerArea("Foreground", foregroundColor);
        colorpicker5.setCaption("Foreground");
        colorpicker5.addColorChangeListener(this);
        colorpicker5.setId("colorpicker5");
        layout3.addComponent(colorpicker5);
        layout3.setComponentAlignment(colorpicker5, Alignment.MIDDLE_CENTER);

        colorpicker6 = new ColorPickerArea("Background", backgroundColor);
        colorpicker6.setCaption("Background");
        colorpicker6.setDefaultCaptionEnabled(false);
        colorpicker6.addColorChangeListener(this);
        colorpicker6.setId("colorpicker6");
        layout3.addComponent(colorpicker6);
View Full Code Here


    }

    private int shadeAreaCounter = 1;

    private void addShadeArea(Color color, HorizontalLayout layout) {
        AbstractColorPicker colorPicker = new ColorPickerArea(color.toString(),
                color);
        colorPicker.setWidth("20px");
        colorPicker.setHeight("20px");
        colorPicker.setId("shadearea_" + shadeAreaCounter);
        layout.addComponent(colorPicker);
        layout.setComponentAlignment(colorPicker, Alignment.MIDDLE_CENTER);

        ++shadeAreaCounter;
    }
View Full Code Here

        layout.setMargin(true);
        setContent(layout);

        layout.addComponent(new Label(
                "HSV initial values when opening the tab for the first time"));
        ColorPickerArea colorpicker = new ColorPickerArea();
        colorpicker.setColor(new Color(Integer.parseInt("00b4f0", 16)));
        colorpicker.setDefaultCaptionEnabled(false);
        colorpicker.setId("colorpicker");
        layout.addComponent(colorpicker);

    }
View Full Code Here

TOP

Related Classes of com.vaadin.ui.ColorPickerArea

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.