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.
AccessibleRole,
AccessibleState
| Modifier and Type | Field and Description |
|---|---|
protected String |
key
The locale independent name of the state.
|
| Constructor and Description |
|---|
AccessibleBundle()
Construct an
AccessibleBundle.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toDisplayString()
Gets localized string describing the key using the default locale.
|
String |
toDisplayString(Locale
Obtains the key as a localized string.
|
protected String |
toDisplayString(String
Obtains the key as a localized string.
|
String |
toString()
Gets localized string describing the key using the default locale.
|
protected Stringkey
protected StringtoDisplayString(String resourceBundleName, Locale locale)
resourceBundleName - the name of the resource bundle to use for lookup
locale - the locale for which to obtain a localized string
public StringtoDisplayString(Locale locale)
locale - the locale for which to obtain a localized string
public StringtoDisplayString()
public StringtoString()
toString in class
Object
toDisplayString(java.lang.String, java.util.Locale)