|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
AbstractDataGridHtmlTag
Row
public class Row
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 |
---|
public Row()
Method Detail |
---|
public final String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractSimpleTag
public void setOnClick(String onClick)
onClick
- the onClick event.public void setOnDblClick(String onDblClick)
onDblClick
- the onDblClick event.public void setOnKeyDown(String onKeyDown)
onKeyDown
- the onKeyDown event.public void setOnKeyUp(String onKeyUp)
onKeyUp
- the onKeyUp event.public void setOnKeyPress(String onKeyPress)
onKeyPress
- the onKeyPress event.public void setOnMouseDown(String onMouseDown)
onMouseDown
- the onMouseDown event.public void setOnMouseUp(String onMouseUp)
onMouseUp
- the onMouseUp event.public void setOnMouseMove(String onMouseMove)
onMouseMove
- the onMouseMove event.public void setOnMouseOut(String onMouseOut)
onMouseOut
- the onMouseOut event.public void setOnMouseOver(String onMouseOver)
onMouseOver
- the onMouseOver event.public void setStyle(String style)
style
- the stylepublic void setStyleClass(String styleClass)
styleClass
- the style class.public void setTitle(String title)
title
- the titlepublic void setLang(String lang)
lang
- the langpublic void setDir(String dir)
dir
- the dirpublic void setTagId(String tagId) throws JspException
tagId
- the the name of the tagId for the table row.
JspException
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 State | Style 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() |
doTag
in interface SimpleTag
doTag
in class SimpleTagSupport
JspException
- when the DataGridTagModel
can not be found in the JspContext
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |