|
jbpm-form-modeler-common 1.0-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.formModeler.service.bb.commons.config.componentsFactory.BasicFactoryElement
org.jbpm.formModeler.service.bb.commons.config.LocaleManager
public class LocaleManager
Manager that holds the list of languages supported.
| Constructor Summary | |
|---|---|
LocaleManager()
|
|
| Method Summary | |
|---|---|
static String |
currentLang()
Static getter for current lang. |
static Locale |
currentLocale()
Static getter for current Locale. |
Locale[] |
geLocales()
Locales supported by the formModeler service |
String[] |
getAllLanguages()
Get all language identifiers |
Locale[] |
getAllLocales()
Locales supported by the VM |
String |
getCurrentEditLang()
Get the language in which the system is editing contents. |
Locale |
getCurrentEditLocale()
Current locale for editing contents |
String |
getCurrentLang()
Get the current language for displaying contents |
Locale |
getCurrentLocale()
Current locale for viewing contents |
String |
getDefaultLang()
Get the default language for the platform |
Locale |
getDefaultLocale()
Default locale for the application |
String |
getDefaultLocaleId()
The default localeId for the platform installation |
String[] |
getInstalledLocaleIds()
The list of locales supported. |
String[] |
getLangs()
Langs supported by the formModeler service |
Locale |
getLocaleById(String localeId)
Get a Locale by its id. |
String[] |
getPlatformAvailableLangs()
Langs supported by the formModeler service |
Locale[] |
getPlatformAvailableLocales()
Locales supported by the formModeler service |
protected String[] |
localeToString(Locale[] locales)
|
Object |
localize(Map localizedData)
Given a map of locale->value or language->value, it returns the appropiate value for the current locale. |
static LocaleManager |
lookup()
|
void |
setCurrentEditLang(String langId)
Set the language in which the system is editing contents. |
void |
setCurrentEditLocale(Locale currentEditLocale)
|
void |
setCurrentLang(String langId)
Set the current language for displaying contents |
void |
setCurrentLocale(Locale currentLocale)
|
void |
setDefaultLocaleId(String defaultLocale)
The default localeId for the platform installation |
void |
setInstalledLocaleIds(String[] installedLocales)
The list of locales supported. |
| Methods inherited from class org.jbpm.formModeler.service.bb.commons.config.componentsFactory.BasicFactoryElement |
|---|
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocaleManager()
| Method Detail |
|---|
public static LocaleManager lookup()
public String[] getInstalledLocaleIds()
public void setInstalledLocaleIds(String[] installedLocales)
installedLocales - The list of locales supported.public String getDefaultLocaleId()
public void setDefaultLocaleId(String defaultLocale)
defaultLocale - The default localeId for the platform installationpublic Locale getLocaleById(String localeId)
localeId -
public Locale[] getAllLocales()
public Locale[] getPlatformAvailableLocales()
public Locale[] geLocales()
public Locale getCurrentEditLocale()
public void setCurrentEditLocale(Locale currentEditLocale)
public Locale getCurrentLocale()
public void setCurrentLocale(Locale currentLocale)
public Locale getDefaultLocale()
protected String[] localeToString(Locale[] locales)
public String[] getAllLanguages()
public String[] getPlatformAvailableLangs()
public String[] getLangs()
public String getCurrentEditLang()
public void setCurrentEditLang(String langId)
langId - the language in which the system is editing contents.public String getCurrentLang()
public void setCurrentLang(String langId)
langId - the current language for displaying contentspublic String getDefaultLang()
public Object localize(Map localizedData)
localizedData -
public static Locale currentLocale()
LocaleManager lManager = (LocaleManager) Factory.lookup("org.jbpm.formModeler.service.LocaleManager");
return lManager.getCurrentLocale();
public static String currentLang()
LocaleManager lManager = (LocaleManager) Factory.lookup("org.jbpm.formModeler.service.LocaleManager");
return lManager.getCurrentLang();
|
jbpm-form-modeler-common 1.0-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||