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

Quick Search    Search Deep

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

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


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
           
protected static java.text.SimpleDateFormat mSingleDayFormat
           
protected static java.text.SimpleDateFormat mStarDateFormat
           
 
Constructor Summary
BigWeblogCalendarModel(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 BigWeblogCalendarModel getInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String url)
           
 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

mStarDateFormat

protected static java.text.SimpleDateFormat mStarDateFormat

mSingleDayFormat

protected static java.text.SimpleDateFormat mSingleDayFormat
Constructor Detail

BigWeblogCalendarModel

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

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