Example usage for com.vaadin.client LocaleService getAmPmStrings

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

Introduction

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

Prototype

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

Source Link

Usage

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

License:Apache License

public String[] getAmPmStrings() {
    try {/* ww  w.  j av a 2s.c o  m*/
        return LocaleService.getAmPmStrings(locale);
    } catch (final LocaleNotLoadedException e) {
        // TODO can this practically even happen? Should die instead?
        getLogger().log(Level.SEVERE, "Locale not loaded, using fallback : AM/PM", e);
        return DEFAULT_AMPM_STRINGS;
    }
}