Class ColorPicker

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<ColorPicker,​String>,​String>, com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<ColorPicker,​String>,​String>, Serializable

    @Tag("paper-swatch-picker")
    @JsModule("@polymer/paper-swatch-picker/paper-swatch-picker.js")
    @NpmPackage(value="@polymer/paper-swatch-picker",
                version="3.0.1")
    @JavaScript("https://unpkg.com/web-animations-js@^2.0.0/web-animations-next-lite.min.js")
    public class ColorPicker
    extends com.vaadin.flow.component.AbstractSinglePropertyField<ColorPicker,​String>
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField

        com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,​V extends Object>
      • Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue

        com.vaadin.flow.component.HasValue.ValueChangeEvent<V extends Object>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorPicker()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      elemental.json.JsonArray getColorList()  
      void getDefaultColors()  
      void onAttach​(com.vaadin.flow.component.AttachEvent ev)  
      void setColorList()  
      void setValue​(String value)  
      • Methods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField

        getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEvent
      • Methods inherited from class com.vaadin.flow.component.AbstractField

        addValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, valueEquals
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasEnabled

        isEnabled, setEnabled
      • Methods inherited from interface com.vaadin.flow.component.HasValue

        clear, getOptionalValue
      • Methods inherited from interface com.vaadin.flow.component.HasValueAndElement

        isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible
    • Constructor Detail

      • ColorPicker

        public ColorPicker()
    • Method Detail

      • getColorList

        public elemental.json.JsonArray getColorList()
      • setColorList

        public void setColorList()
      • getDefaultColors

        public void getDefaultColors()
      • onAttach

        public void onAttach​(com.vaadin.flow.component.AttachEvent ev)
        Overrides:
        onAttach in class com.vaadin.flow.component.Component
      • setValue

        public void setValue​(String value)
        Specified by:
        setValue in interface com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<ColorPicker,​String>,​String>
        Overrides:
        setValue in class com.vaadin.flow.component.AbstractField<ColorPicker,​String>