|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bradrydzewski.gwt.calendar.client.CalendarFormat
public class CalendarFormat
| Field Summary | |
|---|---|
static int |
HOURS_IN_DAY
|
static CalendarFormat |
INSTANCE
|
static CalendarConstants |
MESSAGES
|
| Method Summary | |
|---|---|
String |
getAm()
|
com.google.gwt.i18n.client.DateTimeFormat |
getDateFormat()
|
String[] |
getDayOfWeekAbbreviatedNames()
|
String[] |
getDayOfWeekNames()
Returns the names (labels) of the days of the week. |
int |
getFirstDayOfWeek()
Returns the currently configured day to start weeks in the MonthView. |
String[] |
getHourLabels()
Returns the configured labels for the 24 hours of the day. |
String |
getNoon()
Returns the currently configured label for the noon (12 p.m.). |
String |
getPm()
|
com.google.gwt.i18n.client.DateTimeFormat |
getTimeFormat()
|
void |
setAm(String am)
|
void |
setDateFormat(String formatPattern)
|
void |
setDayOfMonthFormat(String formatPattern)
Configures the formatting pattern to render the days of the month using DateTimeFormat. |
void |
setDayOfWeekAbbreviatedFormat(String formatPattern)
Configures the formatting pattern to render the days of the week in an abbreviated manner using DateTimeFormat. |
void |
setDayOfWeekFormat(String formatPattern)
Configures the formatting pattern to render the days of the week using DateTimeFormat. |
void |
setFirstDayOfWeek(int firstDayOfWeek)
Configures the first day in the week when rendering the month view. |
void |
setHourLabels(String[] hourLabels)
Allows programmatic configuration of the 24 hour labels in the calendar. |
void |
setNoon(String noon)
Configures the label to show for the 12 p.m. |
void |
setPm(String pm)
|
void |
setTimeFormat(String formatPattern)
Sets the pattern used to format the displayed hours and re-generates all hour labels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CalendarConstants MESSAGES
public static final int HOURS_IN_DAY
public static CalendarFormat INSTANCE
| Method Detail |
|---|
public void setDayOfWeekFormat(String formatPattern)
DateTimeFormat.
formatPattern - The pattern to format day namesDateTimeFormat.getFormat(String)public String[] getDayOfWeekNames()
public void setDayOfWeekAbbreviatedFormat(String formatPattern)
DateTimeFormat.
formatPattern - The pattern to format day namesDateTimeFormat.getFormat(String)public String[] getDayOfWeekAbbreviatedNames()
public void setDayOfMonthFormat(String formatPattern)
DateTimeFormat. Most likely, formatPattern will
contain at the minimum, the format to render the number of the
corresponding day.
formatPattern - The pattern to format days in the month viewDateTimeFormat.getFormat(String)public void setDateFormat(String formatPattern)
public com.google.gwt.i18n.client.DateTimeFormat getDateFormat()
public void setTimeFormat(String formatPattern)
formatPattern - A legal format following the patterns
in DateTimeFormatpublic com.google.gwt.i18n.client.DateTimeFormat getTimeFormat()
public void setHourLabels(String[] hourLabels)
hourLabels - The labels to be used as labels for the hours of the
day.
IllegalArgumentException - If the hourLabes array is
null, does not have 24
elements, or any of the elements is
nullpublic int getFirstDayOfWeek()
MonthView. The default value is read from the
CalendarConstants i18n configuration file, but it can be
changed through the setFirstDayOfWeek method of this class.
0 for
Sunday, 1 for Monday, and so on.public void setFirstDayOfWeek(int firstDayOfWeek)
firstDayOfWeek - The first day of the week, where Sunday is
represented by 0, Monday by
1, and so on.public String getAm()
public void setAm(String am)
public String getPm()
public void setPm(String pm)
public String getNoon()
CalendarConstants or the setNoon method
of this class.public void setNoon(String noon)
noon - A label to show instead of 12 p.m.public String[] getHourLabels()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||