Enum Class AnchorTarget

java.lang.Object
java.lang.Enum<AnchorTarget>
com.vaadin.flow.component.html.AnchorTarget
All Implemented Interfaces:
AnchorTargetValue, Serializable, Comparable<AnchorTarget>, Constable

public enum AnchorTarget extends Enum<AnchorTarget> implements AnchorTargetValue
Enum representing target attribute values for an <a> element.
Since:
Author:
Vaadin Ltd
  • Enum Constant Details

    • DEFAULT

      public static final AnchorTarget DEFAULT
      Remove the target value. This has the same effect as SELF.
    • SELF

      public static final AnchorTarget SELF
      Open a link in the current context.
    • BLANK

      public static final AnchorTarget BLANK
      Open a link in a new unnamed context.
    • PARENT

      public static final AnchorTarget PARENT
      Open a link in the parent context, or the current context if there is no parent context.
    • TOP

      public static final AnchorTarget TOP
      Open a link in the top most grandparent context, or the current context if there is no parent context.
  • Method Details

    • values

      public static AnchorTarget[] 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 AnchorTarget 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
    • getValue

      public String getValue()
      Description copied from interface: AnchorTargetValue
      Gets the string value representation.
      Specified by:
      getValue in interface AnchorTargetValue
      Returns:
      value the text value to use by an <a> (anchor) tag.