Directory

← Back

Vaadin ColorPicker

Pick your color in style!

Author

Rating

Popularity

100+

An easy to use, popup color picker.

The main features of the widget include: • Easy to use interface with clickable color gradiants • RGB color mode • HSV color mode • Swatches color mode • 3 types of color picker buttons • Color history • Color preview • CSS color code representation and handling

Starting from version 1.0.3 this add-on is licensed under the Apache License 2.0.

Sample code

public class MyColorPickerDemo extends Application {

    @Override
    public void init() {
        Window mainWindow = new Window("Mycolorpickerdemo Application");

        // Create a color picker
        ColorPicker cp = new ColorPicker("Our ColorPicker", Color.RED);

        // Add a color change listener to the color picker
        cp.addListener(new ColorPicker.ColorChangeListener() {
            @Override
            public void colorChanged(ColorChangeEvent event) {
                MyColorPickerDemo.this.getMainWindow()
                .showNotification("Color changed!");
            }
        });

        mainWindow.addComponent(cp);
        setMainWindow(mainWindow);
    }
}

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Firefox 4 and IE9 support (when using Vaadin 6.6)

Released
2011-05-20
Maturity
CERTIFIED
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.0+
Browser
Internet Explorer
Internet Explorer
Internet Explorer
Firefox
Opera
Safari
Google Chrome
Internet Explorer

Vaadin ColorPicker - Vaadin Add-on Directory

Pick your color in style! Vaadin ColorPicker - Vaadin Add-on Directory
An easy to use, popup color picker. The main features of the widget include: • Easy to use interface with clickable color gradiants • RGB color mode • HSV color mode • Swatches color mode • 3 types of color picker buttons • Color history • Color preview • CSS color code representation and handling Starting from version 1.0.3 this add-on is licensed under the Apache License 2.0.
Online