Package com.vaadin.flow.component.html
Enum Class AnchorTarget
- All Implemented Interfaces:
AnchorTargetValue
,Serializable
,Comparable<AnchorTarget>
,Constable
Enum representing
target
attribute values for an
<a>
element.- Since:
- Author:
- Vaadin Ltd
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOpen a link in a new unnamed context.Remove the target value.Open a link in the parent context, or the current context if there is no parent context.Open a link in the current context.Open a link in the top most grandparent context, or the current context if there is no parent context. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Gets the string value representation.static AnchorTarget
Returns the enum constant of this class with the specified name.static AnchorTarget[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Remove the target value. This has the same effect asSELF
. -
SELF
Open a link in the current context. -
BLANK
Open a link in a new unnamed context. -
PARENT
Open a link in the parent context, or the current context if there is no parent context. -
TOP
Open a link in the top most grandparent context, or the current context if there is no parent context.
-
-
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
Description copied from interface:AnchorTargetValue
Gets the string value representation.- Specified by:
getValue
in interfaceAnchorTargetValue
- Returns:
- value the text value to use by an
<a>
(anchor) tag.
-