Class ResUtil
java.lang.Object
org.jjazz.utilities.api.ResUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceBundleLook for a Bundle.properties in the same package than the specified class.static StringgetCommonString(String key, Object... params) Get a translated string for common messages which are used at several places in the application.static StringRetrieve the resource string from key.
-
Constructor Details
-
ResUtil
public ResUtil()
-
-
Method Details
-
getString
Retrieve the resource string from key.Assume that the resource bundle is in aClass.getPackageName()+"/Bundle*".
- Parameters:
cl-key-params- Optional parameters to be used if the resource string is a compound message- Returns:
-
getBundle
Look for a Bundle.properties in the same package than the specified class.- Parameters:
cl-- Returns:
-
getCommonString
Get a translated string for common messages which are used at several places in the application.See file resources/org/jjazz/utilities/api/Bundle.properties for the available common strings.
- Parameters:
key-params- Optional parameters to be used if the resource string is a compound message- Returns:
- Can't be null
-