|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceLocator
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 performs substitutions. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] substitutions,
boolean translate)
Returns a string resource associated with the key, and performs substitutions. |
Method Detail |
---|
java.net.URL getBaseURL()
java.lang.Object getImage(java.lang.String key)
key
- the key of the image resource.
java.lang.String getString(java.lang.String key)
key
- the key of the string resource.
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.
java.lang.String getString(java.lang.String key, java.lang.Object[] substitutions)
key
- the key of the string.substitutions
- the message substitutions.
getString(String)
,
MessageFormat.format(String, Object[])
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.
getString(String)
,
MessageFormat.format(String, Object[])
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |