Package com.oorian.html.elements.consts
Enum Class Target
- All Implemented Interfaces:
Serializable,Comparable<Target>,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the target name for this browsing context.toString()static TargetReturns the enum constant of this class with the specified name.static Target[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLANK
Opens the linked document in a new window or tab. Each link with _blank creates a new separate browsing context. -
PARENT
Opens the linked document in the parent frame. If there is no parent, behaves the same as _self. -
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
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
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
-
getValue
Gets the target name for this browsing context.- Returns:
- the string value used in HTML target attribute.
-
toString
-