Enum Class LinkTarget
- All Implemented Interfaces:
Serializable, Comparable<LinkTarget>, Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkTargetfromStateValue(String stateValue) getValue()static LinkTargetstatic LinkTargetReturns the enum constant of this class with the specified name.static LinkTarget[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SAME_TAB
-
NEW_TAB
-
-
Field Details
-
TARGET_NOT_ACCEPTED
- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
parse
- 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
- 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
-
getStateValue
- Returns:
- the value the node state stores
-