Enum Class Preferences.DisplayMode

java.lang.Object
java.lang.Enum<Preferences.DisplayMode>
com._1c.g5.internal.properties.ui.Preferences.DisplayMode
All Implemented Interfaces:
Serializable, Comparable<Preferences.DisplayMode>, Constable
Enclosing class:
Preferences

public static enum Preferences.DisplayMode extends Enum<Preferences.DisplayMode>
Available display modes for property palette: by categories or ordered alphabetically.
  • Enum Constant Details

    • CATEGORIES

      public static final Preferences.DisplayMode CATEGORIES
      Display mode of property palette, in which fields are distributed among sections. Sections have a title; they can be collapsed to hide all the fields that fall into it. Inside a section some fields may be grouped together to have different column layout; groups are separated with a horizontal bar.
    • ALPHABETICALLY

      public static final Preferences.DisplayMode ALPHABETICALLY
      Display mode of property palette, in which fields are shown in alphabetical order. The fields are ordered by their human readable caption, not by their internal name (actually, feature).
  • Method Details

    • values

      public static Preferences.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 Preferences.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
    • fromInt

      public static Preferences.DisplayMode fromInt(int value)
      Deserializes Preferences.DisplayMode from its integer representation.
      Parameters:
      value - an integer representation to deserialize Preferences.DisplayMode from
      Returns:
      One of Preferences.DisplayModes or null.
      See Also:
    • toInt

      public int toInt()
      Serializes Preferences.DisplayMode into integer representation.
      Returns:
      an integer
      See Also: