Example usage for com.vaadin.shared.ui.colorpicker Color WHITE

List of usage examples for com.vaadin.shared.ui.colorpicker Color WHITE

Introduction

In this page you can find the example usage for com.vaadin.shared.ui.colorpicker Color WHITE.

Prototype

Color WHITE

To view the source code for com.vaadin.shared.ui.colorpicker Color WHITE.

Click Source Link

Usage

From source file:eu.maxschuster.vaadin.colorpickerfield.AbstractColorPickerField.java

License:Apache License

@Override
public void writeDesign(Element design, DesignContext designContext) {
    super.writeDesign(design, designContext);
    Attributes attributes = design.attributes();

    DesignAttributeHandler.writeAttribute("color", attributes, getClientColor(getValue()).getCSS(),
            Color.WHITE.getCSS(), String.class);
    DesignAttributeHandler.writeAttribute("popup-style", attributes,
            (popupStyle == AbstractColorPicker.PopupStyle.POPUP_NORMAL ? "normal" : "simple"), "normal",
            String.class);
    DesignAttributeHandler.writeAttribute("position", attributes, positionX + "," + positionY, "0,0",
            String.class);
}