|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--portlets.compoze.groupware.calendar.Month
This class represents a month for display.
Inner Class Summary | |
static class |
Month.Day
This inner class represents a day in the month. |
static class |
Month.Item
This inner class represents an item in the month. |
static class |
Month.Week
This inner class represents a week in the month. |
Constructor Summary | |
Month(java.util.Date givenDate)
Constructor using the default locale and time zone. |
|
Month(java.util.Locale locale,
java.util.TimeZone timeZone)
Constructor. |
|
Month(java.util.Locale locale,
java.util.TimeZone timeZone,
java.util.Date givenDate)
Constructor. |
Method Summary | |
void |
dumpMonth()
Dumps the month to System.out . |
java.util.Calendar |
getCalendar()
Gets a calendar based on the month locale and time zone. |
java.lang.String |
getDay(int iDay,
int iFieldWidth)
Gets the localized string for the day. |
java.lang.String |
getDay(int iDay,
int iFieldWidth,
java.util.Locale locale)
Gets the localized string for the day. |
java.util.Date |
getEndDate()
Gets the end date. |
java.lang.String |
getEndDayOfWeek()
Gets the localized string for the end day of week. |
java.lang.String |
getEndDayOfWeek(int iFieldWidth)
Gets the localized string for the end day of week. |
java.util.Date |
getGivenDate()
Gets the given date. |
Month.Item[] |
getHeader()
Gets the header. |
int |
getMonth()
Gets the month. |
java.util.Date |
getMonthEndDate()
Gets the month end date. |
java.util.Date |
getMonthStartDate()
Gets the month start date. |
java.lang.String |
getMonthString()
Gets the localized string for the month given date. |
java.lang.String |
getMonthString(java.util.Locale locale)
Gets the localized string for the month given date. |
java.util.Date |
getNextMonthDate()
Gets the next month date. |
java.util.Date |
getPreviousMonthDate()
Gets the previous month date. |
java.util.Date |
getStartDate()
Gets the start date. |
java.lang.String |
getStartDayOfWeek()
Gets the localized string for the start day of week. |
java.lang.String |
getStartDayOfWeek(int iFieldWidth)
Gets the localized string for the start day of week. |
Month.Week |
getWeek(int iWeekIndex)
Gets the week by index. |
int |
getWeekCount()
Gets the number of weeks. |
int |
getYear()
Gets the year. |
java.lang.String |
getYearString()
Gets the localized string for the year. |
java.lang.String |
getYearString(java.util.Locale locale)
Gets the localized string for the year. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Month(java.util.Date givenDate)
givenDate
- the given date (may not be null
)public Month(java.util.Locale locale, java.util.TimeZone timeZone)
locale
- the locale (may not be null
)timeZone
- the time zone (may not be null
)public Month(java.util.Locale locale, java.util.TimeZone timeZone, java.util.Date givenDate)
locale
- the locale (may not be null
)timeZone
- the time zone (may not be null
)givenDate
- the given date (may not be null
)Method Detail |
public java.util.Calendar getCalendar()
public int getWeekCount()
public java.util.Date getPreviousMonthDate()
public java.util.Date getNextMonthDate()
public java.util.Date getGivenDate()
public int getMonth()
public java.lang.String getMonthString()
public java.lang.String getMonthString(java.util.Locale locale)
locale
- the locale (may not be null
)public int getYear()
public java.lang.String getYearString()
public java.lang.String getYearString(java.util.Locale locale)
locale
- the locale (may not be null
)public Month.Item[] getHeader()
public Month.Week getWeek(int iWeekIndex)
iWeekIndex
- the week index (0=first week)getWeekCount()
public java.util.Date getMonthStartDate()
public java.util.Date getMonthEndDate()
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public java.lang.String getStartDayOfWeek()
public java.lang.String getStartDayOfWeek(int iFieldWidth)
iFieldWidth
- the width of day fieldpublic java.lang.String getEndDayOfWeek()
public java.lang.String getEndDayOfWeek(int iFieldWidth)
iFieldWidth
- the width of day fieldpublic java.lang.String getDay(int iDay, int iFieldWidth)
iDay
- the day (1=Sunday)iFieldWidth
- the width of day fieldpublic java.lang.String getDay(int iDay, int iFieldWidth, java.util.Locale locale)
iDay
- the day (1=Sunday)iFieldWidth
- the width of day fieldlocale
- the locale (may not be null
)public void dumpMonth()
System.out
.
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |