com.taggercat.tags
Class RowSelectorTag

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

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

This tag creates tcEntity selection radio buttons or check boxes. The Radio Button is used for selecting a single tcEntity. Check boxes are used for selecting multiple rows.
Example generated form elements:
<input type="radio" name="orders.rowID" value="32" checked >

<input type="checkbox" name="orders.multiSelectRowID" value="35" >

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
RowSelectorTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Processes the tag.
 java.lang.String getDsn()
          Gets the data source name.
 boolean getMultiSelect()
          Gets the multi-select field.
 java.lang.String getOnblur()
          Gets the onblur javascript event handler.
 java.lang.String getOnchange()
          Gets the onchange attribute.
 java.lang.String getOnclick()
          Gets the onclick javascript event handler.
 java.lang.String getOndblclick()
          Gets the onfocus javascript event handler.
 java.lang.String getOnfocus()
          Gets the onfocus javascript event handler.
 java.lang.String getOnkeydown()
          Gets the onkeydown javascript event handler.
 java.lang.String getOnkeypress()
          Gets the onkeypress javascript event handler.
 java.lang.String getOnkeyup()
          Gets the onkeyup javascript event handler.
 java.lang.String getOnmousedown()
          Gets the onmousedown javascript event handler.
 java.lang.String getOnmousemove()
          Gets the onmousemove javascript event handler.
 java.lang.String getOnmouseout()
          Gets the onmouseout javascript event handler.
 java.lang.String getOnmouseover()
          Gets the onmouseover javascript event handler.
 java.lang.String getOnmouseup()
          Gets the onmouseup javascript event handler.
 java.lang.String getOnselect()
          Gets the onselect attribute.
 java.lang.String getStyle()
          Gets the CSS Style.
 java.lang.String getStyleclass()
          Gets the CSS style class.
 java.lang.String getStyleid()
          Gets the CSS Style ID.
 java.lang.String getTabindex()
          Gets the tab index.
 java.lang.String getTitle()
          Gets the title attribute.
 void setAccesskey(java.lang.String accesskey)
          Sets the accesskey attribute.
 void setDsn(java.lang.String dsn)
          Sets the name of the data source the tcEntity id is created for.
 void setMultiSelect(boolean multiSelect)
          Sets the multi-select field
 void setName(java.lang.String name)
          Sets the name attribute.
 void setOnblur(java.lang.String onblur)
          Sets the onblur attribute.
 void setOnchange(java.lang.String onchange)
          Sets the onchange attribute.
 void setOnclick(java.lang.String onclick)
          Sets the onclick attribute.
 void setOndblclick(java.lang.String ondblclick)
          Sets the ondblclick attribute.
 void setOnfocus(java.lang.String onfocus)
          Sets the onfocus attribute.
 void setOnkeydown(java.lang.String onkeydown)
          Sets the onkeydown attribute.
 void setOnkeypress(java.lang.String onkeypress)
          Sets the onkeypress attribute.
 void setOnkeyup(java.lang.String onkeyup)
          Sets the onkeyup attribute.
 void setOnmousedown(java.lang.String onmousedown)
          Sets the onmousedown attribute.
 void setOnmousemove(java.lang.String onmousemove)
          Sets the onmousemove attribute.
 void setOnmouseout(java.lang.String onmouseout)
          Sets the onmouseout attribute.
 void setOnmouseover(java.lang.String onmouseover)
          Sets the onmouseover attribute.
 void setOnmouseup(java.lang.String onmouseup)
          Sets the onmouseup attribute.
 void setOnselect(java.lang.String onselect)
          Sets the onselect attribute.
 void setStyle(java.lang.String style)
          Sets the CSS style attribute.
 void setStyleclass(java.lang.String styleclass)
          Sets the CSS style class attribute.
 void setStyleid(java.lang.String styleid)
          Sets the CSS styleid attribute.
 void setTabindex(java.lang.String tabindex)
          Sets the tabindex attribute.
 void setTitle(java.lang.String title)
          Sets the title 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

RowSelectorTag

public RowSelectorTag()
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
Processes the tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspException
Returns:
SKIP_BODY, this tag does not create a body

getDsn

public java.lang.String getDsn()
Gets the data source name.

Returns:
the data source name

setDsn

public void setDsn(java.lang.String dsn)
Sets the name of the data source the tcEntity id is created for.

Parameters:
dsn - The new dsn value

getMultiSelect

public boolean getMultiSelect()
Gets the multi-select field.

Returns:
true if this is a multi-selection check box

setMultiSelect

public void setMultiSelect(boolean multiSelect)
Sets the multi-select field

Parameters:
multiSelect - set to true if this is a multi-selection element

getOnblur

public java.lang.String getOnblur()
Gets the onblur javascript event handler.

Returns:
the onblur javascript event handler

getOnclick

public java.lang.String getOnclick()
Gets the onclick javascript event handler.

Returns:
the onclick javascript event handler

getOndblclick

public java.lang.String getOndblclick()
Gets the onfocus javascript event handler.

Returns:
the onfocus javascript event handler

getOnfocus

public java.lang.String getOnfocus()
Gets the onfocus javascript event handler.

Returns:
the onfocus javascript event handler

getOnkeydown

public java.lang.String getOnkeydown()
Gets the onkeydown javascript event handler.

Returns:
the onkeydown javascript event handler

getOnkeypress

public java.lang.String getOnkeypress()
Gets the onkeypress javascript event handler.

Returns:
the onkeypress javascript event handler

getOnkeyup

public java.lang.String getOnkeyup()
Gets the onkeyup javascript event handler.

Returns:
the onkeyup javascript event handler

getOnmousedown

public java.lang.String getOnmousedown()
Gets the onmousedown javascript event handler.

Returns:
the onmousedown javascript event handler

getOnmousemove

public java.lang.String getOnmousemove()
Gets the onmousemove javascript event handler.

Returns:
the onmousemove javascript event handler

getOnmouseout

public java.lang.String getOnmouseout()
Gets the onmouseout javascript event handler.

Returns:
the onmouseout javascript event handler

getOnmouseover

public java.lang.String getOnmouseover()
Gets the onmouseover javascript event handler.

Returns:
the onmouseover javascript event handler

getOnmouseup

public java.lang.String getOnmouseup()
Gets the onmouseup javascript event handler.

Returns:
the onmouseup javascript event handler

getOnchange

public java.lang.String getOnchange()
Gets the onchange attribute.

Returns:
the onchange value

getOnselect

public java.lang.String getOnselect()
Gets the onselect attribute.

Returns:
the onselect value

getStyle

public java.lang.String getStyle()
Gets the CSS Style.

Returns:
the name of the CSS Style

getStyleclass

public java.lang.String getStyleclass()
Gets the CSS style class.

Returns:
the name of the CSS style class

getStyleid

public java.lang.String getStyleid()
Gets the CSS Style ID.

Returns:
the CSS style ID

getTabindex

public java.lang.String getTabindex()
Gets the tab index.

Returns:
the tab index

getTitle

public java.lang.String getTitle()
Gets the title attribute.

Returns:
the title set for the element

setAccesskey

public void setAccesskey(java.lang.String accesskey)
Sets the accesskey attribute.

Parameters:
accesskey - the new accesskey value

setOnchange

public void setOnchange(java.lang.String onchange)
Sets the onchange attribute.

Parameters:
onchange - the new onchange value

setOnselect

public void setOnselect(java.lang.String onselect)
Sets the onselect attribute.

Parameters:
onselect - the new onselect value

setName

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

Parameters:
name - the new name value

setOnblur

public void setOnblur(java.lang.String onblur)
Sets the onblur attribute.

Parameters:
onblur - the new onblur value

setOnclick

public void setOnclick(java.lang.String onclick)
Sets the onclick attribute.

Parameters:
onclick - the new onclick value

setOndblclick

public void setOndblclick(java.lang.String ondblclick)
Sets the ondblclick attribute.

Parameters:
ondblclick - the new ondblclick value

setOnfocus

public void setOnfocus(java.lang.String onfocus)
Sets the onfocus attribute.

Parameters:
onfocus - the new onfocus value

setOnkeydown

public void setOnkeydown(java.lang.String onkeydown)
Sets the onkeydown attribute.

Parameters:
onkeydown - the new onkeydown value

setOnkeypress

public void setOnkeypress(java.lang.String onkeypress)
Sets the onkeypress attribute.

Parameters:
onkeypress - the new onkeypress value

setOnkeyup

public void setOnkeyup(java.lang.String onkeyup)
Sets the onkeyup attribute.

Parameters:
onkeyup - the new onkeyup value

setOnmousedown

public void setOnmousedown(java.lang.String onmousedown)
Sets the onmousedown attribute.

Parameters:
onmousedown - the new onmousedown value

setOnmousemove

public void setOnmousemove(java.lang.String onmousemove)
Sets the onmousemove attribute.

Parameters:
onmousemove - the new onmousemove value

setOnmouseout

public void setOnmouseout(java.lang.String onmouseout)
Sets the onmouseout attribute.

Parameters:
onmouseout - the new onmouseout value

setOnmouseover

public void setOnmouseover(java.lang.String onmouseover)
Sets the onmouseover attribute.

Parameters:
onmouseover - the new onmouseover value

setOnmouseup

public void setOnmouseup(java.lang.String onmouseup)
Sets the onmouseup attribute.

Parameters:
onmouseup - the new onmouseup value

setStyle

public void setStyle(java.lang.String style)
Sets the CSS style attribute.

Parameters:
style - the new style value

setStyleclass

public void setStyleclass(java.lang.String styleclass)
Sets the CSS style class attribute.

Parameters:
styleclass - the new styleclass value

setStyleid

public void setStyleid(java.lang.String styleid)
Sets the CSS styleid attribute.

Parameters:
styleid - the new styleid value

setTabindex

public void setTabindex(java.lang.String tabindex)
Sets the tabindex attribute.

Parameters:
tabindex - the new tabindex value

setTitle

public void setTitle(java.lang.String title)
Sets the title attribute.

Parameters:
title - the new title value