|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.TagSupport | +--com.clra.web.MonthViewSelectorTag
Stuff.
Field Summary | |
protected static org.apache.struts.util.MessageResources |
messages
The message resources for this package |
protected String |
page
The context-relative URI |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
MonthViewSelectorTag()
|
Method Summary | |
protected String |
createLink(int month,
javax.servlet.http.HttpServletRequest request)
Creates a link from the currentMonth request |
protected String |
createLink(int month,
String contextPath,
String page)
Create a link from the specified page |
protected String |
createQueryString(int month,
Hashtable queryParams)
Form a query string from current parameter and the specified month |
protected void |
doEndLink()
|
int |
doEndTag()
Render the end of the selector |
protected void |
doMonthLeadingSeparationText(int unused)
Writes the text that separates month links |
protected void |
doMonthLink(int month)
Write a month link |
protected void |
doMonthLinks()
Writes a year's worth of month links |
protected void |
doMonthText(int month)
Writes a Calendar-based month (0-11) as user-friendly text |
protected void |
doMonthTrailingSeparationText(int unused)
Writes the text that separates month links |
protected void |
doStartLink(int month)
|
int |
doStartTag()
Render the beginning of the selector |
Integer |
getCurrentMonth()
Return the currently selected month (0 - 11, or null) |
String |
getPage()
Return the context-relative URI |
static Integer |
monthFromContext(javax.servlet.jsp.PageContext context)
A utility which determines what month should be currently selected based on the page context. |
void |
release()
Release any acquired resources. |
static void |
resetMonthInContexts(javax.servlet.jsp.PageContext context,
Integer month)
A utility which resets request and session attributes so that only the session attribute AN_MONTH holds the currently selected month. |
void |
setCurrentMonth(Integer currentMonth)
Set the currently selected month (0 - 11, or null) |
void |
setPage(String page)
Set the context-relative URI |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.struts.util.MessageResources messages
protected String page
Constructor Detail |
public MonthViewSelectorTag()
Method Detail |
public String getPage()
public void setPage(String page)
public Integer getCurrentMonth()
public void setCurrentMonth(Integer currentMonth) throws javax.servlet.jsp.JspException
public static Integer monthFromContext(javax.servlet.jsp.PageContext context)
public static void resetMonthInContexts(javax.servlet.jsp.PageContext context, Integer month)
protected String createQueryString(int month, Hashtable queryParams)
protected String createLink(int month, String contextPath, String page) throws javax.servlet.jsp.JspException
protected String createLink(int month, javax.servlet.http.HttpServletRequest request)
protected void doStartLink(int month) throws javax.servlet.jsp.JspException
protected void doEndLink() throws javax.servlet.jsp.JspException
protected void doMonthText(int month) throws javax.servlet.jsp.JspException
protected void doMonthLeadingSeparationText(int unused) throws javax.servlet.jsp.JspException
protected void doMonthTrailingSeparationText(int unused) throws javax.servlet.jsp.JspException
protected void doMonthLink(int month) throws javax.servlet.jsp.JspException
protected void doMonthLinks() throws javax.servlet.jsp.JspException
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public void release()
release
in class javax.servlet.jsp.tagext.TagSupport
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |