|
Together Workflow Editor 3.0-1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.jawe.ResourceManager
public class ResourceManager
Utility for implementing multi language support, and other manipulation with property files.
Field Summary | |
---|---|
protected static AdditionalResourceManager |
addResMgr
|
protected static java.util.Locale |
choosenLocale
|
protected static java.util.ResourceBundle |
choosenResourceBundle
|
protected static java.util.Locale |
defaultLocale
|
protected static java.util.ResourceBundle |
defaultResourceBoundle
|
static java.lang.String |
RESOURCE_PATH
|
Constructor Summary | |
---|---|
ResourceManager()
|
Method Summary | |
---|---|
static java.util.Locale |
getChoosenLocale()
Returns the current locale. |
static java.util.ResourceBundle |
getChoosenResourceBundle()
Returns the current locale. |
static java.util.Locale |
getDefaultLocale()
Returns the default locale. |
static java.util.ResourceBundle |
getDefaultResourceBundle()
Returns the default resource bundle. |
static java.lang.String |
getLanguageDependentString(AdditionalResourceManager arm,
java.lang.String nm)
|
static java.lang.String |
getLanguageDependentString(java.lang.String nm)
Gets a language dependent string from the resource bundle. |
static java.net.URL |
getResource(java.util.Properties properties,
java.lang.String key)
Gets the url from a resource string. |
static java.lang.String |
getResourceString(java.util.Properties properties,
java.lang.String nm)
|
static java.util.List |
getResourceStrings(java.util.Properties properties,
java.lang.String startsWith)
|
static java.util.List |
getResourceStrings(java.util.Properties properties,
java.lang.String startsWith,
boolean values)
|
static void |
reconfigure()
|
static void |
setChoosen(java.util.Locale loc)
Sets the new resource and locale to be used. |
static void |
setDefault()
|
static void |
setSystem()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESOURCE_PATH
protected static java.util.Locale defaultLocale
protected static java.util.ResourceBundle defaultResourceBoundle
protected static java.util.Locale choosenLocale
protected static java.util.ResourceBundle choosenResourceBundle
protected static AdditionalResourceManager addResMgr
Constructor Detail |
---|
public ResourceManager()
Method Detail |
---|
public static java.lang.String getLanguageDependentString(java.lang.String nm)
Resource bundle represents the property file. For example, if property file
contains something like this:
nm
- name of the resource to fetch.
public static java.lang.String getLanguageDependentString(AdditionalResourceManager arm, java.lang.String nm)
public static java.lang.String getResourceString(java.util.Properties properties, java.lang.String nm)
public static java.util.List getResourceStrings(java.util.Properties properties, java.lang.String startsWith)
public static java.util.List getResourceStrings(java.util.Properties properties, java.lang.String startsWith, boolean values)
public static java.net.URL getResource(java.util.Properties properties, java.lang.String key)
key
- the string key to the url in the properties.
Class.getResource(java.lang.String)
public static void setDefault()
public static void setSystem()
public static java.util.ResourceBundle getDefaultResourceBundle()
public static java.util.ResourceBundle getChoosenResourceBundle()
public static java.util.Locale getDefaultLocale()
public static java.util.Locale getChoosenLocale()
public static void setChoosen(java.util.Locale loc) throws java.util.MissingResourceException
java.util.MissingResourceException
public static void reconfigure()
|
Together Workflow Editor 3.0-1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |