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

public static enum LocaleComboBox.DisplayMode extends Enum<LocaleComboBox.DisplayMode>
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.

  • Enum Constant Details

    • DEFAULT

      public static final LocaleComboBox.DisplayMode DEFAULT
      Default display mode.

      In this mode, the Locale names are displayed using the default locale's display format.

    • SELECTED

      public static final LocaleComboBox.DisplayMode SELECTED
      Selected display mode.

      In this mode, the Locale names are displayed using the formatting of the currently selected locale.

    • CUSTOM

      public static final LocaleComboBox.DisplayMode 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

      public static LocaleComboBox.DisplayMode[] 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 LocaleComboBox.DisplayMode 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