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

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by AbstractCell
              extended by AbstractHtmlTableCell
All Implemented Interfaces:
JspTag, SimpleTag, IAttributeConsumer, IBehaviorConsumer, INetuiTag
Direct Known Subclasses:
AnchorCell, ImageAnchorCell, ImageCell, SpanCell, TemplateCell

public abstract class AbstractHtmlTableCell
extends AbstractCell
implements IAttributeConsumer, IBehaviorConsumer


Constructor Summary
AbstractHtmlTableCell()
           
 
Method Summary
protected  void renderCell(AbstractRenderAppender appender)
           
protected abstract  void renderDataCellContents(AbstractRenderAppender appender, String output)
           
 void setAttribute(String name, String value, String facet)
          Base support for the attribute tag.
 void setBehavior(String name, String value, String facet)
          Set a behavior value on the implementing class.
 void setCellAbbr(String abbr)
          Sets the value of the abbreviated form of the cell's content.
 void setCellAlign(String align)
          Sets the value of the horizontal align attribute.
 void setCellAxis(String axis)
          Sets the value of the axis attribute.
 void setCellChar(String alignChar)
          Sets the value of the horizontal alignment character attribute.
 void setCellCharoff(String alignCharOff)
          Sets the value of the horizontal alignment character offset attribute.
 void setCellColspan(int colSpan)
          Sets the value of the cell's colspan attribute.
 void setCellDir(String dir)
          Sets the value of the text direction attribute.
 void setCellHeaders(String headers)
          Sets the value of the headers attribute.
 void setCellLang(String lang)
          Sets the value of the languageattribute.
 void setCellOnClick(String onClick)
          Sets the onClick javascript event.
 void setCellOnDblClick(String onDblClick)
          Sets the onDblClick javascript event.
 void setCellOnKeyDown(String onKeyDown)
          Sets the onKeyDown javascript event.
 void setCellOnKeyPress(String onKeyPress)
          Sets the onKeyPress javascript event.
 void setCellOnKeyUp(String onKeyUp)
          Sets the onKeyUp javascript event.
 void setCellOnMouseDown(String onMouseDown)
          Sets the onMouseDown javascript event.
 void setCellOnMouseMove(String onMouseMove)
          Sets the onMouseMove javascript event.
 void setCellOnMouseOut(String onMouseOut)
          Sets the onMouseOut javascript event.
 void setCellOnMouseOver(String onMouseOver)
          Sets the onMouseOver javascript event.
 void setCellOnMouseUp(String onMouseUp)
          Sets the onMouseUp javascript event.
 void setCellRowspan(int rowSpan)
          Sets the value of the cell's rowspan attribute.
 void setCellScope(String scope)
          Sets the value of the scope attribute.
 void setCellStyle(String style)
          Sets the style of the rendered html tag.
 void setCellStyleClass(String styleClass)
          Sets the style class of the rendered html tag.
 void setCellTitle(String title)
          Sets the value of the title attribute.
 void setCellValign(String align)
          Sets the value of the vertical alignment attribute.
 void setFilterExpression(String filterExpression)
           
 void setSortExpression(String sortExpression)
           
 
Methods inherited from class AbstractCell
addFormatter, addStateAttribute, applyAttributes, doTag, formatterHasError, internalGetCellModel, renderEmptyCell
 
Methods inherited from class AbstractSimpleTag
getBufferBody, getHtmlTag, getIdForTagId, getInlineError, getPageContext, getScriptReporter, getTagName, 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

AbstractHtmlTableCell

public AbstractHtmlTableCell()
Method Detail

setSortExpression

public void setSortExpression(String sortExpression)
Parameters:
sortExpression -

setFilterExpression

public void setFilterExpression(String filterExpression)
Parameters:
filterExpression -

setCellOnClick

public void setCellOnClick(String onClick)
Sets the onClick javascript event.

Parameters:
onClick - - the onClick event.

setCellOnDblClick

public void setCellOnDblClick(String onDblClick)
Sets the onDblClick javascript event.

Parameters:
onDblClick - - the onDblClick event.

setCellOnKeyDown

public void setCellOnKeyDown(String onKeyDown)
Sets the onKeyDown javascript event.

Parameters:
onKeyDown - - the onKeyDown event.

setCellOnKeyUp

public void setCellOnKeyUp(String onKeyUp)
Sets the onKeyUp javascript event.

Parameters:
onKeyUp - - the onKeyUp event.

setCellOnKeyPress

public void setCellOnKeyPress(String onKeyPress)
Sets the onKeyPress javascript event.

Parameters:
onKeyPress - - the onKeyPress event.

setCellOnMouseDown

public void setCellOnMouseDown(String onMouseDown)
Sets the onMouseDown javascript event.

Parameters:
onMouseDown - - the onMouseDown event.

setCellOnMouseUp

public void setCellOnMouseUp(String onMouseUp)
Sets the onMouseUp javascript event.

Parameters:
onMouseUp - - the onMouseUp event.

setCellOnMouseMove

public void setCellOnMouseMove(String onMouseMove)
Sets the onMouseMove javascript event.

Parameters:
onMouseMove - - the onMouseMove event.

setCellOnMouseOut

public void setCellOnMouseOut(String onMouseOut)
Sets the onMouseOut javascript event.

Parameters:
onMouseOut - - the onMouseOut event.

setCellOnMouseOver

public void setCellOnMouseOver(String onMouseOver)
Sets the onMouseOver javascript event.

Parameters:
onMouseOver - - the onMouseOver event.

setCellStyle

public void setCellStyle(String style)
Sets the style of the rendered html tag.

Parameters:
style - - the html style.

setCellStyleClass

public void setCellStyleClass(String styleClass)
Sets the style class of the rendered html tag.

Parameters:
styleClass - - the html style class.

setCellTitle

public void setCellTitle(String title)
Sets the value of the title attribute.

Parameters:
title -

setCellRowspan

public void setCellRowspan(int rowSpan)
Sets the value of the cell's rowspan attribute.

Parameters:
rowSpan -

setCellColspan

public void setCellColspan(int colSpan)
Sets the value of the cell's colspan attribute.

Parameters:
colSpan -

setCellAlign

public void setCellAlign(String align)
Sets the value of the horizontal align attribute.

Parameters:
align -

setCellChar

public void setCellChar(String alignChar)
Sets the value of the horizontal alignment character attribute.

Parameters:
alignChar -

setCellCharoff

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

Parameters:
alignCharOff -

setCellValign

public void setCellValign(String align)
Sets the value of the vertical alignment attribute.

Parameters:
align -

setCellLang

public void setCellLang(String lang)
Sets the value of the languageattribute.

Parameters:
lang -

setCellDir

public void setCellDir(String dir)
Sets the value of the text direction attribute.

Parameters:
dir -

setCellAbbr

public void setCellAbbr(String abbr)
Sets the value of the abbreviated form of the cell's content.

Parameters:
abbr -

setCellAxis

public void setCellAxis(String axis)
Sets the value of the axis attribute.

Parameters:
axis -

setCellHeaders

public void setCellHeaders(String headers)
Sets the value of the headers attribute.

Parameters:
headers -

setCellScope

public void setCellScope(String scope)
Sets the value of the scope attribute.

Parameters:
scope -

setAttribute

public void setAttribute(String name,
                         String value,
                         String facet)
                  throws JspException
Base support for the attribute tag. This requires that the tag buffer their body and write attribute in the end tag. For the HTML tags it is not legal to set the id or name attributes. In addition, the base tag does not allow facets to be set. If the attribute is legal it will be added to the general expression map stored in the AbstractHtmlState of the tag.

Specified by:
setAttribute in interface IAttributeConsumer
Parameters:
name - The name of the attribute. This value may not be null or the empty string.
value - The value of the attribute. This may contain an expression.
facet - The name of a facet to which the attribute will be applied. This is optional.
Throws:
JspException - A JspException may be thrown if there is an error setting the attribute.

setBehavior

public void setBehavior(String name,
                        String value,
                        String facet)
                 throws JspException
Description copied from interface: IBehaviorConsumer
Set a behavior value on the implementing class. The name represents the name of the behavior. The value represents the value. The facet is optional and may be used by complex types to target the behavior.

Specified by:
setBehavior in interface IBehaviorConsumer
Parameters:
name - The name of the behavior. This value may not be null or the empty string.
value - The value of the behavior.
facet - The name of a facet to which the attribute will be applied. This is optional.
Throws:
JspException - A JspException may be thrown if there is an error setting the attribute.

renderCell

protected void renderCell(AbstractRenderAppender appender)
                   throws IOException,
                          JspException
Specified by:
renderCell in class AbstractCell
Throws:
IOException
JspException

renderDataCellContents

protected abstract void renderDataCellContents(AbstractRenderAppender appender,
                                               String output)
                                        throws IOException,
                                               JspException
Throws:
IOException
JspException