Enum Class LocaleComboBox.DisplayMode
java.lang.Object
java.lang.Enum<LocaleComboBox.DisplayMode>
com.flowingcode.vaadin.addons.localecombobox.LocaleComboBox.DisplayMode
- All Implemented Interfaces:
Serializable,Comparable<LocaleComboBox.DisplayMode>,Constable
- Enclosing class:
- LocaleComboBox
Represents the built-in display modes for locale names in the
LocaleComboBox component.
These enums can be used in LocaleComboBox.setDisplayMode(DisplayMode) to easily switch between the
built-in display modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LocaleComboBox.DisplayModeReturns the enum constant of this class with the specified name.static LocaleComboBox.DisplayMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default display mode.In this mode, the Locale names are displayed using the default locale's display format.
-
SELECTED
Selected display mode.In this mode, the Locale names are displayed using the formatting of the currently selected locale.
-
CUSTOM
Custom display mode.In this mode, the Locale names are displayed using the formatting of the specific locale set by
LocaleComboBox.setDisplayLocale(Locale).
-
-
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
-