public class Resources
extends java.lang.Object
Resources class provides the resources.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected java.util.ResourceBundle |
resources
The resources.
|
| コンストラクタと説明 |
|---|
Resources(java.lang.String baseName)
Constructs a resources with the specified base name.
|
Resources(java.lang.String baseName,
java.util.Locale locale)
Constructs a resources with the specified base name and locale.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
getResourceBoolean(java.lang.String key,
boolean def)
Returns the resource boolean indicated by the specified key.
|
java.awt.Color |
getResourceColor(java.lang.String key,
java.awt.Color def)
Returns the resource color indicated by the specified key.
|
int |
getResourceInteger(java.lang.String key,
int def)
Returns the resource integer indicated by the specified key.
|
java.lang.String |
getResourceString(java.lang.String key)
Returns the resource string indicated by the specified key.
|
java.lang.String |
getResourceString(java.lang.String key,
java.lang.String def)
Returns the resource string indicated by the specified key.
|
public Resources(java.lang.String baseName)
baseName - the base name of the resource.public Resources(java.lang.String baseName,
java.util.Locale locale)
baseName - the base name of the resource.locale - the locale of the resource.public java.lang.String getResourceString(java.lang.String key)
key - the name of the resource.null
if there is no resource with that key.public java.lang.String getResourceString(java.lang.String key,
java.lang.String def)
key - the name of the resource.def - a default value.public int getResourceInteger(java.lang.String key,
int def)
key - the name of the resource.def - a default integer.public boolean getResourceBoolean(java.lang.String key,
boolean def)
key - the name of the resource.def - a default boolean.public java.awt.Color getResourceColor(java.lang.String key,
java.awt.Color def)
key - the name of the resource.def - a default color.