public class LocaleService extends Object implements Serializable
Constructor and Description |
---|
LocaleService(UI ui,
UIState.LocaleServiceState state)
Creates a LocaleService bound to the given UI
|
Modifier and Type | Method and Description |
---|---|
void |
addLocale(Locale locale)
Adds a locale to be sent to the client (browser) for date and time entry
etc.
|
protected UIState.LocaleData |
createLocaleData(Locale locale)
Creates a LocaleData instance for transportation to the client
|
UI |
getUI()
Retrieves the UI this service is bound to
|
public LocaleService(UI ui, UIState.LocaleServiceState state)
ui
- The UI which owns the LocaleServicepublic UI getUI()
public void addLocale(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 UIState.LocaleData createLocaleData(Locale locale)
locale
- The locale for which to create a LocaleData objectCopyright © 2019 Vaadin Ltd. All rights reserved.