Enum Class LinkTarget

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

public enum LinkTarget extends Enum<LinkTarget>
Where the menus open a navigation item's page (a page, an existing page or a link), as the drawer's "open in the same tab" switch stores it on the node
  • Enum Constant Details

    • SAME_TAB

      public static final LinkTarget SAME_TAB
    • NEW_TAB

      public static final LinkTarget NEW_TAB
  • Field Details

  • Method Details

    • values

      public static LinkTarget[] 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 LinkTarget 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 LinkTarget parse(String value)
      Parameters:
      value - the value an agent sent, null for the drawer's default
      Returns:
      the matching target
      Throws:
      IllegalArgumentException - with the tool's fixed message when the value is outside the vocabulary
    • fromStateValue

      public static LinkTarget fromStateValue(String stateValue)
      Parameters:
      stateValue - the value a node state stores, null included
      Returns:
      the target the menus apply: the same tab on the drawer's value for it, a new tab on anything else
    • getValue

      public String getValue()
    • getStateValue

      public String getStateValue()
      Returns:
      the value the node state stores