| |
|
| java.lang.Object org.blojsom.plugin.calendar.VelocityHelper
VelocityHelper | public class VelocityHelper (Code) | | VelocityHelper is a class used to help render a visual calendar using the VTL.
author: David Czarnecki author: Mark Lussier since: blojsom 3.0 version: $Id: VelocityHelper.java,v 1.2 2007/01/17 02:35:08 czarneckid Exp $ |
VelocityHelper | public VelocityHelper()(Code) | | Public Constructor
|
VelocityHelper | public VelocityHelper(BlogCalendar calendar)(Code) | | Public Constructor
Parameters: calendar - BlogCalendar to render |
buildCalendar | public void buildCalendar()(Code) | | Builds the visual calendar model
|
getCalendarRow | public String getCalendarRow(int row)(Code) | | Get the visual content for a given calendar row. If clazz is null, no class attribute
will be included in the <td> tag.
Parameters: row - the row the visual calendar row |
getCalendarRow | public String getCalendarRow(int row, String clazz)(Code) | | Get the visual content for a given calendar row. If clazz is null, no class attribute
will be included in the <td> tag.
Parameters: row - the row Parameters: clazz - the css style apply the visual calendar row |
getCurrentMonthLink | public String getCurrentMonthLink()(Code) | | Get the link for navigating to the current month
the current month link |
getCurrentMonthName | public String getCurrentMonthName()(Code) | | Get the link for navigating to the next month
the next month link |
getNextMonth | public String getNextMonth()(Code) | | Get the visual control for navigating to the next month
the next month navigation control |
getNextMonthLink | public String getNextMonthLink()(Code) | | Get the link for navigating to the next month
the next month link |
getNextMonthName | public String getNextMonthName()(Code) | | Get the name for navigating to the next month
the next month name |
getPreviousMonth | public String getPreviousMonth()(Code) | | Get the visual control for navigating to the previous month
the previous month navigation control |
getPreviousMonthLink | public String getPreviousMonthLink()(Code) | | Get the link for navigating to the previous month
the previous month link |
getPreviousMonthName | public String getPreviousMonthName()(Code) | | Get the visual control for navigating to the previous month
the previous month navigation control |
getToday | public String getToday()(Code) | | Get the visual control for navigating to Today
the today navigation control |
getTodayText | public String getTodayText()(Code) | | Retrieve the text displayed for the "Today" link
Text for "Today link |
setCalendar | public void setCalendar(BlogCalendar calendar)(Code) | | Sets the BlogCalendar to render
Parameters: calendar - BlogCalendar |
setTodayText | public void setTodayText(String today)(Code) | | Set the text displayed for the "Today" link
Parameters: today - Text for "Today" link |
|
|
|