Package jmri

Enum NamedBean.DisplayOptions

All Implemented Interfaces:
Serializable, Comparable<NamedBean.DisplayOptions>, java.lang.constant.Constable
Enclosing interface:
NamedBean

Display options for NamedBean.getDisplayName(DisplayOptions). The quoted forms are intended to be used in sentences and messages, while the unquoted forms are intended for use in user interface elements like lists and combo boxes.
  • Enum Constant Details

    • DISPLAYNAME

      Display the user name; if the user name is null or empty, display the system name.
    • QUOTED_DISPLAYNAME

      Display the user name in quotes; if the user name is null or empty, display the system name in quotes.
    • USERNAME

      public static final NamedBean.DisplayOptions USERNAME
      Display the user name; if the user name is null or empty, display the system name.
    • QUOTED_USERNAME

      Display the user name in quotes; if the user name is null or empty, display the system name in quotes.
    • SYSTEMNAME

      public static final NamedBean.DisplayOptions SYSTEMNAME
      Display the system name. This should be used only when the context would cause displaying the user name to be more confusing than not or in text input fields for editing the system name.
    • QUOTED_SYSTEMNAME

      Display the system name in quotes. This should be used only when the context would cause displaying the user name to be more confusing than not or in text input fields for editing the system name.
    • USERNAME_SYSTEMNAME

      Display the user name followed by the system name in parenthesis. If the user name is null or empty, display the system name without parenthesis.
    • QUOTED_USERNAME_SYSTEMNAME

      Display the user name in quotes followed by the system name in parenthesis. If the user name is null or empty, display the system name in quotes.
  • Method Details

    • values

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

      public static NamedBean.DisplayOptions valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null