|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.LocaleService
public class LocaleService
Server side service which handles locale and the transmission of locale date to the client side LocaleService.
Constructor Summary | |
---|---|
LocaleService(UI ui,
com.vaadin.shared.ui.ui.UIState.LocaleServiceState state)
Creates a LocaleService bound to the given UI |
Method Summary | |
---|---|
void |
addLocale(java.util.Locale locale)
Adds a locale to be sent to the client (browser) for date and time entry etc. |
protected com.vaadin.shared.ui.ui.UIState.LocaleData |
createLocaleData(java.util.Locale locale)
Creates a LocaleData instance for transportation to the client |
UI |
getUI()
Retrieves the UI this service is bound to |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocaleService(UI ui, com.vaadin.shared.ui.ui.UIState.LocaleServiceState state)
ui
- The UI which owns the LocaleServiceMethod Detail |
---|
public UI getUI()
public void addLocale(java.util.Locale locale)
Locale
instances and sent to the client when needed, eliminating
the need to use the Locale
class and all the framework behind it
on the client.
locale
- The locale which is required on the client sideprotected com.vaadin.shared.ui.ui.UIState.LocaleData createLocaleData(java.util.Locale locale)
locale
- The locale for which to create a LocaleData object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |