Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.accessibility

Class AccessibleBundle

java.lang.Object
|
+--javax.accessibility.AccessibleBundle


public abstract class AccessibleBundle

extends Object

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.

Since:Author:See Also:

Field Summary

java.lang.Stringkey

The locale independent name of the object.

Constructor Summary

AccessibleBundle()

Default constructor.

Method Summary

java.lang.StringtoDisplayString(java.lang.String resourceBundle, java.util.Locale locale)

Obtains the key as a localized string, falling back to the locale-independent version if necessary.
java.lang.StringtoDisplayString(java.util.Locale locale)

Obtains the key as a localized string, falling back to the locale-independent version if necessary.
java.lang.StringtoDisplayString()

Obtains the key as a localized string, using the default locale.
java.lang.StringtoString()

Obtains the key as a localized string, using the default locale.

Field Details

key

protected String key

The locale independent name of the object. This is for the computer, not necessarily for humans; changing it in subclasses is frowned upon.

See Also:


Constructor Details

AccessibleBundle

public AccessibleBundle()

Default constructor.


Method Details

toDisplayString

public String toDisplayString()

Obtains the key as a localized string, using the default locale.

Returns:


toDisplayString

protected String toDisplayString(java.lang.String resourceBundle, java.util.Locale locale)

Obtains the key as a localized string, falling back to the locale-independent version if necessary.

Parameters:

Returns:

Throws:


toDisplayString

public String toDisplayString(java.util.Locale locale)

Obtains the key as a localized string, falling back to the locale-independent version if necessary.

Parameters:

Returns:

Throws:


toString

public String toString()

Obtains the key as a localized string, using the default locale.

Returns: