Package com.oorian.html.aria
Enum Class AriaPopupType
- All Implemented Interfaces:
Serializable,Comparable<AriaPopupType>,Constable
ARIA popup type values for the aria-haspopup attribute.
The aria-haspopup attribute indicates the availability and type of interactive popup element that can be triggered by an element. This helps assistive technologies inform users what to expect when they activate the element.
Usage:
// Button that opens a menu
menuButton.setAriaHasPopup(AriaPopupType.MENU);
// Button that opens a dialog
dialogButton.setAriaHasPopup(AriaPopupType.DIALOG);
// Combobox with listbox popup
combobox.setAriaHasPopup(AriaPopupType.LISTBOX);
- Since:
- 2025
- 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()Returns the aria-haspopup attribute value.toString()Returns the aria-haspopup attribute value.static AriaPopupTypeReturns the enum constant of this class with the specified name.static AriaPopupType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MENU
Indicates a menu popup. -
LISTBOX
Indicates a listbox popup. -
TREE
Indicates a tree popup. -
GRID
Indicates a grid popup. -
DIALOG
Indicates a dialog popup.
-
-
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
Returns the aria-haspopup attribute value.- Returns:
- The popup type value.
-
toString
Returns the aria-haspopup attribute value.- Overrides:
toStringin classEnum<AriaPopupType>- Returns:
- The popup type value.
-