All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.util.Resources

java.lang.Object
   |
   +----jp.kyasu.util.Resources

public class Resources
extends Object
The Resources class provides the resources.

Version:
10 May 1998
Author:
Kazuki YASUMATSU

Constructor Index

 o Resources(String)
Constructs a resources with the specified base name.
 o Resources(String, Locale)
Constructs a resources with the specified base name and locale.

Method Index

 o getResourceBoolean(String, boolean)
Returns the resource boolean indicated by the specified key.
 o getResourceColor(String, Color)
Returns the resource color indicated by the specified key.
 o getResourceInteger(String, int)
Returns the resource integer indicated by the specified key.
 o getResourceString(String)
Returns the resource string indicated by the specified key.
 o getResourceString(String, String)
Returns the resource string indicated by the specified key.

Constructors

 o Resources
 public Resources(String baseName)
Constructs a resources with the specified base name.

Parameters:
baseName - the base name of the resource.
 o Resources
 public Resources(String baseName,
                  Locale locale)
Constructs a resources with the specified base name and locale.

Parameters:
baseName - the base name of the resource.
locale - the locale of the resource.

Methods

 o getResourceString
 public String getResourceString(String key)
Returns the resource string indicated by the specified key.

Parameters:
key - the name of the resource.
Returns:
the string value of the resource, or null if there is no resource with that key.
 o getResourceString
 public String getResourceString(String key,
                                 String def)
Returns the resource string indicated by the specified key.

Parameters:
key - the name of the resource.
def - a default value.
Returns:
the string value of the resource, or the default value if there is no resource with that key.
 o getResourceInteger
 public int getResourceInteger(String key,
                               int def)
Returns the resource integer indicated by the specified key.

Parameters:
key - the name of the resource.
def - a default integer.
Returns:
the integer value of the resource, or the default integer. if there is no resource with that key.
 o getResourceBoolean
 public boolean getResourceBoolean(String key,
                                   boolean def)
Returns the resource boolean indicated by the specified key.

Parameters:
key - the name of the resource.
def - a default boolean.
Returns:
the boolean value of the resource, or the default boolean. if there is no resource with that key.
 o getResourceColor
 public Color getResourceColor(String key,
                               Color def)
Returns the resource color indicated by the specified key.

Parameters:
key - the name of the resource.
def - a default color.
Returns:
the color value of the resource, or the default color. if there is no resource with that key.

All Packages  Class Hierarchy  This Package  Previous  Next  Index