|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
AbstractDataGridHtmlTag
AbstractCell
AbstractHtmlTableCell
TemplateCell
public class TemplateCell
Data grid cell that renders the content contained inside of its body inside of an HTML <td>
tag. The body of the template cell can contain any JSP markup that is legal to nest inside of
a SimpleTag
.
The templateCell can be used to render HTML UI that is not supported with other data grid cell types. For example,
to build UI that will POST data to a form, the NetUI TextBox
tag can
be used as:
<netui-data:templateCell> <netui:textBox dataSource="container.item.name"/> </netui-data:templateCell>
The set of JSP implicit objects available to the body include:
dataGridModel
-- the DataGridTagModel
for the cell's containing data grid.container
-- the IDataAccessProvider
instance
that exposes the current data item and the current item's indexThe HTML events, core attributes, and internationalization JSP tag attributes are applied to the <td>.
Constructor Summary | |
---|---|
TemplateCell()
|
Method Summary | |
---|---|
String |
getTagName()
The name of this tag; this value is used for error reporting. |
protected CellModel |
internalGetCellModel()
Implementation of AbstractCell.internalGetCellModel() that exposes the
TemplateCellModel
which is storing state for this tag. |
protected void |
renderDataCellContents(AbstractRenderAppender appender,
String jspFragmentOutput)
Render the contents of this cell. |
Methods inherited from class AbstractCell |
---|
addFormatter, addStateAttribute, applyAttributes, doTag, formatterHasError, renderEmptyCell |
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 TemplateCell()
Method Detail |
---|
public String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractSimpleTag
protected void renderDataCellContents(AbstractRenderAppender appender, String jspFragmentOutput)
JspFragment
is added to the output stream.
renderDataCellContents
in class AbstractHtmlTableCell
appender
- the AbstractRenderAppender
used for outputjspFragmentOutput
- the result of evaluating the body of the tag.protected CellModel internalGetCellModel()
AbstractCell.internalGetCellModel()
that exposes the
TemplateCellModel
which is storing state for this tag.
internalGetCellModel
in class AbstractCell
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |