public abstract class AccessibleBundle extends Object
用于维护强类型枚举的基类。这是AccessibleState
和AccessibleRole
父类。
的todisplaystring方法允许你获得本地化的字符串从该类中定义的键可以预定义现场独立按键。这个本地化的字符串的目的是为人类可读的。
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.