|
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.YearViewSelectorTag
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 | |
YearViewSelectorTag()
|
Method Summary | |
protected String |
createLink(int year,
javax.servlet.http.HttpServletRequest request)
Creates a link from the currentYear request |
protected String |
createLink(int year,
String contextPath,
String page)
Create a link from the specified page |
protected String |
createQueryString(int year,
Hashtable queryParams)
Form a query string from current parameter and the specified year |
protected void |
doEndLink()
|
int |
doEndTag()
Render the end of the selector |
protected void |
doStartLink(int year)
|
int |
doStartTag()
Render the beginning of the selector |
protected void |
doYearLeadingSeparationText(int unused)
Writes the text that separates year links |
protected void |
doYearLink(int year)
Write a year link |
protected void |
doYearLinks()
Writes several year links |
protected void |
doYearText(int year)
Writes a Calendar-based year (4 digits) as user-friendly text |
protected void |
doYearTrailingSeparationText(int unused)
Writes the text that separates year links |
Integer |
getCurrentYear()
Return the currently selected year (4 digits, or null) |
String |
getPage()
Return the context-relative URI |
static boolean |
hasFourDigits(int year)
A slightly mis-named utility that checks if an int is positive and has four digits. |
static boolean |
hasFourDigits(Integer year)
A slightly mis-named utility that checks if an Integer is positive and has four digits. |
void |
release()
Release any acquired resources. |
static void |
resetYearInContexts(javax.servlet.jsp.PageContext context,
Integer year)
A utility which resets request and session attributes so that only the session attribute AN_YEAR holds the currently selected year. |
void |
setCurrentYear(Integer currentYear)
Set the currently selected year (4 digits, or null) |
void |
setPage(String page)
Set the context-relative URI |
static Integer |
yearFromContext(javax.servlet.jsp.PageContext context)
A utility which determines what year should be currently selected based on the page context. |
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 YearViewSelectorTag()
Method Detail |
public String getPage()
public void setPage(String page)
public Integer getCurrentYear()
public void setCurrentYear(Integer currentYear) throws javax.servlet.jsp.JspException
public static boolean hasFourDigits(Integer year)
public static boolean hasFourDigits(int year)
public static Integer yearFromContext(javax.servlet.jsp.PageContext context)
public static void resetYearInContexts(javax.servlet.jsp.PageContext context, Integer year)
protected String createQueryString(int year, Hashtable queryParams)
protected String createLink(int year, String contextPath, String page) throws javax.servlet.jsp.JspException
protected String createLink(int year, javax.servlet.http.HttpServletRequest request)
protected void doStartLink(int year) throws javax.servlet.jsp.JspException
protected void doEndLink() throws javax.servlet.jsp.JspException
protected void doYearText(int year) throws javax.servlet.jsp.JspException
protected void doYearLeadingSeparationText(int unused) throws javax.servlet.jsp.JspException
protected void doYearTrailingSeparationText(int unused) throws javax.servlet.jsp.JspException
protected void doYearLink(int year) throws javax.servlet.jsp.JspException
protected void doYearLinks() 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 |