AccessibleRelation
, AccessibleRole
, AccessibleState
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 | Description |
---|---|---|
protected String |
key |
The locale independent name of the state.
|
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 resourceBundleName,
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.
|
protected String key
protected String toDisplayString(String resourceBundleName, Locale locale)
resourceBundleName
- the name of the resource bundle to use for
lookuplocale
- the locale for which to obtain a localized stringpublic String toDisplayString(Locale locale)
locale
- the locale for which to obtain a localized stringpublic String toDisplayString()
public String toString()
toString
in class Object
toDisplayString(java.lang.String, java.util.Locale)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps