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

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by AbstractDataGridHtmlTag
              extended by AbstractCell
                  extended by AbstractHtmlTableCell
                      extended by TemplateCell
All Implemented Interfaces:
JspTag, SimpleTag, IAttributeConsumer, IBehaviorConsumer, INetuiTag

public class TemplateCell
extends AbstractHtmlTableCell

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:

The 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 AbstractHtmlTableCell
renderCell, setAttribute, setBehavior, setCellAbbr, setCellAlign, setCellAxis, setCellChar, setCellCharoff, setCellColspan, setCellDir, setCellHeaders, setCellLang, setCellOnClick, setCellOnDblClick, setCellOnKeyDown, setCellOnKeyPress, setCellOnKeyUp, setCellOnMouseDown, setCellOnMouseMove, setCellOnMouseOut, setCellOnMouseOver, setCellOnMouseUp, setCellRowspan, setCellScope, setCellStyle, setCellStyleClass, setCellTagId, setCellTitle, setCellValign, setFilterExpression, setSortExpression
 
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

TemplateCell

public TemplateCell()
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

renderDataCellContents

protected void renderDataCellContents(AbstractRenderAppender appender,
                                      String jspFragmentOutput)
Render the contents of this cell. For this tag, the result of executing the JspFragment is added to the output stream.

Specified by:
renderDataCellContents in class AbstractHtmlTableCell
Parameters:
appender - the AbstractRenderAppender used for output
jspFragmentOutput - the result of evaluating the body of the tag.

internalGetCellModel

protected CellModel internalGetCellModel()
Implementation of AbstractCell.internalGetCellModel() that exposes the TemplateCellModel which is storing state for this tag.

Specified by:
internalGetCellModel in class AbstractCell
Returns:
this tag's template cell model