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
Adapter that makes a
DateTimeConstants
implementation suitable for
use with something that wants a
DateTimeFormatInfo
. Values not present
in DateTimeConstants
receive default values.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
ampms()
Returns array of strings containing abbreviations for Ante Meridiem and Post Meridiem.Returns a "full" date format.Returns a "long" date format.Returns a "medium" date format.Returns a "short" date format.String[]
erasFull()
Returns an array of the full era names.String[]
Returns abbreviations of the era names.int
Returns the day which generally comes first in a weekly calendar view, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.String[]
Returns an array of full month names.String[]
Returns an array of month names for use in a stand-alone context.String[]
Returns an array of the shortest abbreviations for months, typically a single character and not guaranteed to be unique.String[]
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.String[]
Returns an array of month abbreviations.String[]
Returns an array of month abbreviations, suitable for use in a stand-alone context.String[]
Returns an array of full quarter names.String[]
Returns an array of abbreviations for quarters.Returns a "full" time format.Returns a "long" time format.Returns a "medium" time format.Returns a "short" time format.String[]
Returns an array of the full names of weekdays.String[]
Returns an array of the full names of weekdays, suitable for use in a stand-alone context.String[]
Returns an array of the shortest abbreviations for weekdays, typically a single character and not guaranteed to be unique.String[]
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.String[]
Returns an array of abbreviations for weekdays.String[]
Returns an array of abbreviations for weekdays, suitable for use in a stand-alone context.int
Returns the day which ends the weekend, as an index into the return value ofDateTimeFormatInfo.weekdaysFull()
.int
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 Details
-
DateTimeFormatInfoAdapter
-
-
Method Details
-
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
Description copied from interface:DateTimeFormatInfo
Returns a "full" date format.- Specified by:
dateFormatFull
in interfaceDateTimeFormatInfo
- Overrides:
dateFormatFull
in classDefaultDateTimeFormatInfo
-
dateFormatLong
Description copied from interface:DateTimeFormatInfo
Returns a "long" date format.- Specified by:
dateFormatLong
in interfaceDateTimeFormatInfo
- Overrides:
dateFormatLong
in classDefaultDateTimeFormatInfo
-
dateFormatMedium
Description copied from interface:DateTimeFormatInfo
Returns a "medium" date format.- Specified by:
dateFormatMedium
in interfaceDateTimeFormatInfo
- Overrides:
dateFormatMedium
in classDefaultDateTimeFormatInfo
-
dateFormatShort
Description copied from interface:DateTimeFormatInfo
Returns a "short" date format.- Specified by:
dateFormatShort
in interfaceDateTimeFormatInfo
- Overrides:
dateFormatShort
in classDefaultDateTimeFormatInfo
-
erasFull
Description copied from interface:DateTimeFormatInfo
Returns an array of the full era names.- Specified by:
erasFull
in interfaceDateTimeFormatInfo
- Overrides:
erasFull
in classDefaultDateTimeFormatInfo
-
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
Description copied from interface:DateTimeFormatInfo
Returns an array of full month names.- Specified by:
monthsFull
in interfaceDateTimeFormatInfo
- Overrides:
monthsFull
in classDefaultDateTimeFormatInfo
-
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
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
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
Description copied from interface:DateTimeFormatInfo
Returns an array of month abbreviations.- Specified by:
monthsShort
in interfaceDateTimeFormatInfo
- Overrides:
monthsShort
in classDefaultDateTimeFormatInfo
-
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
Description copied from interface:DateTimeFormatInfo
Returns an array of full quarter names.- Specified by:
quartersFull
in interfaceDateTimeFormatInfo
- Overrides:
quartersFull
in classDefaultDateTimeFormatInfo
-
quartersShort
Description copied from interface:DateTimeFormatInfo
Returns an array of abbreviations for quarters.- Specified by:
quartersShort
in interfaceDateTimeFormatInfo
- Overrides:
quartersShort
in classDefaultDateTimeFormatInfo
-
timeFormatFull
Description copied from interface:DateTimeFormatInfo
Returns a "full" time format.- Specified by:
timeFormatFull
in interfaceDateTimeFormatInfo
- Overrides:
timeFormatFull
in classDefaultDateTimeFormatInfo
-
timeFormatLong
Description copied from interface:DateTimeFormatInfo
Returns a "long" time format.- Specified by:
timeFormatLong
in interfaceDateTimeFormatInfo
- Overrides:
timeFormatLong
in classDefaultDateTimeFormatInfo
-
timeFormatMedium
Description copied from interface:DateTimeFormatInfo
Returns a "medium" time format.- Specified by:
timeFormatMedium
in interfaceDateTimeFormatInfo
- Overrides:
timeFormatMedium
in classDefaultDateTimeFormatInfo
-
timeFormatShort
Description copied from interface:DateTimeFormatInfo
Returns a "short" time format.- Specified by:
timeFormatShort
in interfaceDateTimeFormatInfo
- Overrides:
timeFormatShort
in classDefaultDateTimeFormatInfo
-
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
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
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
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
Description copied from interface:DateTimeFormatInfo
Returns an array of abbreviations for weekdays.- Specified by:
weekdaysShort
in interfaceDateTimeFormatInfo
- Overrides:
weekdaysShort
in classDefaultDateTimeFormatInfo
-
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
-