Enum Class LocalizedField.LanguageDisplay

java.lang.Object
java.lang.Enum<LocalizedField.LanguageDisplay>
org.vaadin.firitin.fields.localized.LocalizedField.LanguageDisplay
All Implemented Interfaces:
Serializable, Comparable<LocalizedField.LanguageDisplay>, Constable
Enclosing class:
LocalizedField<F extends com.vaadin.flow.component.textfield.TextFieldBase<F,String>>

public static enum LocalizedField.LanguageDisplay extends Enum<LocalizedField.LanguageDisplay>
How a language is visualized in the selector (tab bar or combo box): with a flag emoji and its name, with the flag only, or with the name only. The flag is always paired with a tooltip carrying the language name, so FLAG stays usable (and accessible) even though it shows no text. When a language has no known flag, the flag-bearing modes fall back to the name so a language is never blank.
  • Enum Constant Details

  • Method Details

    • values

      public static LocalizedField.LanguageDisplay[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LocalizedField.LanguageDisplay valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null