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

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by AbstractCell
              extended by HeaderCell
All Implemented Interfaces:
JspTag, SimpleTag, IFormattable, IBehaviorConsumer, INetuiTag

public class HeaderCell
extends AbstractCell
implements IFormattable, IBehaviorConsumer


Constructor Summary
HeaderCell()
           
 
Method Summary
protected  void applyAttributes()
           
 String getTagName()
          Return the name of the tag.
protected  CellModel internalGetCellModel()
           
protected  void renderCell(AbstractRenderAppender appender)
           
protected  void renderHeaderCellContents(AbstractRenderAppender appender)
           
 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 setDisableFilterRendering(boolean disableFilterRendering)
           
 void setDisableSortRendering(boolean disableSortRendering)
           
 void setFilterAction(String filterAction)
           
 void setFilterExpression(String filterExpression)
           
 void setFilterHref(String filterHref)
           
 void setHeaderText(String headerText)
          Sets the text to render for this table header cell.
 void setScopeId(String scopeId)
          Sets the scopeId for any anchors rendered by this header cell.
 void setSortAction(String sortAction)
           
 void setSortExpression(String sortExpression)
           
 void setSortHref(String sortHref)
           
 
Methods inherited from class AbstractCell
addFormatter, addStateAttribute, doTag, formatterHasError, renderEmptyCell
 
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
 
Methods inherited from interface IFormattable
addFormatter, formatterHasError
 

Constructor Detail

HeaderCell

public HeaderCell()
Method Detail

getTagName

public String getTagName()
Description copied from class: AbstractSimpleTag
Return the name of the tag. Used by error reporting to get the name of the tag.

Specified by:
getTagName in interface INetuiTag
Specified by:
getTagName in class AbstractSimpleTag
Returns:
the name of the tag.

setHeaderText

public void setHeaderText(String headerText)
Sets the text to render for this table header cell.

Parameters:
headerText - The text to render.

setScopeId

public void setScopeId(String scopeId)
Sets the scopeId for any anchors rendered by this header cell.


setDisableFilterRendering

public void setDisableFilterRendering(boolean disableFilterRendering)

setFilterExpression

public void setFilterExpression(String filterExpression)

setFilterAction

public void setFilterAction(String filterAction)

setFilterHref

public void setFilterHref(String filterHref)

setDisableSortRendering

public void setDisableSortRendering(boolean disableSortRendering)

setSortExpression

public void setSortExpression(String sortExpression)

setSortAction

public void setSortAction(String sortAction)

setSortHref

public void setSortHref(String sortHref)

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 -

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.

internalGetCellModel

protected CellModel internalGetCellModel()
Specified by:
internalGetCellModel in class AbstractCell

renderCell

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

renderHeaderCellContents

protected void renderHeaderCellContents(AbstractRenderAppender appender)
                                 throws IOException,
                                        JspException
Throws:
IOException
JspException

applyAttributes

protected void applyAttributes()
                        throws JspException
Overrides:
applyAttributes in class AbstractCell
Throws:
JspException