|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.ui.client.services.AbstractService
org.overlord.sramp.ui.client.services.i18n.LocalizationService
public class LocalizationService
A concrete implementation of an ILocalizationService.
| Constructor Summary | |
|---|---|
LocalizationService()
Constructor. |
|
| Method Summary | |
|---|---|
String |
formatDate(Date date)
Called to format the given date. |
String |
formatDateTime(Date dateTime)
Called to format the given date/time. |
protected void |
initDictionary(Map<String,String> messages)
Initializes the localization dictionary. |
void |
start(ServiceLifecycleContext context,
IServiceLifecycleListener serviceListener)
Called to start the service. |
String |
translate(String key,
Object... args)
Called to translate a message using whatever the current locale might be. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalizationService()
| Method Detail |
|---|
public void start(ServiceLifecycleContext context,
IServiceLifecycleListener serviceListener)
IService
start in interface IServicestart in class AbstractServiceAbstractService.start(org.overlord.sramp.ui.client.services.ServiceLifecycleContext, org.overlord.sramp.ui.client.services.IServiceLifecycleListener)protected void initDictionary(Map<String,String> messages)
messages -
public String translate(String key,
Object... args)
ILocalizationService
translate in interface ILocalizationServicekey - the message key
ILocalizationService.translate(java.lang.String, java.lang.Object[])public String formatDate(Date date)
ILocalizationService
formatDate in interface ILocalizationServiceILocalizationService.formatDate(java.util.Date)public String formatDateTime(Date dateTime)
ILocalizationService
formatDateTime in interface ILocalizationServiceILocalizationService.formatDateTime(java.util.Date)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||