AccessibleBundle (Java SE 15 & JDK 15) (original) (raw)

Direct Known Subclasses:

[AccessibleRelation](AccessibleRelation.html "class in javax.accessibility"), [AccessibleRole](AccessibleRole.html "class in javax.accessibility"), [AccessibleState](AccessibleState.html "class in javax.accessibility")


public abstract class AccessibleBundle extends Object

Base class used to maintain a strongly typed enumeration. This is the superclass of AccessibleState and AccessibleRole.

The toDisplayString() method allows you to obtain the localized string for a locale independent key from a predefined ResourceBundle for the keys defined in this class. This localized string is intended to be readable by humans.

See Also:

AccessibleRole, AccessibleState

Fields

Modifier and Type Field Description
protected String key The locale independent name of the state.

Constructors

Constructor Description
AccessibleBundle() Construct an AccessibleBundle.
Modifier and Type Method Description
String toDisplayString() Gets localized string describing the key using the default locale.
protected String toDisplayString​(String name,Locale locale) Obtains the key as a localized string.
String toDisplayString​(Locale locale) Obtains the key as a localized string.
String toString() Gets localized string describing the key using the default locale.