|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.calendar.VelocityHelper
VelocityHelper is a class used to help render a visual calendar using the VTL.
Constructor Summary | |
VelocityHelper()
Public Constructor |
|
VelocityHelper(BlogCalendar calendar)
Public Constructor |
Method Summary | |
void |
buildCalendar()
Builds the visual calendar model |
BlogCalendar |
getBlogCalendar()
Retrieve the BlogCalendar object used to construct this object |
java.lang.String |
getCalendarRow(int row)
Get the visual content for a given calendar row. |
java.lang.String |
getCalendarRow(int row,
java.lang.String clazz)
Get the visual content for a given calendar row. |
java.lang.String |
getCurrentMonthLink()
Get the link for navigating to the current month |
java.lang.String |
getCurrentMonthName()
Get the link for navigating to the next month |
java.lang.String |
getNextMonth()
Get the visual control for navigating to the next month |
java.lang.String |
getNextMonthLink()
Get the link for navigating to the next month |
java.lang.String |
getNextMonthName()
Get the name for navigating to the next month |
java.lang.String |
getPreviousMonth()
Get the visual control for navigating to the previous month |
java.lang.String |
getPreviousMonthLink()
Get the link for navigating to the previous month |
java.lang.String |
getPreviousMonthName()
Get the visual control for navigating to the previous month |
java.lang.String |
getToday()
Get the visual control for navigating to Today |
java.lang.String |
getTodayText()
Retrieve the text displayed for the "Today" link |
void |
setCalendar(BlogCalendar calendar)
Sets the BlogCalendar to render |
void |
setTodayText(java.lang.String today)
Set the text displayed for the "Today" link |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VelocityHelper()
public VelocityHelper(BlogCalendar calendar)
calendar
- BlogCalendar to renderMethod Detail |
public void setCalendar(BlogCalendar calendar)
calendar
- BlogCalendarpublic BlogCalendar getBlogCalendar()
BlogCalendar
object used to construct this object
BlogCalendar
public void buildCalendar()
public java.lang.String getCalendarRow(int row)
clazz
is null, no class
attribute
will be included in the <td> tag.
row
- the row
public java.lang.String getCalendarRow(int row, java.lang.String clazz)
clazz
is null, no class
attribute
will be included in the <td> tag.
row
- the rowclazz
- the css style apply
public java.lang.String getToday()
public java.lang.String getPreviousMonth()
public java.lang.String getNextMonth()
public java.lang.String getPreviousMonthLink()
public java.lang.String getPreviousMonthName()
public java.lang.String getCurrentMonthLink()
public java.lang.String getCurrentMonthName()
public java.lang.String getNextMonthLink()
public java.lang.String getNextMonthName()
public void setTodayText(java.lang.String today)
today
- Text for "Today" linkpublic java.lang.String getTodayText()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |