com.taggercat.tags
Class SortOrderIndicatorTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.tags.SortOrderIndicatorTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class SortOrderIndicatorTag
extends javax.servlet.jsp.tagext.TagSupport

This tag creates column heading sort order indicators. Add context-param elements to your application's deployment descriptor, as shown here:

 <context-param>
   <param-name>sortedIndicatorASC</param-name>
   <param-value><![CDATA[<img src="Images/sortASC.gif" width="11" height="13">]]></param-value>
 </context-param>
 

<context-param> <param-name>sortedIndicatorDESC</param-name> <param-value><![CDATA[<img src="Images/sortDESC.gif" width="11" height="13">]]></param-value> </context-param>

<context-param> <param-name>sortableIndicator</param-name> <param-value><![CDATA[<img src="Images/unsorted.gif" width="11" height="13">]]></param-value> </context-param>

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
SortOrderIndicatorTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Prints the current sort order indicator for the field.
 void setDsn(java.lang.String dsn)
          Set the name of the data source this field is a member of.
 void setField(java.lang.String field)
          Sets the field name attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortOrderIndicatorTag

public SortOrderIndicatorTag()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Prints the current sort order indicator for the field.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException
Returns:
SKIP_BODY

setDsn

public void setDsn(java.lang.String dsn)
Set the name of the data source this field is a member of.

Parameters:
dsn - the data source name

setField

public void setField(java.lang.String field)
Sets the field name attribute.

Parameters:
field - the field name