public abstract class AccessibleBundle extends Object
AccessibleRole,
AccessibleState| Modifier and Type | Field and Description |
|---|---|
protected String |
key
The locale independent name of the object.
|
| Constructor and Description |
|---|
AccessibleBundle()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toDisplayString()
Obtains the key as a localized string, using the default locale.
|
String |
toDisplayString(Locale locale)
Obtains the key as a localized string, falling back to the
locale-independent version if necessary.
|
protected String |
toDisplayString(String resourceBundle,
Locale locale)
Obtains the key as a localized string, falling back to the
locale-independent version if necessary.
|
String |
toString()
Obtains the key as a localized string, using the default locale.
|
protected String key
toDisplayString(String, Locale)public AccessibleBundle()
protected String toDisplayString(String resourceBundle, Locale locale)
resourceBundle - the resource to use for lookuplocale - the locale to translate toNullPointerException - if resourceBundle or locale is nullpublic String toDisplayString(Locale locale)
locale - the locale to translate toNullPointerException - if locale is nullpublic String toDisplayString()
public String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)