roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r420961 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/CalendarHelper.java
Date Tue, 11 Jul 2006 19:43:07 GMT
Author: snoopdave
Date: Tue Jul 11 12:43:06 2006
New Revision: 420961

URL: http://svn.apache.org/viewvc?rev=420961&view=rev
Log:
Separate methods for big and normal calendar

Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/CalendarHelper.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/CalendarHelper.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/CalendarHelper.java?rev=420961&r1=420960&r2=420961&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/CalendarHelper.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/CalendarHelper.java
Tue Jul 11 12:43:06 2006
@@ -38,7 +38,7 @@
 import org.apache.roller.util.DateUtil;
 
 /**
- * Displays weblog calendar by calling hybrid JSP tag.
+ * Displays weblog calendar or big weblog calendar by calling hybrid JSP tag.
  */
 public class CalendarHelper  {
     private PageContext pageContext;
@@ -46,14 +46,19 @@
     protected static Log log = 
         LogFactory.getFactory().getInstance(CalendarHelper.class);
     
-    /**
-     * Creates a new instance of CalendarHelper
-     */
     public CalendarHelper(PageContext pageContext) {
         this.pageContext = pageContext;
     }  
     
-    public String emitWeblogCalendar(WebsiteDataWrapper websiteWrapper, String catArgument,
boolean big) {        
+    public String showWeblogCalendar(WebsiteDataWrapper websiteWrapper, String catArgument)
{        
+        return showWeblogCalendar(websiteWrapper, catArgument, false);
+    }
+    
+    public String showWeblogCalendarBig(WebsiteDataWrapper websiteWrapper, String catArgument)
{ 
+        return showWeblogCalendar(websiteWrapper, catArgument, true);
+    }
+    
+    private String showWeblogCalendar(WebsiteDataWrapper websiteWrapper, String catArgument,
boolean big) {        
         HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
         HttpServletResponse response = (HttpServletResponse)pageContext.getResponse();  
                     
         if ("nil".equals(catArgument)) catArgument = null;        
@@ -67,7 +72,7 @@
             }
             
             // save model in JSP page context so CalendarTag can find it
-            pageContext.setAttribute("calendarModel",model);
+            pageContext.setAttribute("calendarModel", model);
             
             CalendarTag calTag = new CalendarTag();
             calTag.setPageContext(pageContext);



Mime
View raw message