|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Date
com.google.gwt.i18n.client.impl.DateRecord
public class DateRecord
Implementation detail of DateTimeFormat -- not a public API and subject to change. DateRecord class exposes almost the same set of interface as Date class with only a few exceptions. The main purpose is the record all the information during parsing phase and resolve them in a later time when all information can be processed together.
| Field Summary | |
|---|---|
static int |
AM
|
static int |
PM
|
| Constructor Summary | |
|---|---|
DateRecord()
Initialize DateExt object with default value. |
|
| Method Summary | |
|---|---|
boolean |
calcDate(java.util.Date date,
boolean strict)
calcDate uses all the field available so far to fill a Date object. |
void |
setAmbiguousYear(boolean ambiguousYear)
Set ambiguous year field. |
void |
setAmpm(int ampm)
Set morning/afternoon field. |
void |
setDayOfMonth(int day)
Set dayOfMonth field. |
void |
setDayOfWeek(int dayOfWeek)
Set dayOfWeek field. |
void |
setEra(int era)
Set Era field. |
void |
setHours(int hours)
Set hour field. |
void |
setMilliseconds(int milliseconds)
Set milliseconds field. |
void |
setMinutes(int minutes)
Set minute field. |
void |
setMonth(int month)
Set month field. |
void |
setSeconds(int seconds)
Set seconds field. |
void |
setTzOffset(int tzOffset)
Set timezone offset, in minutes. |
void |
setYear(int value)
Set year field. |
| Methods inherited from class java.util.Date |
|---|
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setTime, toGMTString, toLocaleString, toString, UTC |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int AM
public static final int PM
| Constructor Detail |
|---|
public DateRecord()
| Method Detail |
|---|
public boolean calcDate(java.util.Date date,
boolean strict)
date - The Date object being filled. Its value should be set to an
acceptable default before pass in to this methodstrict - true to be strict when parsing
public void setAmbiguousYear(boolean ambiguousYear)
ambiguousYear - true if it is ambiguous year.public void setAmpm(int ampm)
ampm - ampm value.public void setDayOfMonth(int day)
day - dayOfMonth valuepublic void setDayOfWeek(int dayOfWeek)
dayOfWeek - day of the week.public void setEra(int era)
era - era value being set.public void setHours(int hours)
setHours in class java.util.Datehours - hour value.public void setMilliseconds(int milliseconds)
milliseconds - milliseconds value.public void setMinutes(int minutes)
setMinutes in class java.util.Dateminutes - minute value.public void setMonth(int month)
setMonth in class java.util.Datemonth - month value.public void setSeconds(int seconds)
setSeconds in class java.util.Dateseconds - second value.public void setTzOffset(int tzOffset)
tzOffset - timezone offset.public void setYear(int value)
setYear in class java.util.Datevalue - year value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||