Example usage for com.vaadin.client LocaleService getMonthNames

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

Introduction

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

Prototype

public static String[] getMonthNames(String locale) throws LocaleNotLoadedException 

Source Link

Usage

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

License:Apache License

public String getMonth(int month) {
    try {/*from   w w w  .j  a  v  a2s . co m*/
        return LocaleService.getMonthNames(locale)[month];
    } catch (final LocaleNotLoadedException e) {
        getLogger().log(Level.SEVERE, "Error in getMonth", e);
        return null;
    }
}