Package com.vaadin.flow.component.shared
Enum Class Tooltip.AriaLinkMode
- All Implemented Interfaces:
Serializable,Comparable<Tooltip.AriaLinkMode>,Constable
- Enclosing class:
Tooltip
Controls which ARIA attribute links the target element(s) with the
tooltip content.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLinks the tooltip as a description of the target usingaria-describedby.Links the tooltip as the accessible name of the target usingaria-labelledby.Does not add any ARIA linking attribute to the target. -
Method Summary
Modifier and TypeMethodDescriptionstatic Tooltip.AriaLinkModeGets theTooltip.AriaLinkModefor the given value string.getValue()static Tooltip.AriaLinkModeReturns the enum constant of this class with the specified name.static Tooltip.AriaLinkMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARIA_DESCRIBED_BY
Links the tooltip as a description of the target usingaria-describedby. This is the default. -
ARIA_LABELLED_BY
Links the tooltip as the accessible name of the target usingaria-labelledby. -
NONE
Does not add any ARIA linking attribute to the target.
-
-
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
-
fromValue
Gets theTooltip.AriaLinkModefor the given value string. ReturnsARIA_DESCRIBED_BYif no match is found.- Parameters:
value- the value string- Returns:
- the
Tooltip.AriaLinkMode
-