With this component, users can choose a color to be used in the framework as a CSS code. The color picker component's value is always a String. The format of the component can be changed and by default, it uses the hexadecimal format. Other formats that can be used are RGB and RGBA.
If the component has a null value, the color will be completely transparent. If the user edits the color by hand, and specifies an invalid color, the previously selected color will replace it.
The component appears on the interface as an input field, allowing users to input a color code. Next to the field is a button, that brings up a color palette. The user can select a color from here, or use predefined colors. These predefined colors can be created by using the ColorPicker.addColor(String, String) method.
By default, the palette has a small size. The component allows the palette to be displayed in a bigger size, in which case the ColorPicker.setLargePalette(boolean) method can be called, and given the true value.
The color picker component is a form item, so it can be placed on, and will be handled by the Form component. The color picker component can be used on its own, but then the developer must implement event and value handlers.
Show, Hide, Change, Focus, Edit, KeyboardEvents, HotKey, Drag&Drop