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 aDateTimeConstantsimplementation suitable for use with something that wants aDateTimeFormatInfo. Values not present inDateTimeConstantsreceive 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.StringdateFormatFull()Returns a "full" date format.java.lang.StringdateFormatLong()Returns a "long" date format.java.lang.StringdateFormatMedium()Returns a "medium" date format.java.lang.StringdateFormatShort()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.intfirstDayOfTheWeek()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.StringtimeFormatFull()Returns a "full" time format.java.lang.StringtimeFormatLong()Returns a "long" time format.java.lang.StringtimeFormatMedium()Returns a "medium" time format.java.lang.StringtimeFormatShort()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.intweekendEnd()Returns the day which ends the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().intweekendStart()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:DateTimeFormatInfoReturns array of strings containing abbreviations for Ante Meridiem and Post Meridiem.- Specified by:
ampmsin interfaceDateTimeFormatInfo- Overrides:
ampmsin classDefaultDateTimeFormatInfo
-
dateFormatFull
public java.lang.String dateFormatFull()
Description copied from interface:DateTimeFormatInfoReturns a "full" date format.- Specified by:
dateFormatFullin interfaceDateTimeFormatInfo- Overrides:
dateFormatFullin classDefaultDateTimeFormatInfo
-
dateFormatLong
public java.lang.String dateFormatLong()
Description copied from interface:DateTimeFormatInfoReturns a "long" date format.- Specified by:
dateFormatLongin interfaceDateTimeFormatInfo- Overrides:
dateFormatLongin classDefaultDateTimeFormatInfo
-
dateFormatMedium
public java.lang.String dateFormatMedium()
Description copied from interface:DateTimeFormatInfoReturns a "medium" date format.- Specified by:
dateFormatMediumin interfaceDateTimeFormatInfo- Overrides:
dateFormatMediumin classDefaultDateTimeFormatInfo
-
dateFormatShort
public java.lang.String dateFormatShort()
Description copied from interface:DateTimeFormatInfoReturns a "short" date format.- Specified by:
dateFormatShortin interfaceDateTimeFormatInfo- Overrides:
dateFormatShortin classDefaultDateTimeFormatInfo
-
erasFull
public java.lang.String[] erasFull()
Description copied from interface:DateTimeFormatInfoReturns an array of the full era names.- Specified by:
erasFullin interfaceDateTimeFormatInfo- Overrides:
erasFullin classDefaultDateTimeFormatInfo
-
erasShort
public java.lang.String[] erasShort()
Description copied from interface:DateTimeFormatInfoReturns abbreviations of the era names.- Specified by:
erasShortin interfaceDateTimeFormatInfo- Overrides:
erasShortin classDefaultDateTimeFormatInfo
-
firstDayOfTheWeek
public int firstDayOfTheWeek()
Description copied from interface:DateTimeFormatInfoReturns the day which generally comes first in a weekly calendar view, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().- Specified by:
firstDayOfTheWeekin interfaceDateTimeFormatInfo- Overrides:
firstDayOfTheWeekin classDefaultDateTimeFormatInfo
-
monthsFull
public java.lang.String[] monthsFull()
Description copied from interface:DateTimeFormatInfoReturns an array of full month names.- Specified by:
monthsFullin interfaceDateTimeFormatInfo- Overrides:
monthsFullin classDefaultDateTimeFormatInfo
-
monthsFullStandalone
public java.lang.String[] monthsFullStandalone()
Description copied from interface:DateTimeFormatInfoReturns an array of month names for use in a stand-alone context.- Specified by:
monthsFullStandalonein interfaceDateTimeFormatInfo- Overrides:
monthsFullStandalonein classDefaultDateTimeFormatInfo
-
monthsNarrow
public java.lang.String[] monthsNarrow()
Description copied from interface:DateTimeFormatInfoReturns an array of the shortest abbreviations for months, typically a single character and not guaranteed to be unique.- Specified by:
monthsNarrowin interfaceDateTimeFormatInfo- Overrides:
monthsNarrowin classDefaultDateTimeFormatInfo
-
monthsNarrowStandalone
public java.lang.String[] monthsNarrowStandalone()
Description copied from interface:DateTimeFormatInfoReturns 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:
monthsNarrowStandalonein interfaceDateTimeFormatInfo- Overrides:
monthsNarrowStandalonein classDefaultDateTimeFormatInfo
-
monthsShort
public java.lang.String[] monthsShort()
Description copied from interface:DateTimeFormatInfoReturns an array of month abbreviations.- Specified by:
monthsShortin interfaceDateTimeFormatInfo- Overrides:
monthsShortin classDefaultDateTimeFormatInfo
-
monthsShortStandalone
public java.lang.String[] monthsShortStandalone()
Description copied from interface:DateTimeFormatInfoReturns an array of month abbreviations, suitable for use in a stand-alone context.- Specified by:
monthsShortStandalonein interfaceDateTimeFormatInfo- Overrides:
monthsShortStandalonein classDefaultDateTimeFormatInfo
-
quartersFull
public java.lang.String[] quartersFull()
Description copied from interface:DateTimeFormatInfoReturns an array of full quarter names.- Specified by:
quartersFullin interfaceDateTimeFormatInfo- Overrides:
quartersFullin classDefaultDateTimeFormatInfo
-
quartersShort
public java.lang.String[] quartersShort()
Description copied from interface:DateTimeFormatInfoReturns an array of abbreviations for quarters.- Specified by:
quartersShortin interfaceDateTimeFormatInfo- Overrides:
quartersShortin classDefaultDateTimeFormatInfo
-
timeFormatFull
public java.lang.String timeFormatFull()
Description copied from interface:DateTimeFormatInfoReturns a "full" time format.- Specified by:
timeFormatFullin interfaceDateTimeFormatInfo- Overrides:
timeFormatFullin classDefaultDateTimeFormatInfo
-
timeFormatLong
public java.lang.String timeFormatLong()
Description copied from interface:DateTimeFormatInfoReturns a "long" time format.- Specified by:
timeFormatLongin interfaceDateTimeFormatInfo- Overrides:
timeFormatLongin classDefaultDateTimeFormatInfo
-
timeFormatMedium
public java.lang.String timeFormatMedium()
Description copied from interface:DateTimeFormatInfoReturns a "medium" time format.- Specified by:
timeFormatMediumin interfaceDateTimeFormatInfo- Overrides:
timeFormatMediumin classDefaultDateTimeFormatInfo
-
timeFormatShort
public java.lang.String timeFormatShort()
Description copied from interface:DateTimeFormatInfoReturns a "short" time format.- Specified by:
timeFormatShortin interfaceDateTimeFormatInfo- Overrides:
timeFormatShortin classDefaultDateTimeFormatInfo
-
weekdaysFull
public java.lang.String[] weekdaysFull()
Description copied from interface:DateTimeFormatInfoReturns an array of the full names of weekdays.- Specified by:
weekdaysFullin interfaceDateTimeFormatInfo- Overrides:
weekdaysFullin classDefaultDateTimeFormatInfo
-
weekdaysFullStandalone
public java.lang.String[] weekdaysFullStandalone()
Description copied from interface:DateTimeFormatInfoReturns an array of the full names of weekdays, suitable for use in a stand-alone context.- Specified by:
weekdaysFullStandalonein interfaceDateTimeFormatInfo- Overrides:
weekdaysFullStandalonein classDefaultDateTimeFormatInfo
-
weekdaysNarrow
public java.lang.String[] weekdaysNarrow()
Description copied from interface:DateTimeFormatInfoReturns an array of the shortest abbreviations for weekdays, typically a single character and not guaranteed to be unique.- Specified by:
weekdaysNarrowin interfaceDateTimeFormatInfo- Overrides:
weekdaysNarrowin classDefaultDateTimeFormatInfo
-
weekdaysNarrowStandalone
public java.lang.String[] weekdaysNarrowStandalone()
Description copied from interface:DateTimeFormatInfoReturns 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:
weekdaysNarrowStandalonein interfaceDateTimeFormatInfo- Overrides:
weekdaysNarrowStandalonein classDefaultDateTimeFormatInfo
-
weekdaysShort
public java.lang.String[] weekdaysShort()
Description copied from interface:DateTimeFormatInfoReturns an array of abbreviations for weekdays.- Specified by:
weekdaysShortin interfaceDateTimeFormatInfo- Overrides:
weekdaysShortin classDefaultDateTimeFormatInfo
-
weekdaysShortStandalone
public java.lang.String[] weekdaysShortStandalone()
Description copied from interface:DateTimeFormatInfoReturns an array of abbreviations for weekdays, suitable for use in a stand-alone context.- Specified by:
weekdaysShortStandalonein interfaceDateTimeFormatInfo- Overrides:
weekdaysShortStandalonein classDefaultDateTimeFormatInfo
-
weekendEnd
public int weekendEnd()
Description copied from interface:DateTimeFormatInfoReturns 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:
weekendEndin interfaceDateTimeFormatInfo- Overrides:
weekendEndin classDefaultDateTimeFormatInfo
-
weekendStart
public int weekendStart()
Description copied from interface:DateTimeFormatInfoReturns the day which starts the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull().- Specified by:
weekendStartin interfaceDateTimeFormatInfo- Overrides:
weekendStartin classDefaultDateTimeFormatInfo
-
-