public interface ResourceLocator
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature