public abstract class AccessibleBundle extends Object
 用于维护强类型枚举的基类。 这是AccessibleState和AccessibleRole的超类 。 
toDisplayString方法允许您从此类中定义的键从预定义的ResourceBundle中获取与区域设置无关的键的本地化字符串。 这个本地化的字符串旨在被人类所读取。
AccessibleRole , AccessibleState 
       | Constructor and Description | 
|---|
| AccessibleBundle()
              构造一个 
              AccessibleBundle。 | 
| Modifier and Type | Method and Description | 
|---|---|
| String | toDisplayString()
              使用默认语言环境获取描述密钥的本地化字符串。 
             | 
| String | toDisplayString(Locale locale)
              获取密钥作为本地化字符串。 
             | 
| protected String | toDisplayString(String resourceBundleName, Locale locale)
              获取密钥作为本地化字符串。 
             | 
| String | toString()
              使用默认语言环境获取描述密钥的本地化字符串。 
             | 
protected String key
protected String toDisplayString(String resourceBundleName, Locale locale)
resourceBundleName - 用于查找的资源束的名称 
           locale - 要获取本地化字符串的区域设置 
           public String toDisplayString(Locale locale)
locale - 获取本地化字符串的区域设置 
           public String toDisplayString()
public String toString()
toString在 
            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, 2014, Oracle and/or its affiliates. All rights reserved.