Class LocalizedTextArea

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.AbstractField<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>, Map<Locale,String>>
com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>
org.vaadin.firitin.components.customfield.VCustomField<Map<Locale,String>>
org.vaadin.firitin.fields.localized.LocalizedField<com.vaadin.flow.component.textfield.TextArea>
org.vaadin.firitin.fields.localized.LocalizedTextArea
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.Focusable<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>>, com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>>, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasHelper, com.vaadin.flow.component.HasLabel, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.HasValidation, com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>, Map<Locale,String>>, Map<Locale,String>>, com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>, Map<Locale,String>>, Map<Locale,String>>, com.vaadin.flow.component.shared.HasTooltip, com.vaadin.flow.component.shared.HasValidationProperties, com.vaadin.flow.component.shared.InputField<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>, Map<Locale,String>>, Map<Locale,String>>, Serializable, FluentAttachNotifier<VCustomField<Map<Locale,String>>>, FluentBlurNotifier<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>, VCustomField<Map<Locale,String>>>, FluentComponent<VCustomField<Map<Locale,String>>>, FluentDetachNotifier<VCustomField<Map<Locale,String>>>, FluentFocusable<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>, VCustomField<Map<Locale,String>>>, FluentFocusNotifier<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>, VCustomField<Map<Locale,String>>>, FluentHasEnabled<VCustomField<Map<Locale,String>>>, FluentHasHelper<VCustomField<Map<Locale,String>>>, FluentHasSize<VCustomField<Map<Locale,String>>>, FluentHasTooltip<VCustomField<Map<Locale,String>>>, FluentHasValidation<VCustomField<Map<Locale,String>>>, FluentHasValueAndElement<VCustomField<Map<Locale,String>>, com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.customfield.CustomField<Map<Locale,String>>, Map<Locale,String>>, Map<Locale,String>>, FluentHasLabel<VCustomField<Map<Locale,String>>>

public class LocalizedTextArea extends LocalizedField<com.vaadin.flow.component.textfield.TextArea>
A LocalizedField that edits each language version with a multi-line TextArea.
See Also:
  • Nested Class Summary

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

    com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C,V>

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier

    com.vaadin.flow.component.BlurNotifier.BlurEvent<C>

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier

    com.vaadin.flow.component.FocusNotifier.FocusEvent<C>

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue

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

    Constructors
    Constructor
    Description
    LocalizedTextArea(String label, List<Locale> locales)
    Creates a labeled field for the given languages.
    LocalizedTextArea(String label, Locale... locales)
    Creates a labeled field for the given languages.
    Creates a field for the given languages.
    LocalizedTextArea(List<Locale> locales, int comboBoxThreshold)
    Creates a field for the given languages, switching to a combo box selector when there are more than comboBoxThreshold of them.
    Creates a field for the given languages.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.vaadin.flow.component.textfield.TextArea
    Creates the editor used to edit a single language.

    Methods inherited from class VCustomField

    withErrorMessage, withInvalid

    Methods inherited from class com.vaadin.flow.component.customfield.CustomField

    add, addThemeVariants, getLabel, remove, removeThemeVariants, updateValue

    Methods inherited from class com.vaadin.flow.component.AbstractField

    addValueChangeListener, bindValue, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEquals

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.BlurNotifier

    addBlurListener

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

    addDetachListener

    Methods inherited from interface FluentAttachNotifier

    withAttachListener

    Methods inherited from interface FluentBlurNotifier

    withBlurListener

    Methods inherited from interface FluentComponent

    navigate, setId, setVisible, withId, withVisible

    Methods inherited from interface FluentDetachNotifier

    withDetachListener

    Methods inherited from interface FluentFocusable

    withTabIndex

    Methods inherited from interface FluentFocusNotifier

    withFocusListener

    Methods inherited from interface FluentHasEnabled

    withEnabled

    Methods inherited from interface FluentHasHelper

    withHelperComponent, withHelperText

    Methods inherited from interface FluentHasLabel

    withLabel

    Methods inherited from interface FluentHasTooltip

    withTooltip

    Methods inherited from interface com.vaadin.flow.component.Focusable

    addFocusShortcut, blur, focus, focus, getTabIndex, setTabIndex

    Methods inherited from interface com.vaadin.flow.component.FocusNotifier

    addFocusListener

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

    getElement

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

    bindEnabled, isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasHelper

    bindHelperText, getHelperComponent, getHelperText, setHelperComponent, setHelperText

    Methods inherited from interface com.vaadin.flow.component.HasLabel

    getLabel

    Methods inherited from interface com.vaadin.flow.component.HasSize

    bindHeight, bindWidth, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, bindThemeName, bindThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface com.vaadin.flow.component.shared.HasTooltip

    getTooltip, setTooltipMarkdown, setTooltipText

    Methods inherited from interface com.vaadin.flow.component.HasValidation

    setManualValidation

    Methods inherited from interface com.vaadin.flow.component.shared.HasValidationProperties

    getErrorMessage, isInvalid, setErrorMessage, setInvalid

    Methods inherited from interface com.vaadin.flow.component.HasValue

    addValueChangeListener, bindValue, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValue

    Methods inherited from interface com.vaadin.flow.component.HasValueAndElement

    bindReadOnly, bindRequiredIndicatorVisible, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible
  • Constructor Details

    • LocalizedTextArea

      public LocalizedTextArea(Locale... locales)
      Creates a field for the given languages.
    • LocalizedTextArea

      public LocalizedTextArea(List<Locale> locales)
      Creates a field for the given languages.
    • LocalizedTextArea

      public LocalizedTextArea(List<Locale> locales, int comboBoxThreshold)
      Creates a field for the given languages, switching to a combo box selector when there are more than comboBoxThreshold of them.
    • LocalizedTextArea

      public LocalizedTextArea(String label, Locale... locales)
      Creates a labeled field for the given languages.
    • LocalizedTextArea

      public LocalizedTextArea(String label, List<Locale> locales)
      Creates a labeled field for the given languages.
  • Method Details

    • createField

      protected com.vaadin.flow.component.textfield.TextArea createField(Locale locale)
      Description copied from class: LocalizedField
      Creates the editor used to edit a single language. The aria label, value change mode, change listener and width are configured by the base class.
      Specified by:
      createField in class LocalizedField<com.vaadin.flow.component.textfield.TextArea>