Enum Class Target

java.lang.Object
java.lang.Enum<Target>
com.oorian.html.elements.consts.Target
All Implemented Interfaces:
Serializable, Comparable<Target>, Constable

public enum Target extends Enum<Target>
Enumeration defining the browsing context targets for links and forms. This enum provides type-safe constants for the "target" attribute, which specifies where to display the linked URL or form response.
Since:
1.0
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • BLANK

      public static final Target BLANK
      Opens the linked document in a new window or tab. Each link with _blank creates a new separate browsing context.
    • PARENT

      public static final Target PARENT
      Opens the linked document in the parent frame. If there is no parent, behaves the same as _self.
    • SELF

      public static final Target SELF
      Opens the linked document in the same frame/window as it was clicked (default). This replaces the current page in the same browsing context.
    • TOP

      public static final Target TOP
      Opens the linked document in the full body of the window. Breaks out of all frames and loads the document in the top-level window.
  • Method Details

    • values

      public static Target[] 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 Target 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()
      Gets the target name for this browsing context.
      Returns:
      the string value used in HTML target attribute.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Target>