Package org.vaadin.firitin.fields
Class StringToDoubleMapField
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.Composite<C>
-
- com.vaadin.flow.component.AbstractCompositeField<com.vaadin.flow.component.textfield.TextArea,StringToDoubleMapField,Map<String,Double>>
-
- org.vaadin.firitin.fields.StringToDoubleMapField
-
- 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.HasSize,com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<StringToDoubleMapField,Map<String,Double>>,Map<String,Double>>,com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<StringToDoubleMapField,Map<String,Double>>,Map<String,Double>>,Serializable
public class StringToDoubleMapField extends com.vaadin.flow.component.AbstractCompositeField<com.vaadin.flow.component.textfield.TextArea,StringToDoubleMapField,Map<String,Double>> implements com.vaadin.flow.component.HasSize
A field to edit a set of String using one simple text field. Strings are separated using a comma and optional white-space.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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 StringToDoubleMapField()StringToDoubleMapField(String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()Map<String,Double>getValue()voidsetLabel(String label)protected voidsetPresentationValue(Map<String,Double> newPresentationValue)voidsetValue(Map<String,Double> value)-
Methods inherited from class com.vaadin.flow.component.AbstractCompositeField
addValueChangeListener, getEmptyValue, isEmpty, setModelValue, valueEquals
-
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContent
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
-
-
-
-
Constructor Detail
-
StringToDoubleMapField
public StringToDoubleMapField()
-
StringToDoubleMapField
public StringToDoubleMapField(String label)
-
-
Method Detail
-
setValue
public void setValue(Map<String,Double> value)
- Specified by:
setValuein interfacecom.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<StringToDoubleMapField,Map<String,Double>>,Map<String,Double>>- Overrides:
setValuein classcom.vaadin.flow.component.AbstractCompositeField<com.vaadin.flow.component.textfield.TextArea,StringToDoubleMapField,Map<String,Double>>
-
getValue
public Map<String,Double> getValue()
- Specified by:
getValuein interfacecom.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<StringToDoubleMapField,Map<String,Double>>,Map<String,Double>>- Overrides:
getValuein classcom.vaadin.flow.component.AbstractCompositeField<com.vaadin.flow.component.textfield.TextArea,StringToDoubleMapField,Map<String,Double>>
-
setPresentationValue
protected void setPresentationValue(Map<String,Double> newPresentationValue)
- Specified by:
setPresentationValuein classcom.vaadin.flow.component.AbstractCompositeField<com.vaadin.flow.component.textfield.TextArea,StringToDoubleMapField,Map<String,Double>>
-
setLabel
public void setLabel(String label)
-
getLabel
public String getLabel()
-
-