Package com.oorian.html.aria
Enum Class AriaRole
- All Implemented Interfaces:
Serializable,Comparable<AriaRole>,Constable
ARIA role attribute values for semantic accessibility meaning.
ARIA roles define what an element is or does, providing semantic meaning to assistive technologies like screen readers. Roles are divided into several categories:
- Landmark roles: Define regions of a page (banner, navigation, main)
- Widget roles: Define interactive components (button, checkbox, dialog)
- Document structure roles: Define document organization (article, list, table)
- Live region roles: Define dynamic content areas (alert, log, status)
Usage:
// Set a navigation landmark
nav.setRole(AriaRole.NAVIGATION);
// Create an alert dialog
dialog.setRole(AriaRole.ALERTDIALOG);
// Mark a status region
statusDiv.setRole(AriaRole.STATUS);
- 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 ConstantsEnum ConstantDescriptionIdentifies an important message requiring user attention.Identifies an alert dialog requiring user response.Identifies an application region.Identifies an article.Identifies site-oriented content at the beginning of a page (header).Identifies a button element.Identifies a cell in a table.Identifies a checkbox input.Identifies a column header cell.Identifies supporting content related to the main content.Identifies common information at the bottom of a page (footer).Identifies a definition.Identifies a dialog or modal window.Identifies a directory (deprecated, use list).Identifies a document region.Identifies a feed of articles.Identifies a figure with caption.Identifies a region containing a form.Identifies a grid (interactive table).Identifies a cell in a grid.Identifies a group of related elements.Identifies a heading.Identifies an image.Identifies a hyperlink.Identifies a list widget.Identifies a listbox widget.Identifies an item in a list.Identifies a log of messages.Identifies the primary content of a document.Identifies a marquee (scrolling text).Identifies mathematical content.Identifies a menu widget.Identifies a menu bar.Identifies a menu item.Identifies a checkable menu item.Identifies a menu item in a radio group.Identifies a collection of navigational links.Removes semantic meaning (presentational).Identifies a note or annotation.Identifies an option in a listbox.Removes semantic meaning (alias for none).Identifies a progress indicator.Identifies a radio button.Identifies a group of radio buttons.Identifies a perceivable section containing content relevant to a specific purpose.Identifies a row in a table or grid.Identifies a group of rows.Identifies a row header cell.Identifies a scrollbar.Identifies a search functionality.Identifies a search input.Identifies a separator.Identifies a slider control.Identifies a spin button.Identifies a status message.Identifies a toggle switch.Identifies a tab in a tablist.Identifies a table.Identifies a list of tabs.Identifies a tab panel.Identifies a term being defined.Identifies a text input.Identifies a timer display.Identifies a toolbar.Identifies a tooltip.Identifies a tree widget.Identifies a tree grid (tree + table).Identifies an item in a tree. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the ARIA role string value.toString()Returns the ARIA role string value.static AriaRoleReturns the enum constant of this class with the specified name.static AriaRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BANNER
Identifies site-oriented content at the beginning of a page (header). -
COMPLEMENTARY
Identifies supporting content related to the main content. -
CONTENTINFO
Identifies common information at the bottom of a page (footer). -
FORM
Identifies a region containing a form. -
MAIN
Identifies the primary content of a document. -
NAVIGATION
Identifies a collection of navigational links. -
REGION
Identifies a perceivable section containing content relevant to a specific purpose. -
SEARCH
Identifies a search functionality. -
ALERT
Identifies an important message requiring user attention. -
ALERTDIALOG
Identifies an alert dialog requiring user response. -
BUTTON
Identifies a button element. -
CHECKBOX
Identifies a checkbox input. -
DIALOG
Identifies a dialog or modal window. -
GRIDCELL
Identifies a cell in a grid. -
LINK
Identifies a hyperlink. -
LOG
Identifies a log of messages. -
MARQUEE
Identifies a marquee (scrolling text). -
MENU
Identifies a menu widget. -
MENUBAR
Identifies a menu bar. -
MENUITEM
Identifies a menu item. -
MENUITEMCHECKBOX
Identifies a checkable menu item. -
MENUITEMRADIO
Identifies a menu item in a radio group. -
OPTION
Identifies an option in a listbox. -
PROGRESSBAR
Identifies a progress indicator. -
RADIO
Identifies a radio button. -
RADIOGROUP
Identifies a group of radio buttons. -
SCROLLBAR
Identifies a scrollbar. -
SEARCHBOX
Identifies a search input. -
SLIDER
Identifies a slider control. -
SPINBUTTON
Identifies a spin button. -
STATUS
Identifies a status message. -
SWITCH
Identifies a toggle switch. -
TAB
Identifies a tab in a tablist. -
TABLIST
Identifies a list of tabs. -
TABPANEL
Identifies a tab panel. -
TEXTBOX
Identifies a text input. -
TIMER
Identifies a timer display. -
TOOLTIP
Identifies a tooltip. -
TREE
Identifies a tree widget. -
TREEGRID
Identifies a tree grid (tree + table). -
TREEITEM
Identifies an item in a tree. -
ARTICLE
Identifies an article. -
CELL
Identifies a cell in a table. -
COLUMNHEADER
Identifies a column header cell. -
DEFINITION
Identifies a definition. -
DIRECTORY
Identifies a directory (deprecated, use list). -
DOCUMENT
Identifies a document region. -
FEED
Identifies a feed of articles. -
FIGURE
Identifies a figure with caption. -
GROUP
Identifies a group of related elements. -
HEADING
Identifies a heading. -
IMG
Identifies an image. -
LIST
Identifies a list widget. -
LISTBOX
Identifies a listbox widget. -
LISTITEM
Identifies an item in a list. -
MATH
Identifies mathematical content. -
NONE
Removes semantic meaning (presentational). -
NOTE
Identifies a note or annotation. -
PRESENTATION
Removes semantic meaning (alias for none). -
ROW
Identifies a row in a table or grid. -
ROWGROUP
Identifies a group of rows. -
ROWHEADER
Identifies a row header cell. -
SEPARATOR
Identifies a separator. -
TABLE
Identifies a table. -
TERM
Identifies a term being defined. -
TOOLBAR
Identifies a toolbar. -
GRID
Identifies a grid (interactive table). -
APPLICATION
Identifies an application region.
-
-
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 role string value.- Returns:
- The role value for use in the role attribute.
-
toString
Returns the ARIA role string value.
-