java.lang.Object
org.roller.presentation.weblog.tags.BigWeblogCalendarModel
- All Implemented Interfaces:
- org.roller.presentation.tags.calendar.CalendarModel
- public class BigWeblogCalendarModel
- extends java.lang.Object
- implements org.roller.presentation.tags.calendar.CalendarModel
Model for big calendar that displays titles for each day.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mReq
protected javax.servlet.http.HttpServletRequest mReq
mRes
protected javax.servlet.http.HttpServletResponse mRes
mMonthMap
protected java.util.Map mMonthMap
mSelfUrl
protected java.lang.String mSelfUrl
mDay
protected java.util.Date mDay
mCatName
protected java.lang.String mCatName
mStarDateFormat
protected static java.text.SimpleDateFormat mStarDateFormat
mSingleDayFormat
protected static java.text.SimpleDateFormat mSingleDayFormat
BigWeblogCalendarModel
public BigWeblogCalendarModel(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String url)
getInstance
public static BigWeblogCalendarModel getInstance(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String url)
setDay
public void setDay(java.util.Date month)
throws java.lang.Exception
- Specified by:
setDay in interface org.roller.presentation.tags.calendar.CalendarModel
setDay
public void setDay(java.lang.String month)
throws java.lang.Exception
- Specified by:
setDay in interface org.roller.presentation.tags.calendar.CalendarModel
getDay
public java.util.Date getDay()
- Specified by:
getDay in interface org.roller.presentation.tags.calendar.CalendarModel
getSelfUrl
public java.lang.String getSelfUrl()
throws java.lang.Exception
getTargetUrl
public java.lang.String getTargetUrl()
throws java.lang.Exception
computeUrl
public java.lang.String computeUrl(java.util.Date day,
boolean valid)
- Create URL for use on view-weblog page, ignores query-string.
- Specified by:
computeUrl in interface org.roller.presentation.tags.calendar.CalendarModel
getContent
public java.lang.String getContent(java.util.Date day)
- Description copied from interface:
org.roller.presentation.tags.calendar.CalendarModel
- Get calendar cell content or null if none.
- Specified by:
getContent in interface org.roller.presentation.tags.calendar.CalendarModel
computeNextMonthUrl
public java.lang.String computeNextMonthUrl()
- Specified by:
computeNextMonthUrl in interface org.roller.presentation.tags.calendar.CalendarModel
computePrevMonthUrl
public java.lang.String computePrevMonthUrl()
- Specified by:
computePrevMonthUrl in interface org.roller.presentation.tags.calendar.CalendarModel
computeTodayMonthUrl
public java.lang.String computeTodayMonthUrl()
- Specified by:
computeTodayMonthUrl in interface org.roller.presentation.tags.calendar.CalendarModel