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