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

Variable Index

 o DEFAULT_READ_CHARSET
The default character set for reading.
 o DEFAULT_WRITE_CHARSET
The default character set for writing.

Constructor Index

 o EditorResources()

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.

Variables

 o DEFAULT_READ_CHARSET
 public static String DEFAULT_READ_CHARSET
The default character set for reading.

 o DEFAULT_WRITE_CHARSET
 public static String DEFAULT_WRITE_CHARSET
The default character set for writing.

Constructors

 o EditorResources
 public EditorResources()

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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