Class ColorPicker

All Implemented Interfaces:
ClientObject, Component

public class ColorPicker extends AbstractField<Color>
  • Constructor Details

    • ColorPicker

      public ColorPicker()
  • Method Details

    • createUiComponent

      public UiField createUiComponent()
      Specified by:
      createUiComponent in class AbstractComponent
    • convertUiValueToUxValue

      public Color convertUiValueToUxValue(Object value)
      Overrides:
      convertUiValueToUxValue in class AbstractField<Color>
    • convertUxValueToUiValue

      public Object convertUxValueToUiValue(Color color)
      Description copied from class: AbstractField
      Converts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!
      Overrides:
      convertUxValueToUiValue in class AbstractField<Color>
      Parameters:
      color - the server-side value
      Returns:
      the object to be sent to the ui
    • getDefaultColor

      public Color getDefaultColor()
    • setDefaultColor

      public void setDefaultColor(Color defaultColor)
    • getSaveButtonCaption

      public String getSaveButtonCaption()
    • setSaveButtonCaption

      public void setSaveButtonCaption(String saveButtonCaption)
    • getClearButtonCaption

      public String getClearButtonCaption()
    • setClearButtonCaption

      public void setClearButtonCaption(String clearButtonCaption)