Example usage for com.google.gwt.i18n.client DefaultDateTimeFormatInfo DefaultDateTimeFormatInfo

List of usage examples for com.google.gwt.i18n.client DefaultDateTimeFormatInfo DefaultDateTimeFormatInfo

Introduction

In this page you can find the example usage for com.google.gwt.i18n.client DefaultDateTimeFormatInfo DefaultDateTimeFormatInfo.

Prototype

DefaultDateTimeFormatInfo

Source Link

Usage

From source file:com.nabla.wapp.client.model.field.MonthField.java

License:Apache License

public MonthField(final String name, final FieldAttributes... attributes) {
    super(name, attributes);
    final String[] monthNames = new DefaultDateTimeFormatInfo().monthsFull();
    final Map<String, String> values = new LinkedHashMap<String, String>();
    for (Integer i = 0; i < monthNames.length; ++i)
        values.put(i.toString(), monthNames[i]);
    setValueMap(values);//from   w  w  w.  j av a2s  . c  o  m
}

From source file:org.wisepersist.gwtmockito.ng.fakes.FakeLocaleInfoImplProvider.java

License:Apache License

@Override
public final LocaleInfoImpl getFake(final Class<?> type) {
    return new LocaleInfoImpl() {
        @Override/*from  www.j  a va 2 s . c o m*/
        public DateTimeFormatInfo getDateTimeFormatInfo() {
            return new DefaultDateTimeFormatInfo();
        }
    };
}