|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.calendar.BlogCalendar
BlogCalendar
Constructor Summary | |
BlogCalendar(java.util.Calendar calendar,
java.lang.String blogurl)
Public Constructor |
|
BlogCalendar(java.util.Calendar calendar,
java.lang.String blogurl,
java.util.Locale locale)
Public Constructor |
Method Summary | |
boolean |
dayHasEntry(int dom)
Determines if a day of the month has entries |
java.util.Calendar |
getCalendar()
Get the Calendar instance |
java.lang.String |
getCalendarUrl()
Get the Blog URL used by the calendar |
java.lang.String |
getCaption()
Returns the current Month as MMMMM yyyy (ex: March 2003) |
int |
getCurrentDay()
Gets the current day for this Calendar |
int |
getCurrentMonth()
Gets the current month for this Calendar |
int |
getCurrentYear()
Gets the current year for this Calendar |
java.lang.String |
getDayOfWeekName(int dow)
Get the localized name of a Day of the Week |
java.lang.String[] |
getDayOfWeekNames()
Get a lit of the day of the week names (localized) |
int |
getDaysInMonth()
Returns the number of days in the current month |
java.lang.Boolean[] |
getEntryDates()
Get the array of day of month entry flags |
int |
getFirstDayOfMonth()
Returns the day of the week for the 1st of the month occurs on |
java.lang.String |
getMonthName(int month)
Get the localized name of the given month |
java.lang.String[] |
getMonthNames()
Get a list of the month names (localized) |
java.lang.String |
getRequestedDateKey()
Gets the current entry date match key (year+month+day) |
java.lang.String |
getShortDayOfWeekName(int dow)
Get the localized abbreviated name of a Day of the Week |
java.lang.String[] |
getShortDayOfWeekNames()
Get a lit of the abbreviated day of the week names (localized) |
java.lang.String |
getShortMonthName(int month)
Get the localized abbreviated name of the given month |
java.lang.String[] |
getShortMonthNames()
Get a list of the abbreviated month names (localized) |
java.util.Calendar |
getToday()
Get today as a Calendar instance |
void |
removeEntryForDOM(int dom)
Flag a day in the current month as NOT having entries |
void |
setCurrentDay(int currentday)
Sets the current day for this Calendar |
void |
setCurrentMonth(int currentmonth)
Sets the current month for this Calendar |
void |
setCurrentYear(int currentyear)
Sets the current year for this Calendar |
void |
setEntryForDOM(int dom)
Flag a day in the current month as having entries |
void |
setRequestedDateKey(java.lang.String requestedDateKey)
Sets the current entry date match key (year+month+day) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlogCalendar(java.util.Calendar calendar, java.lang.String blogurl)
calendar
- Caledar instanceblogurl
- The blog's url for calendar navigationpublic BlogCalendar(java.util.Calendar calendar, java.lang.String blogurl, java.util.Locale locale)
calendar
- Caledar instanceblogurl
- The blog's url for calendar navigationlocale
- Locale for the CalendarMethod Detail |
public java.lang.String getCaption()
public int getFirstDayOfMonth()
public int getDaysInMonth()
public void setEntryForDOM(int dom)
dom
- the day of the monthpublic void removeEntryForDOM(int dom)
dom
- the day of the monthpublic boolean dayHasEntry(int dom)
dom
- the day of the month
public java.lang.Boolean[] getEntryDates()
public java.lang.String getMonthName(int month)
month
- the month (as defined by Calendar)
public java.lang.String[] getMonthNames()
public java.lang.String getShortMonthName(int month)
month
- the month (as defined by Calendar)
public java.lang.String[] getShortMonthNames()
public java.lang.String getDayOfWeekName(int dow)
dow
- the day of the week (as defined by Calendar)
public java.lang.String[] getDayOfWeekNames()
public java.lang.String getShortDayOfWeekName(int dow)
dow
- the day of the week (as defined by Calendar)
public java.lang.String[] getShortDayOfWeekNames()
public java.lang.String getCalendarUrl()
public java.util.Calendar getCalendar()
public java.util.Calendar getToday()
public int getCurrentMonth()
public void setCurrentMonth(int currentmonth)
currentmonth
- current month as an int (as defined by Calendar)public int getCurrentYear()
public void setCurrentYear(int currentyear)
currentyear
- current year as an int (as defined by Calendar)public int getCurrentDay()
public void setCurrentDay(int currentday)
currentday
- current day as an int (as defined by Calendar)public java.lang.String getRequestedDateKey()
public void setRequestedDateKey(java.lang.String requestedDateKey)
requestedDateKey
- current entry match key
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |