Example usage for com.vaadin.client LocaleService isTwelveHourClock

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

Introduction

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

Prototype

public static boolean isTwelveHourClock(String locale) throws LocaleNotLoadedException 

Source Link

Usage

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

License:Apache License

/**
 * Returns whether the locale has twelve hour, or twenty four hour clock.
 *
 * @return {@code true} if the locale has twelve hour clock, {@code false}
 *         for twenty four clock/*from  ww  w .j  a v a 2s.  c  om*/
 */
public boolean isTwelveHourClock() {
    try {
        return LocaleService.isTwelveHourClock(locale);
    } catch (final LocaleNotLoadedException e) {
        getLogger().log(Level.SEVERE, "Error in isTwelveHourClock", e);
        return false;
    }
}