com.taggercat.tags
Class CodeTableOptionListTag

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

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

This tag creates an option list from an association code table.

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
CodeTableOptionListTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Creates and the option list tags.
 void setCodeTable(java.lang.String codeTable)
          Sets the codeTable name.
 void setDsn(java.lang.String dsn)
          Sets the name of the data source to determine the selected item in the list.
 void setField(java.lang.String field)
          Sets the field name attribute to determine the selected item in the list.
 void setSelected(java.lang.String selected)
          Sets the selected attribute.
 void setSelectedStyleclass(java.lang.String selectedStyleclass)
          Sets the CSS style class to be used to selected items in the option list.
 void setStyleclass(java.lang.String styleclass)
          Sets the CSS style class to be used to items in the option list.
 java.lang.String toString()
          Gets the string representation of this object.
 
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, wait, wait, wait
 

Constructor Detail

CodeTableOptionListTag

public CodeTableOptionListTag()
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
Creates and the option list tags.

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

setCodeTable

public void setCodeTable(java.lang.String codeTable)
Sets the codeTable name.

Parameters:
codeTable - the new codeTable value

setDsn

public void setDsn(java.lang.String dsn)
Sets the name of the data source to determine the selected item in the list. If set, then the selected item is matched to the specified dsn.field value.

Parameters:
dsn - the new dsn value

setField

public void setField(java.lang.String field)
Sets the field name attribute to determine the selected item in the list. If set, then the selected item is matched to the specified dsn.field value.

Parameters:
field - the new field value

setSelected

public void setSelected(java.lang.String selected)
Sets the selected attribute. If a matching code value is found in the CodeTable, then that item is selected in the option list. If a selected value is not specified, and DSN & Field are, then the item with the value matching the value of the dsn.field will be selected.

Parameters:
selected - the new selected value

setSelectedStyleclass

public void setSelectedStyleclass(java.lang.String selectedStyleclass)
Sets the CSS style class to be used to selected items in the option list.

Parameters:
selectedStyleclass - the CSS style class to be used to selected items in the option list.

setStyleclass

public void setStyleclass(java.lang.String styleclass)
Sets the CSS style class to be used to items in the option list.

Parameters:
styleclass - the CSS style class to be used to items in the option list

toString

public java.lang.String toString()
Gets the string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
list of attributes values