All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.editor.EditorResources
java.lang.Object
|
+----jp.kyasu.editor.EditorResources
- public class EditorResources
- extends Object
The EditorResources
class provides the resources shared in
this package.
- Version:
- 16 Jun 1998
- Author:
- Kazuki YASUMATSU
-
DEFAULT_READ_CHARSET
- The default character set for reading.
-
DEFAULT_WRITE_CHARSET
- The default character set for writing.
-
EditorResources()
-
-
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.
DEFAULT_READ_CHARSET
public static String DEFAULT_READ_CHARSET
- The default character set for reading.
DEFAULT_WRITE_CHARSET
public static String DEFAULT_WRITE_CHARSET
- The default character set for writing.
EditorResources
public EditorResources()
getResourceString
public static 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 static 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 static 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 static 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 static 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