Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.roller.presentation.weblog.tags
Class WeblogCalendarModel  view WeblogCalendarModel download WeblogCalendarModel.java

java.lang.Object
  extended byorg.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.


Field Summary
protected  java.lang.String mCatName
           
protected  java.util.Date mDay
           
protected  java.util.Map mMonthMap
           
protected  javax.servlet.http.HttpServletRequest mReq
           
protected  javax.servlet.http.HttpServletResponse mRes
           
protected  java.lang.String mSelfUrl
           
 
Constructor Summary
WeblogCalendarModel(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String url)
           
 
Method Summary
 java.lang.String computeNextMonthUrl()
           
 java.lang.String computePrevMonthUrl()
           
 java.lang.String computeTodayMonthUrl()
           
 java.lang.String computeUrl(java.util.Date day, boolean valid)
          Create URL for use on view-weblog page, ignores query-string.
 java.lang.String getContent(java.util.Date day)
          Get calendar cell content or null if none.
 java.util.Date getDay()
           
static WeblogCalendarModel getInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String url)
           
 java.lang.String getParameterName()
           
 java.lang.String getParameterValue(java.util.Date day)
           
 java.lang.String getSelfUrl()
           
 java.lang.String getTargetUrl()
           
 void setDay(java.util.Date month)
           
 void setDay(java.lang.String month)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

WeblogCalendarModel

public WeblogCalendarModel(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse res,
                           java.lang.String url)
Method Detail

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