|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
A locator of Java resources.
| Method Summary | |
|---|---|
java.net.URL |
getBaseURL()
Returns the URL from which all resources are based. |
java.lang.Object |
getImage(java.lang.String key)
Returns the description that can be used to create the image resource associated with the key. |
java.lang.String |
getString(java.lang.String key)
Returns the string resource associated with the key. |
java.lang.String |
getString(java.lang.String key,
boolean translate)
Returns the string resource associated with the key. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] substitutions)
Returns a string resource associated with the key, and peforms substitutions. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] substitutions,
boolean translate)
Returns a string resource associated with the key, and peforms substitutions. |
| Method Detail |
public java.net.URL getBaseURL()
public java.lang.Object getImage(java.lang.String key)
key - the key of the image resource.
public java.lang.String getString(java.lang.String key)
key - the key of the string resource.
public java.lang.String getString(java.lang.String key,
boolean translate)
key - the key of the string resource.translate - whether the result is to be translated to the current locale.
public java.lang.String getString(java.lang.String key,
java.lang.Object[] substitutions)
key - the key of the string.substitutions - the message substitutions.
ResourceLocator.getString(String),
MessageFormat.format(String, Object[])
public java.lang.String getString(java.lang.String key,
java.lang.Object[] substitutions,
boolean translate)
key - the key of the string.substitutions - the message substitutions.translate - whether the result is to be translated to the current locale.
ResourceLocator.getString(String),
MessageFormat.format(String, Object[])
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||