Class ColorPicker
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.AbstractField<C,T>
-
- com.vaadin.flow.component.AbstractSinglePropertyField<ColorPicker,String>
-
- org.neotropic.util.visual.colorpicker.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
-
-
-
-
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 classcom.vaadin.flow.component.Component
-
setValue
public void setValue(String value)
- Specified by:
setValue
in interfacecom.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<ColorPicker,String>,String>
- Overrides:
setValue
in classcom.vaadin.flow.component.AbstractField<ColorPicker,String>
-
-