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>>
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFlag emoji only (the language name moves to a tooltip).Flag emoji followed by the language name (the default).Language name only, no flag. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static LocalizedField.LanguageDisplay[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLAG_AND_NAME
Flag emoji followed by the language name (the default). -
FLAG
Flag emoji only (the language name moves to a tooltip). -
NAME
Language name only, no flag.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-