Package com.google.gwt.i18n.client
Class DateTimeFormatInfoAdapter
- java.lang.Object
-
- com.google.gwt.i18n.shared.DefaultDateTimeFormatInfo
-
- com.google.gwt.i18n.client.DefaultDateTimeFormatInfo
-
- com.google.gwt.i18n.client.DateTimeFormatInfoAdapter
-
- All Implemented Interfaces:
DateTimeFormatInfo
,DateTimeFormatInfo
class DateTimeFormatInfoAdapter extends DefaultDateTimeFormatInfo
Adapter that makes aDateTimeConstants
implementation suitable for use with something that wants aDateTimeFormatInfo
. Values not present inDateTimeConstants
receive default values.
-
-
Constructor Summary
Constructors Constructor Description DateTimeFormatInfoAdapter(DateTimeConstants dtc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
ampms()
Returns array of strings containing abbreviations for Ante Meridiem and Post Meridiem.java.lang.String
dateFormatFull()
Returns a "full" date format.java.lang.String
dateFormatLong()
Returns a "long" date format.java.lang.String
dateFormatMedium()
Returns a "medium" date format.java.lang.String
dateFormatShort()
Returns a "short" date format.java.lang.String[]
erasFull()
Returns an array of the full era names.java.lang.String[]
erasShort()
Returns abbreviations of the era names.int
firstDayOfTheWeek()
Returns the day which generally comes first in a weekly calendar view, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.java.lang.String[]
monthsFull()
Returns an array of full month names.java.lang.String[]
monthsFullStandalone()
Returns an array of month names for use in a stand-alone context.java.lang.String[]
monthsNarrow()
Returns an array of the shortest abbreviations for months, typically a single character and not guaranteed to be unique.java.lang.String[]
monthsNarrowStandalone()
Returns an array of the shortest abbreviations for months suitable for use in a stand-alone context, typically a single character and not guaranteed to be unique.java.lang.String[]
monthsShort()
Returns an array of month abbreviations.java.lang.String[]
monthsShortStandalone()
Returns an array of month abbreviations, suitable for use in a stand-alone context.java.lang.String[]
quartersFull()
Returns an array of full quarter names.java.lang.String[]
quartersShort()
Returns an array of abbreviations for quarters.java.lang.String
timeFormatFull()
Returns a "full" time format.java.lang.String
timeFormatLong()
Returns a "long" time format.java.lang.String
timeFormatMedium()
Returns a "medium" time format.java.lang.String
timeFormatShort()
Returns a "short" time format.java.lang.String[]
weekdaysFull()
Returns an array of the full names of weekdays.java.lang.String[]
weekdaysFullStandalone()
Returns an array of the full names of weekdays, suitable for use in a stand-alone context.java.lang.String[]
weekdaysNarrow()
Returns an array of the shortest abbreviations for weekdays, typically a single character and not guaranteed to be unique.java.lang.String[]
weekdaysNarrowStandalone()
Returns an array of the shortest abbreviations for weekdays suitable for use in a stand-alone context, typically a single character and not guaranteed to be unique.java.lang.String[]
weekdaysShort()
Returns an array of abbreviations for weekdays.java.lang.String[]
weekdaysShortStandalone()
Returns an array of abbreviations for weekdays, suitable for use in a stand-alone context.int
weekendEnd()
Returns the day which ends the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.int
weekendStart()
Returns the day which starts the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.-
Methods inherited from class com.google.gwt.i18n.shared.DefaultDateTimeFormatInfo
dateFormat, dateTime, dateTimeFull, dateTimeLong, dateTimeMedium, dateTimeShort, formatDay, formatHour12Minute, formatHour12MinuteSecond, formatHour24Minute, formatHour24MinuteSecond, formatMinuteSecond, formatMonthAbbrev, formatMonthAbbrevDay, formatMonthFull, formatMonthFullDay, formatMonthFullWeekdayDay, formatMonthNumDay, formatYear, formatYearMonthAbbrev, formatYearMonthAbbrevDay, formatYearMonthFull, formatYearMonthFullDay, formatYearMonthNum, formatYearMonthNumDay, formatYearMonthWeekdayDay, formatYearQuarterFull, formatYearQuarterShort, timeFormat
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gwt.i18n.shared.DateTimeFormatInfo
dateFormat, dateTime, dateTimeFull, dateTimeLong, dateTimeMedium, dateTimeShort, formatDay, formatHour12Minute, formatHour12MinuteSecond, formatHour24Minute, formatHour24MinuteSecond, formatMinuteSecond, formatMonthAbbrev, formatMonthAbbrevDay, formatMonthFull, formatMonthFullDay, formatMonthFullWeekdayDay, formatMonthNumDay, formatYear, formatYearMonthAbbrev, formatYearMonthAbbrevDay, formatYearMonthFull, formatYearMonthFullDay, formatYearMonthNum, formatYearMonthNumDay, formatYearMonthWeekdayDay, formatYearQuarterFull, formatYearQuarterShort, timeFormat
-
-
-
-
Constructor Detail
-
DateTimeFormatInfoAdapter
public DateTimeFormatInfoAdapter(DateTimeConstants dtc)
-
-
Method Detail
-
ampms
public java.lang.String[] ampms()
Description copied from interface:DateTimeFormatInfo
Returns array of strings containing abbreviations for Ante Meridiem and Post Meridiem.- Specified by:
ampms
in interfaceDateTimeFormatInfo
- Overrides:
ampms
in classDefaultDateTimeFormatInfo
-
dateFormatFull
public java.lang.String dateFormatFull()
Description copied from interface:DateTimeFormatInfo
Returns a "full" date format.- Specified by:
dateFormatFull
in interfaceDateTimeFormatInfo
- Overrides:
dateFormatFull
in classDefaultDateTimeFormatInfo
-
dateFormatLong
public java.lang.String dateFormatLong()
Description copied from interface:DateTimeFormatInfo
Returns a "long" date format.- Specified by:
dateFormatLong
in interfaceDateTimeFormatInfo
- Overrides:
dateFormatLong
in classDefaultDateTimeFormatInfo
-
dateFormatMedium
public java.lang.String dateFormatMedium()
Description copied from interface:DateTimeFormatInfo
Returns a "medium" date format.- Specified by:
dateFormatMedium
in interfaceDateTimeFormatInfo
- Overrides:
dateFormatMedium
in classDefaultDateTimeFormatInfo
-
dateFormatShort
public java.lang.String dateFormatShort()
Description copied from interface:DateTimeFormatInfo
Returns a "short" date format.- Specified by:
dateFormatShort
in interfaceDateTimeFormatInfo
- Overrides:
dateFormatShort
in classDefaultDateTimeFormatInfo
-
erasFull
public java.lang.String[] erasFull()
Description copied from interface:DateTimeFormatInfo
Returns an array of the full era names.- Specified by:
erasFull
in interfaceDateTimeFormatInfo
- Overrides:
erasFull
in classDefaultDateTimeFormatInfo
-
erasShort
public java.lang.String[] erasShort()
Description copied from interface:DateTimeFormatInfo
Returns abbreviations of the era names.- Specified by:
erasShort
in interfaceDateTimeFormatInfo
- Overrides:
erasShort
in classDefaultDateTimeFormatInfo
-
firstDayOfTheWeek
public int firstDayOfTheWeek()
Description copied from interface:DateTimeFormatInfo
Returns the day which generally comes first in a weekly calendar view, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.- Specified by:
firstDayOfTheWeek
in interfaceDateTimeFormatInfo
- Overrides:
firstDayOfTheWeek
in classDefaultDateTimeFormatInfo
-
monthsFull
public java.lang.String[] monthsFull()
Description copied from interface:DateTimeFormatInfo
Returns an array of full month names.- Specified by:
monthsFull
in interfaceDateTimeFormatInfo
- Overrides:
monthsFull
in classDefaultDateTimeFormatInfo
-
monthsFullStandalone
public java.lang.String[] monthsFullStandalone()
Description copied from interface:DateTimeFormatInfo
Returns an array of month names for use in a stand-alone context.- Specified by:
monthsFullStandalone
in interfaceDateTimeFormatInfo
- Overrides:
monthsFullStandalone
in classDefaultDateTimeFormatInfo
-
monthsNarrow
public java.lang.String[] monthsNarrow()
Description copied from interface:DateTimeFormatInfo
Returns an array of the shortest abbreviations for months, typically a single character and not guaranteed to be unique.- Specified by:
monthsNarrow
in interfaceDateTimeFormatInfo
- Overrides:
monthsNarrow
in classDefaultDateTimeFormatInfo
-
monthsNarrowStandalone
public java.lang.String[] monthsNarrowStandalone()
Description copied from interface:DateTimeFormatInfo
Returns an array of the shortest abbreviations for months suitable for use in a stand-alone context, typically a single character and not guaranteed to be unique.- Specified by:
monthsNarrowStandalone
in interfaceDateTimeFormatInfo
- Overrides:
monthsNarrowStandalone
in classDefaultDateTimeFormatInfo
-
monthsShort
public java.lang.String[] monthsShort()
Description copied from interface:DateTimeFormatInfo
Returns an array of month abbreviations.- Specified by:
monthsShort
in interfaceDateTimeFormatInfo
- Overrides:
monthsShort
in classDefaultDateTimeFormatInfo
-
monthsShortStandalone
public java.lang.String[] monthsShortStandalone()
Description copied from interface:DateTimeFormatInfo
Returns an array of month abbreviations, suitable for use in a stand-alone context.- Specified by:
monthsShortStandalone
in interfaceDateTimeFormatInfo
- Overrides:
monthsShortStandalone
in classDefaultDateTimeFormatInfo
-
quartersFull
public java.lang.String[] quartersFull()
Description copied from interface:DateTimeFormatInfo
Returns an array of full quarter names.- Specified by:
quartersFull
in interfaceDateTimeFormatInfo
- Overrides:
quartersFull
in classDefaultDateTimeFormatInfo
-
quartersShort
public java.lang.String[] quartersShort()
Description copied from interface:DateTimeFormatInfo
Returns an array of abbreviations for quarters.- Specified by:
quartersShort
in interfaceDateTimeFormatInfo
- Overrides:
quartersShort
in classDefaultDateTimeFormatInfo
-
timeFormatFull
public java.lang.String timeFormatFull()
Description copied from interface:DateTimeFormatInfo
Returns a "full" time format.- Specified by:
timeFormatFull
in interfaceDateTimeFormatInfo
- Overrides:
timeFormatFull
in classDefaultDateTimeFormatInfo
-
timeFormatLong
public java.lang.String timeFormatLong()
Description copied from interface:DateTimeFormatInfo
Returns a "long" time format.- Specified by:
timeFormatLong
in interfaceDateTimeFormatInfo
- Overrides:
timeFormatLong
in classDefaultDateTimeFormatInfo
-
timeFormatMedium
public java.lang.String timeFormatMedium()
Description copied from interface:DateTimeFormatInfo
Returns a "medium" time format.- Specified by:
timeFormatMedium
in interfaceDateTimeFormatInfo
- Overrides:
timeFormatMedium
in classDefaultDateTimeFormatInfo
-
timeFormatShort
public java.lang.String timeFormatShort()
Description copied from interface:DateTimeFormatInfo
Returns a "short" time format.- Specified by:
timeFormatShort
in interfaceDateTimeFormatInfo
- Overrides:
timeFormatShort
in classDefaultDateTimeFormatInfo
-
weekdaysFull
public java.lang.String[] weekdaysFull()
Description copied from interface:DateTimeFormatInfo
Returns an array of the full names of weekdays.- Specified by:
weekdaysFull
in interfaceDateTimeFormatInfo
- Overrides:
weekdaysFull
in classDefaultDateTimeFormatInfo
-
weekdaysFullStandalone
public java.lang.String[] weekdaysFullStandalone()
Description copied from interface:DateTimeFormatInfo
Returns an array of the full names of weekdays, suitable for use in a stand-alone context.- Specified by:
weekdaysFullStandalone
in interfaceDateTimeFormatInfo
- Overrides:
weekdaysFullStandalone
in classDefaultDateTimeFormatInfo
-
weekdaysNarrow
public java.lang.String[] weekdaysNarrow()
Description copied from interface:DateTimeFormatInfo
Returns an array of the shortest abbreviations for weekdays, typically a single character and not guaranteed to be unique.- Specified by:
weekdaysNarrow
in interfaceDateTimeFormatInfo
- Overrides:
weekdaysNarrow
in classDefaultDateTimeFormatInfo
-
weekdaysNarrowStandalone
public java.lang.String[] weekdaysNarrowStandalone()
Description copied from interface:DateTimeFormatInfo
Returns an array of the shortest abbreviations for weekdays suitable for use in a stand-alone context, typically a single character and not guaranteed to be unique.- Specified by:
weekdaysNarrowStandalone
in interfaceDateTimeFormatInfo
- Overrides:
weekdaysNarrowStandalone
in classDefaultDateTimeFormatInfo
-
weekdaysShort
public java.lang.String[] weekdaysShort()
Description copied from interface:DateTimeFormatInfo
Returns an array of abbreviations for weekdays.- Specified by:
weekdaysShort
in interfaceDateTimeFormatInfo
- Overrides:
weekdaysShort
in classDefaultDateTimeFormatInfo
-
weekdaysShortStandalone
public java.lang.String[] weekdaysShortStandalone()
Description copied from interface:DateTimeFormatInfo
Returns an array of abbreviations for weekdays, suitable for use in a stand-alone context.- Specified by:
weekdaysShortStandalone
in interfaceDateTimeFormatInfo
- Overrides:
weekdaysShortStandalone
in classDefaultDateTimeFormatInfo
-
weekendEnd
public int weekendEnd()
Description copied from interface:DateTimeFormatInfo
Returns the day which ends the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.Note that this value may be numerically less than
DateTimeFormatInfo.weekendStart()
- for example,DateTimeFormatInfo.weekendStart()
of 6 andDateTimeFormatInfo.weekendEnd()
of 0 means Saturday and Sunday are the weekend.- Specified by:
weekendEnd
in interfaceDateTimeFormatInfo
- Overrides:
weekendEnd
in classDefaultDateTimeFormatInfo
-
weekendStart
public int weekendStart()
Description copied from interface:DateTimeFormatInfo
Returns the day which starts the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.- Specified by:
weekendStart
in interfaceDateTimeFormatInfo
- Overrides:
weekendStart
in classDefaultDateTimeFormatInfo
-
-