|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.esri.aims.mtier.resources.Res
Simple-to-use access methods for Class resources that are typically stored within a JAR. Use the getImage method to load an image from a JAR, or getProperties to load a Properties set.
This class also provides keyed access to ResourceBundles. You can use getBundleText() to obtain simpe text, such as might be used with a menu name. Use formatMessage() to construct a complex message using text from the ResourceBundle and parameters that you supply. Several helper methods are available for quickly constructing a message with zero, one or two parameters.
Field Summary | |
static String |
DefaultResourceBundleLocation
the default image size "hint" / public static final int DEFAULT_IMAGE_SIZE = 4096; /** the default ResourceBundle location - for ArcIMS middle tier message text. |
Method Summary | |
static String |
formatMessage(String key,
Object[] params)
|
static String |
formatMessage(String key,
Object[] params,
Locale locale)
|
static String |
formatMessage(String bundleLocation,
String key,
Object[] params)
|
static String |
formatMessage(String bundleLocation,
String key,
Object[] params,
Locale locale)
|
static String |
formatMessage0(String key)
|
static String |
formatMessage0(String bundleLocation,
String key)
|
static String |
formatMessage1(String key,
Object param)
|
static String |
formatMessage1(String bundleLocation,
String key,
Object param)
|
static String |
formatMessage2(String key,
Object param1,
Object param2)
|
static String |
formatMessage2(String bundleLocation,
String key,
Object param1,
Object param2)
|
static String |
formatMessage3(String key,
Object param1,
Object param2,
Object param3)
|
static String |
formatMessage3(String bundleLocation,
String key,
Object param1,
Object param2,
Object param3)
|
static String |
formatMessage4(String key,
Object param1,
Object param2,
Object param3,
Object param4)
|
static String |
formatMessage4(String bundleLocation,
String key,
Object param1,
Object param2,
Object param3,
Object param4)
|
static String |
getBundleText(String key)
obtain a message from the SDK ResourceBundle for the given key. |
static String |
getBundleText(String key,
Locale locale)
|
static String |
getBundleText(String bundleLocation,
String key)
obtain a message from the specified ResourceBundle for the given key. |
static String |
getBundleText(String bundleLocation,
String key,
Locale locale)
|
static Properties |
getProperties(Class c,
String r)
obtain a Properties set that is associated with a particular class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String DefaultResourceBundleLocation
Method Detail |
public static Properties getProperties(Class c, String r) throws IOException
c
- the class that the image is associated withr
- the resource name
IOException
- for any problem detected by the systempublic static String getBundleText(String key)
key
- resource bundle key
getBundleText(String,String)
public static String getBundleText(String bundleLocation, String key)
bundleLocation
- resource bundle location, as package path namekey
- resource bundle key
DefaultResourceBundleLocation
public static String getBundleText(String key, Locale locale)
public static String getBundleText(String bundleLocation, String key, Locale locale)
public static String formatMessage(String key, Object[] params)
public static String formatMessage(String bundleLocation, String key, Object[] params)
public static String formatMessage(String key, Object[] params, Locale locale)
public static String formatMessage(String bundleLocation, String key, Object[] params, Locale locale)
public static String formatMessage0(String key)
public static String formatMessage0(String bundleLocation, String key)
public static String formatMessage1(String key, Object param)
public static String formatMessage1(String bundleLocation, String key, Object param)
public static String formatMessage2(String key, Object param1, Object param2)
public static String formatMessage2(String bundleLocation, String key, Object param1, Object param2)
public static String formatMessage3(String key, Object param1, Object param2, Object param3)
public static String formatMessage3(String bundleLocation, String key, Object param1, Object param2, Object param3)
public static String formatMessage4(String key, Object param1, Object param2, Object param3, Object param4)
public static String formatMessage4(String bundleLocation, String key, Object param1, Object param2, Object param3, Object param4)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |