org.apache.beehive.netui.tags.databinding.datagrid
Class Row

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by AbstractDataGridHtmlTag
              extended by Row
All Implemented Interfaces:
JspTag, SimpleTag, INetuiTag

public class Row
extends AbstractDataGridHtmlTag

This tag is optionally used to render HTML table roe tags inside of one of the data grid tags that are used to denote data grid row rendering boundaries. When the Header, Rows, or Footer have their renderRow attribute set to false, no HTML table row element will render before starting to render the body of one of these tags. This tag should be used when renderRows is false in order to render an HTML table row. The Row tag is used this way in order to allow a page author to set JSP tag attributes that can configure each rendered table row differently. For example:

   <netui-data:rows renderRows="false">
     <netui-data:row styleClass="rowStyle${container.index}">
       <netui-data:spanCell value="${container.item}"/>
     </netui-data:row>
   </netui-data:rows>
 
and a data set containing ["foo", "bar", "baz"] will render:
   <tr class="rowStyle0">foo</tr>
   <tr class="rowStyle1">bar</tr>
   <tr class="rowStyle2">baz</tr>
 
If the <netui-data:row$gt; were omitted, none of the <tr> elements would be rendered in the output. Note, this tag should not be used inside of the Header, Rows, or Footer tags unless their renderRow attribute is set to false


Constructor Summary
Row()
           
 
Method Summary
 void doTag()
           Render this tag.
 String getTagName()
          The name of this tag; this value is used for error reporting.
 void setDir(String dir)
          Sets the lang attribute for the HTML element tr tag.
 void setLang(String lang)
          Sets the lang attribute for the HTML tr tag.
 void setOnClick(String onClick)
          Sets the onClick JavaScript for the HTML tr tag.
 void setOnDblClick(String onDblClick)
          Sets the onDblClick JavaScript for the HTML tr tag.
 void setOnKeyDown(String onKeyDown)
          Sets the onKeyDown JavaScript for the HTML tr tag.
 void setOnKeyPress(String onKeyPress)
          Sets the onKeyPress JavaScript for the HTML tr tag.
 void setOnKeyUp(String onKeyUp)
          Sets the onKeyUp JavaScript for the HTML tr tag.
 void setOnMouseDown(String onMouseDown)
          Sets the onMouseDown JavaScript for the HTML tr tag.
 void setOnMouseMove(String onMouseMove)
          Sets the onMouseMove JavaScript for the HTML tr tag.
 void setOnMouseOut(String onMouseOut)
          Sets the onMouseOut JavaScript for the HTML tr tag.
 void setOnMouseOver(String onMouseOver)
          Sets the onMouseOver JavaScript for the HTML tr tag.
 void setOnMouseUp(String onMouseUp)
          Sets the onMouseUp JavaScript for the HTML tr tag.
 void setStyle(String style)
          Sets the style attribute for the HTML tr tag.
 void setStyleClass(String styleClass)
          Sets the style class for the HTML tr tag.
 void setTagId(String tagId)
          Set the name of the tagId for the HTML tr tag.
 void setTitle(String title)
          Sets the title attribute for the HTML tr tag.
 
Methods inherited from class AbstractDataGridHtmlTag
applyIndexedTagId, applyTagId, lookupDataGridTagModel, renderDefaultNameAndId, renderNameAndId
 
Methods inherited from class AbstractSimpleTag
getBufferBody, getHtmlTag, getIdForTagId, getInlineError, getPageContext, getScriptReporter, getUserLocale, hasErrors, registerTagError, registerTagError, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write
 
Methods inherited from class SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Row

public Row()
Method Detail

getTagName

public final String getTagName()
The name of this tag; this value is used for error reporting.

Specified by:
getTagName in interface INetuiTag
Specified by:
getTagName in class AbstractSimpleTag
Returns:
the String name of this tag

setOnClick

public void setOnClick(String onClick)
Sets the onClick JavaScript for the HTML tr tag.

Parameters:
onClick - the onClick event.

setOnDblClick

public void setOnDblClick(String onDblClick)
Sets the onDblClick JavaScript for the HTML tr tag.

Parameters:
onDblClick - the onDblClick event.

setOnKeyDown

public void setOnKeyDown(String onKeyDown)
Sets the onKeyDown JavaScript for the HTML tr tag.

Parameters:
onKeyDown - the onKeyDown event.

setOnKeyUp

public void setOnKeyUp(String onKeyUp)
Sets the onKeyUp JavaScript for the HTML tr tag.

Parameters:
onKeyUp - the onKeyUp event.

setOnKeyPress

public void setOnKeyPress(String onKeyPress)
Sets the onKeyPress JavaScript for the HTML tr tag.

Parameters:
onKeyPress - the onKeyPress event.

setOnMouseDown

public void setOnMouseDown(String onMouseDown)
Sets the onMouseDown JavaScript for the HTML tr tag.

Parameters:
onMouseDown - the onMouseDown event.

setOnMouseUp

public void setOnMouseUp(String onMouseUp)
Sets the onMouseUp JavaScript for the HTML tr tag.

Parameters:
onMouseUp - the onMouseUp event.

setOnMouseMove

public void setOnMouseMove(String onMouseMove)
Sets the onMouseMove JavaScript for the HTML tr tag.

Parameters:
onMouseMove - the onMouseMove event.

setOnMouseOut

public void setOnMouseOut(String onMouseOut)
Sets the onMouseOut JavaScript for the HTML tr tag.

Parameters:
onMouseOut - the onMouseOut event.

setOnMouseOver

public void setOnMouseOver(String onMouseOver)
Sets the onMouseOver JavaScript for the HTML tr tag.

Parameters:
onMouseOver - the onMouseOver event.

setStyle

public void setStyle(String style)
Sets the style attribute for the HTML tr tag.

Parameters:
style - the style

setStyleClass

public void setStyleClass(String styleClass)
Sets the style class for the HTML tr tag.

Parameters:
styleClass - the style class.

setTitle

public void setTitle(String title)
Sets the title attribute for the HTML tr tag.

Parameters:
title - the title

setLang

public void setLang(String lang)
Sets the lang attribute for the HTML tr tag.

Parameters:
lang - the lang

setDir

public void setDir(String dir)
Sets the lang attribute for the HTML element tr tag.

Parameters:
dir - the dir

setTagId

public void setTagId(String tagId)
              throws JspException
Set the name of the tagId for the HTML tr tag.

Parameters:
tagId - the the name of the tagId for the table row.
Throws:
JspException

doTag

public void doTag()
           throws JspException,
                  IOException

Render this tag. This tag renders during the data grid's DataGridTagModel.RENDER_STATE_HEADER, DataGridTagModel.RENDER_STATE_GRID, and the DataGridTagModel.RENDER_STATE_FOOTER render states. This tag will always render the an HTML table row tag and its body. The result is added to the output stream.

Unless the setStyleClass(String) attribute has been set and is non-null, the following style classes are used during the various supported rendering states:

Render StateStyle Class
DataGridTagModel.RENDER_STATE_HEADER StyleModel.getHeaderRowClass()
DataGridTagModel.RENDER_STATE_GRID StyleModel.getRowClass() for an even row StyleModel.getAltRowClass() for odd rows.
DataGridTagModel.RENDER_STATE_FOOTER StyleModel.getFooterRowClass()

Specified by:
doTag in interface SimpleTag
Overrides:
doTag in class SimpleTagSupport
Throws:
JspException - when the DataGridTagModel can not be found in the JspContext
IOException