Enum Class SidebarDisplayMode

java.lang.Object
java.lang.Enum<SidebarDisplayMode>
io.meeds.layout.constant.SidebarDisplayMode
All Implemented Interfaces:
Serializable, Comparable<SidebarDisplayMode>, Constable

public enum SidebarDisplayMode extends Enum<SidebarDisplayMode>
The sidebar modes as the tools name them, one per platform SidebarMode.
  • Enum Constant Details

  • Method Details

    • values

      public static SidebarDisplayMode[] 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 SidebarDisplayMode 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
    • parse

      public static SidebarDisplayMode parse(String value, String option)
      Parameters:
      value - the value an agent sent
      option - the name of the option it was sent for, named in the refusal
      Returns:
      the matching mode
      Throws:
      IllegalArgumentException - with the tool's fixed message when the value is blank or outside the vocabulary
    • valueOf

      public static String valueOf(io.meeds.portal.navigation.constant.SidebarMode mode)
      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:
      mode - 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
    • getValue

      public String getValue()
    • getMode

      public io.meeds.portal.navigation.constant.SidebarMode getMode()