Example usage for com.vaadin.client LocaleService getShortMonthNames

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

Introduction

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

Prototype

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

Source Link

Usage

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

License:Apache License

public String getShortMonth(int month) {
    try {// w  ww  . j  a  v a 2 s . c  o m
        return LocaleService.getShortMonthNames(locale)[month];
    } catch (final LocaleNotLoadedException e) {
        getLogger().log(Level.SEVERE, "Error in getShortMonth", e);
        return null;
    }
}