Example usage for com.vaadin.client LocaleService getDayNames

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

Introduction

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

Prototype

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

Source Link

Usage

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

License:Apache License

public String getDay(int day) {
    try {//from  w  w w .j a  v  a2 s .co m
        return LocaleService.getDayNames(locale)[day];
    } catch (final LocaleNotLoadedException e) {
        getLogger().log(Level.SEVERE, "Error in getDay", e);
        return null;
    }
}