javax.accessibility
Class AccessibleBundle

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.accessibility.AccessibleBundle
Direct Known Subclasses:
AccessibleRelation sample code for javax.accessibility.AccessibleRelation definition code for javax.accessibility.AccessibleRelation , AccessibleRole sample code for javax.accessibility.AccessibleRole definition code for javax.accessibility.AccessibleRole , AccessibleState sample code for javax.accessibility.AccessibleState definition code for javax.accessibility.AccessibleState

public abstract class AccessibleBundle
extends Object sample code for java.lang.Object definition code for java.lang.Object

Base class used to maintain a strongly typed enumeration. This is the superclass of AccessibleState sample code for javax.accessibility.AccessibleState definition code for javax.accessibility.AccessibleState and AccessibleRole sample code for javax.accessibility.AccessibleRole definition code for javax.accessibility.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.

See Also:
AccessibleRole sample code for javax.accessibility.AccessibleRole definition code for javax.accessibility.AccessibleRole , AccessibleState sample code for javax.accessibility.AccessibleState definition code for javax.accessibility.AccessibleState

Field Summary
protected  String sample code for java.lang.String definition code for java.lang.String key sample code for javax.accessibility.AccessibleBundle.key definition code for javax.accessibility.AccessibleBundle.key
          The locale independent name of the state.
 
Constructor Summary
AccessibleBundle sample code for javax.accessibility.AccessibleBundle.AccessibleBundle() definition code for javax.accessibility.AccessibleBundle.AccessibleBundle() ()
           
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString() definition code for javax.accessibility.AccessibleBundle.toDisplayString() ()
          Gets localized string describing the key using the default locale.
 String sample code for java.lang.String definition code for java.lang.String toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.util.Locale) (Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
          Obtains the key as a localized string.
protected  String sample code for java.lang.String definition code for java.lang.String toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) (String sample code for java.lang.String definition code for java.lang.String  resourceBundleName, Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
          Obtains the key as a localized string.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.accessibility.AccessibleBundle.toString() definition code for javax.accessibility.AccessibleBundle.toString() ()
          Gets localized string describing the key using the default locale.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

key sample code for javax.accessibility.AccessibleBundle.key

protected String sample code for java.lang.String definition code for java.lang.String  key
The locale independent name of the state. This is a programmatic name that is not intended to be read by humans.

See Also:
toDisplayString(java.lang.String, java.util.Locale) sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)
Constructor Detail

AccessibleBundle sample code for javax.accessibility.AccessibleBundle() definition code for javax.accessibility.AccessibleBundle()

public AccessibleBundle()
Method Detail

toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)

protected String sample code for java.lang.String definition code for java.lang.String  toDisplayString(String sample code for java.lang.String definition code for java.lang.String  resourceBundleName,
                                 Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
Obtains the key as a localized string. If a localized string cannot be found for the key, the locale independent key stored in the role will be returned. This method is intended to be used only by subclasses so that they can specify their own resource bundles which contain localized strings for their keys.

Parameters:
resourceBundleName - the name of the resource bundle to use for lookup
locale - the locale for which to obtain a localized string
Returns:
a localized String for the key.

toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.util.Locale)

public String sample code for java.lang.String definition code for java.lang.String  toDisplayString(Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
Obtains the key as a localized string. If a localized string cannot be found for the key, the locale independent key stored in the role will be returned.

Parameters:
locale - the locale for which to obtain a localized string
Returns:
a localized String for the key.

toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString() definition code for javax.accessibility.AccessibleBundle.toDisplayString()

public String sample code for java.lang.String definition code for java.lang.String  toDisplayString()
Gets localized string describing the key using the default locale.

Returns:
a localized String describing the key for the default locale

toString sample code for javax.accessibility.AccessibleBundle.toString() definition code for javax.accessibility.AccessibleBundle.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Gets localized string describing the key using the default locale.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a localized String describing the key using the default locale
See Also:
toDisplayString(java.lang.String, java.util.Locale) sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)