java.lang.Object
org.roller.presentation.weblog.tags.WeblogCalendarModel
- All Implemented Interfaces:
- org.roller.presentation.tags.calendar.CalendarModel
- Direct Known Subclasses:
- EditWeblogCalendarModel
- public class WeblogCalendarModel
- extends java.lang.Object
- implements org.roller.presentation.tags.calendar.CalendarModel
Calendar model for calendar intended for use on view-weblog page.
| 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
WeblogCalendarModel
public WeblogCalendarModel(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String url)
getInstance
public static WeblogCalendarModel 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
getParameterName
public java.lang.String getParameterName()
getParameterValue
public java.lang.String getParameterValue(java.util.Date day)
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