Example usage for com.vaadin.client LocaleService getShortDayNames

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

Introduction

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

Prototype

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

Source Link

Usage

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

License:Apache License

/**
 * Returns the localized short name of the specified day.
 *
 * @param day/*from ww  w  .  ja va  2 s.c o m*/
 *            the day, {@code 0} is {@code SUNDAY}
 * @return the localized short name
 */
public String getShortDay(int day) {
    try {
        return LocaleService.getShortDayNames(locale)[day];
    } catch (final LocaleNotLoadedException e) {
        getLogger().log(Level.SEVERE, "Error in getShortDay", e);
        return null;
    }
}