Package com.oorian.html.aria
Enum Class AriaCurrent
- All Implemented Interfaces:
Serializable,Comparable<AriaCurrent>,Constable
ARIA current state values for indicating the current item in a set.
The aria-current attribute indicates the element that represents the current item within a container or set of related elements. It is commonly used for:
- Current page in navigation
- Current step in a multi-step process
- Current date in a calendar
- Current location in a breadcrumb
Usage:
// Mark current page in navigation
homeLink.setAriaCurrent(AriaCurrent.PAGE);
// Mark current step in wizard
step2.setAriaCurrent(AriaCurrent.STEP);
// Mark today in calendar
todayCell.setAriaCurrent(AriaCurrent.DATE);
- 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 ConstantDescriptionRepresents the current date in a collection of dates.Does not represent the current item.Represents the current location in an environment or context.Represents the current page in a set of pages.Represents the current step in a process.Represents the current time in a set of times.Represents the current item (generic). -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the aria-current attribute value.toString()Returns the aria-current attribute value.static AriaCurrentReturns the enum constant of this class with the specified name.static AriaCurrent[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAGE
Represents the current page in a set of pages. -
STEP
Represents the current step in a process. -
LOCATION
Represents the current location in an environment or context. -
DATE
Represents the current date in a collection of dates. -
TIME
Represents the current time in a set of times. -
TRUE
Represents the current item (generic). -
FALSE
Does not represent the current item.
-
-
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-current attribute value.- Returns:
- The current state value.
-
toString
Returns the aria-current attribute value.- Overrides:
toStringin classEnum<AriaCurrent>- Returns:
- The current state value.
-