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

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by AbstractDataGridHtmlTag
              extended by Rows
All Implemented Interfaces:
JspTag, SimpleTag, IHtmlEvents, IHtmlI18n, INetuiTag

public class Rows
extends AbstractDataGridHtmlTag
implements IHtmlEvents, IHtmlI18n

The Rows tag is used to render a table row(s) that contain the data from a data set displayed in a data grid. The rows rendered here render after the header reders with the Header and before the footer renders in the Footer. The body of this tag usually contains the data grid's "cell" tags which are used to render HTML table cells inside of the rows rendered by this tag. Such tags include:

The attribute setters in this class are used to add attributes to the <tbody> tag which will be rendered when row groups are enabled. When row group rendering is disabled, attributes set here do not render.

Because this tag renders inside of an HTML table, it by default renders an HTML <tr> tag to represent a table row. Table row tag rendering can be disabled using the setRenderRow(boolean) attribute. When this is disabled, the page author is responsible for maintaining the integrity of the HTML table by writing <tr> tags manually or by using the Row tag. When this tag is rendering it does not produce table cells; the contents of the table row in the footer is entirely left to the page author. With row rendering disabled, it is also possible to add multiple table rows to the end of a data grid.

The set of JSP implicit objects available to the body include:


Constructor Summary
Rows()
           
 
Method Summary
 void doTag()
          Render this tag.
 String getTagName()
          The name of this tag; this value is used for error reporting.
 void setAlign(String align)
          Sets the value of the horizontal alignment attribute of the HTML tbody tag.
 void setChar(String alignChar)
          Sets the value of the horizontal alignment character attribute of the HTML tbody tag.
 void setCharoff(String alignCharOff)
          Sets the value of the horizontal alignment character offset attribute.
 void setDir(String dir)
          Sets the value of the text direction attribute of the HTML tbody tag.
 void setLang(String lang)
          Sets the value of the language attribute of the HTML tbody tag.
 void setOnClick(String onClick)
          Sets the onClick JavaScript event for the HTML tbody tag.
 void setOnDblClick(String onDblClick)
          Sets the onDblClick JavaScript event for the HTML tbody tag.
 void setOnKeyDown(String onKeyDown)
          Sets the onKeyDown JavaScript event for the HTML tbody tag.
 void setOnKeyPress(String onKeyPress)
          Sets the onKeyPress JavaScript event for the HTML tbody tag.
 void setOnKeyUp(String onKeyUp)
          Sets the onKeyUp JavaScript event for the HTML tbody tag.
 void setOnMouseDown(String onMouseDown)
          Sets the onMouseDown JavaScript event for the HTML tbody tag.
 void setOnMouseMove(String onMouseMove)
          Sets the onMouseMove JavaScript event for the HTML tbody tag.
 void setOnMouseOut(String onMouseOut)
          Sets the onMouseOut JavaScript event for the HTML tbody tag.
 void setOnMouseOver(String onMouseOver)
          Sets the onMouseOver JavaScript event for the HTML tbody tag.
 void setOnMouseUp(String onMouseUp)
          Sets the onMouseUp JavaScript event for the HTML tbody tag.
 void setRenderRow(boolean renderRow)
          Set a boolean that enables / disables rendering HTML table rows by this tag.
 void setStyle(String style)
          Sets the style of the HTML tbody tag.
 void setStyleClass(String styleClass)
          Sets the style class of the HTML tbody tag.
 void setTagId(String tagId)
          Set the name of the tagId for the HTML tbody tag.
 void setTitle(String title)
          Sets the value of the title attribute for the HTML tbody tag.
 void setValign(String align)
          Sets the value of the vertical alignment attribute of the HTML tbody 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

Rows

public Rows()
Method Detail

getTagName

public 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 event for the HTML tbody tag.

Specified by:
setOnClick in interface IHtmlEvents
Parameters:
onClick - the onClick event.

setOnDblClick

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

Specified by:
setOnDblClick in interface IHtmlEvents
Parameters:
onDblClick - the onDblClick event.

setOnKeyDown

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

Specified by:
setOnKeyDown in interface IHtmlEvents
Parameters:
onKeyDown - the onKeyDown event.

setOnKeyUp

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

Specified by:
setOnKeyUp in interface IHtmlEvents
Parameters:
onKeyUp - the onKeyUp event.

setOnKeyPress

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

Specified by:
setOnKeyPress in interface IHtmlEvents
Parameters:
onKeyPress - the onKeyPress event.

setOnMouseDown

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

Specified by:
setOnMouseDown in interface IHtmlEvents
Parameters:
onMouseDown - the onMouseDown event.

setOnMouseUp

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

Specified by:
setOnMouseUp in interface IHtmlEvents
Parameters:
onMouseUp - the onMouseUp event.

setOnMouseMove

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

Specified by:
setOnMouseMove in interface IHtmlEvents
Parameters:
onMouseMove - the onMouseMove event.

setOnMouseOut

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

Specified by:
setOnMouseOut in interface IHtmlEvents
Parameters:
onMouseOut - the onMouseOut event.

setOnMouseOver

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

Specified by:
setOnMouseOver in interface IHtmlEvents
Parameters:
onMouseOver - the onMouseOver event.

setStyle

public void setStyle(String style)
Sets the style of the HTML tbody tag.

Parameters:
style - the style

setStyleClass

public void setStyleClass(String styleClass)
Sets the style class of the HTML tbody tag.

Parameters:
styleClass - the style class

setTitle

public void setTitle(String title)
Sets the value of the title attribute for the HTML tbody tag.

Parameters:
title - the title

setAlign

public void setAlign(String align)
Sets the value of the horizontal alignment attribute of the HTML tbody tag.

Parameters:
align - the horizontal alignment

setChar

public void setChar(String alignChar)
Sets the value of the horizontal alignment character attribute of the HTML tbody tag.

Parameters:
alignChar - the horizontal alignment character

setCharoff

public void setCharoff(String alignCharOff)
Sets the value of the horizontal alignment character offset attribute.

Parameters:
alignCharOff -

setValign

public void setValign(String align)
Sets the value of the vertical alignment attribute of the HTML tbody tag.

Parameters:
align - the alignment

setLang

public void setLang(String lang)
Sets the value of the language attribute of the HTML tbody tag.

Specified by:
setLang in interface IHtmlI18n
Parameters:
lang - the language

setDir

public void setDir(String dir)
Sets the value of the text direction attribute of the HTML tbody tag.

Specified by:
setDir in interface IHtmlI18n
Parameters:
dir - the dir

setTagId

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

Parameters:
tagId - - the the name of the tagId for the tbody tag.
Throws:
JspException

setRenderRow

public void setRenderRow(boolean renderRow)
Set a boolean that enables / disables rendering HTML table rows by this tag. If the value is enabled, an HTML <tr> will be rendered when this tag renders its body. If the value is disabled, no <tr> tags will be rendered and the page author is responsible for maintaining the integrity of the HTML table.


doTag

public void doTag()
           throws IOException,
                  JspException
Render this tag. This method renders during the data grid's DataGridTagModel.RENDER_STATE_GRID state in order to add table rows to the beginning of a data grid's HTML table. If the data grid is rendering HTML row groups, this tag will output an HTML <tbody> tag. Then, if this tag is rendering a table row, it will produce an HTML <tr> tag. Then the content of the body will be rendered. If table row rendering is disabled, the page author is responsible for rendering the appropriate HTML table row tags as this tag renders inside of the HTML table opened by the data grid.

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