|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.accessibility.AccessibleBundle
public abstract class AccessibleBundle
This serves as a base class for accessibility "enumerations". These objects are strongly typed; to make up for the lack of true enums in Java. Display should be locale dependent.
AccessibleRole
,
AccessibleState
Field Summary | |
---|---|
protected String |
key
The locale independent name of the object. |
Constructor Summary | |
---|---|
AccessibleBundle()
Default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String key
toDisplayString(String, Locale)
Constructor Detail |
---|
public AccessibleBundle()
Method Detail |
---|
protected String toDisplayString(String resourceBundle, Locale locale)
resourceBundle
- the resource to use for lookuplocale
- the locale to translate to
NullPointerException
- if resourceBundle or locale is nullpublic String toDisplayString(Locale locale)
locale
- the locale to translate to
NullPointerException
- if locale is nullpublic String toDisplayString()
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |