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
-
Resources(String)
- Constructs a resources with the specified base name.
-
Resources(String, Locale)
- Constructs a resources with the specified base name and locale.
-
getResourceBoolean(String, boolean)
- Returns the resource boolean indicated by the specified key.
-
getResourceColor(String, Color)
- Returns the resource color indicated by the specified key.
-
getResourceInteger(String, int)
- Returns the resource integer indicated by the specified key.
-
getResourceString(String)
- Returns the resource string indicated by the specified key.
-
getResourceString(String, String)
- Returns the resource string indicated by the specified key.
Resources
public Resources(String baseName)
- Constructs a resources with the specified base name.
- Parameters:
- baseName - the base name of the resource.
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.
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.
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.
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.
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.
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