Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

nui::TResourceSupplier Class Reference

List of all members.

Public Methods

 TResourceSupplier (ResourceBundle tRESOURCE_BUNDLE)
Color getColor (final String kyRESOURCE_NAME)
String getText (final String kyRESOURCE_NAME)
char getMnemonic (final String kyRESOURCE_NAME)
boolean hasMnemonic (final String kyRESOURCE_NAME)

Protected Methods

String getResourceString (final String kyRESOURCE_NAME, final String kySUFFIX)

Detailed Description

Interface for resources containing locale-specific objects. This class uses a resource bundle for managing the resources. A unique resource name may have different objects bound; it does the trick by appending a suffix for each kind of object it can have bound.

Definition at line 40 of file TResourceSupplier.java.


Constructor & Destructor Documentation

nui::TResourceSupplier::TResourceSupplier ResourceBundle    tRESOURCE_BUNDLE [inline]
 

Builds a new instance.

Parameters:
tRESOURCE_BUNDLE  Resource bundle.

Definition at line 64 of file TResourceSupplier.java.


Member Function Documentation

Color nui::TResourceSupplier::getColor final String    kyRESOURCE_NAME [inline]
 

Returns the color bound to the resource named kyRESOURCE_NAME.

Parameters:
kyRESOURCE_NAME  Resource name.
Returns:
The color. @warn The resource does not correspond to a resource in a ResourceBundle sense.

Definition at line 97 of file TResourceSupplier.java.

References nui::TResourceSupplier::getResourceString().

char nui::TResourceSupplier::getMnemonic final String    kyRESOURCE_NAME [inline]
 

Returns the mnemonic bound to the resource named kyRESOURCE_NAME.

Parameters:
kyRESOURCE_NAME  Resource name.
Returns:
The mnemonic. @warn The resource does not correspond to a resource in a ResourceBundle sense.

Definition at line 119 of file TResourceSupplier.java.

References nui::TResourceSupplier::getResourceString().

String nui::TResourceSupplier::getResourceString final String    kyRESOURCE_NAME,
final String    kySUFFIX
[inline, protected]
 

Returns the resource string bound to the resource named kyRESOURCE_NAME and with the suffix kySUFFIX.

Parameters:
kyRESOURCE_NAME  Resource name.
kySUFFIX  Resource suffix.
Returns:
The resource string.

Definition at line 81 of file TResourceSupplier.java.

Referenced by nui::TResourceSupplier::getColor(), nui::TResourceSupplier::getMnemonic(), nui::TResourceSupplier::getText(), and nui::TResourceSupplier::hasMnemonic().

String nui::TResourceSupplier::getText final String    kyRESOURCE_NAME [inline]
 

Returns the text bound to the resource named kyRESOURCE_NAME.

Parameters:
kyRESOURCE_NAME  Resource name.
Returns:
The text. @warn The resource does not correspond to a resource in a ResourceBundle sense.

Definition at line 108 of file TResourceSupplier.java.

References nui::TResourceSupplier::getResourceString().

boolean nui::TResourceSupplier::hasMnemonic final String    kyRESOURCE_NAME [inline]
 

Returns true if the resource named kyRESOURCE_NAME has bound a mnemonic.

Parameters:
kyRESOURCE_NAME  Resource name.
Returns:
True if the resource has a mnemonic.

Definition at line 129 of file TResourceSupplier.java.

References nui::TResourceSupplier::getResourceString().


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:27 2003 for MPCL by doxygen1.2.18