Example usage for com.vaadin.client LocaleService getAvailableLocales

List of usage examples for com.vaadin.client LocaleService getAvailableLocales

Introduction

In this page you can find the example usage for com.vaadin.client LocaleService getAvailableLocales.

Prototype

public static Set<String> getAvailableLocales() 

Source Link

Usage

From source file:com.vaadin.client.DateTimeService.java

License:Apache License

public void setLocale(String locale) throws LocaleNotLoadedException {
    if (!LocaleService.getAvailableLocales().contains(locale)) {
        throw new LocaleNotLoadedException(locale);
    }//  www .  j  a  va 2 s  . c o  m
    this.locale = locale;
}