|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
AbstractDataGridHtmlTag
AbstractCell
AbstractHtmlTableCell
public abstract class AbstractHtmlTableCell
Abstract base class that supports rendering an HTML <td>. This tag should be used as the base class
for all tags which render content during the data grid's DataGridTagModel.RENDER_STATE_GRID
render
state. Subclasses must implement the renderDataCellContents(org.apache.beehive.netui.tags.rendering.AbstractRenderAppender, String)
which will be invoked after the opening table cell tag and before the closing table cell tag.
State attributes set via the setCell*
methods are added to the attribute set used
when rendering the <td> tag.
Constructor Summary | |
---|---|
AbstractHtmlTableCell()
|
Method Summary | |
---|---|
protected void |
renderCell(AbstractRenderAppender appender)
Base HTML table cell rendering functionality which opens and closes the HTML <td> tags with the correct style and attribute information. |
protected abstract void |
renderDataCellContents(AbstractRenderAppender appender,
String output)
Abstract method implemented by subclasses in order to render a cell's content. |
void |
setAttribute(String name,
String value,
String facet)
Base support for setting attributes on a tag via the IAttributeConsumer interface. |
void |
setBehavior(String name,
Object value,
String facet)
Base support for setting behavior values via the IBehaviorConsumer interface. |
void |
setCellAbbr(String abbr)
Sets the value of the abbreviated form of the HTML table cell's content. |
void |
setCellAlign(String align)
Sets the horizontal alignment of the HTML table cell. |
void |
setCellAxis(String axis)
Sets the value of the axis attribute for the HTML table cell. |
void |
setCellChar(String alignChar)
Sets the value of the horizontal alignment character attribute for the HTML table cell. |
void |
setCellCharoff(String alignCharOff)
Sets the value of the horizontal alignment character offset attribute for the HTML table cell. |
void |
setCellColspan(int colSpan)
Sets the colspan attribute of the HTML table cell. |
void |
setCellDir(String dir)
Sets the value of the text direction attribute for the HTML table cell. |
void |
setCellHeaders(String headers)
Sets the value of the headers attribute for the HTML table cell. |
void |
setCellLang(String lang)
Sets the value of the language attribute for the HTML table cell. |
void |
setCellOnClick(String onClick)
Sets the onClick JavaScript event for the HTML table cell. |
void |
setCellOnDblClick(String onDblClick)
Sets the onDblClick javascript event for the HTML table cell. |
void |
setCellOnKeyDown(String onKeyDown)
Sets the onKeyDown javascript event for the HTML table cell. |
void |
setCellOnKeyPress(String onKeyPress)
Sets the onKeyPress javascript event for the HTML table cell. |
void |
setCellOnKeyUp(String onKeyUp)
Sets the onKeyUp javascript event for the HTML table cell. |
void |
setCellOnMouseDown(String onMouseDown)
Sets the onMouseDown javascript event for the HTML table cell. |
void |
setCellOnMouseMove(String onMouseMove)
Sets the onMouseMove javascript event for the HTML table cell. |
void |
setCellOnMouseOut(String onMouseOut)
Sets the onMouseOut javascript event for the HTML table cell. |
void |
setCellOnMouseOver(String onMouseOver)
Sets the onMouseOver javascript event for the HTML table cell. |
void |
setCellOnMouseUp(String onMouseUp)
Sets the onMouseUp javascript event for the HTML table cell. |
void |
setCellRowspan(int rowSpan)
Sets the rowspan attribute for the HTML table cell. |
void |
setCellScope(String scope)
Sets the value of the scope attribute for the HTML table cell. |
void |
setCellStyle(String style)
Sets the style attribute for the HTML table cell. |
void |
setCellStyleClass(String styleClass)
Sets the style class attribute for the HTML table cell. |
void |
setCellTagId(String tagId)
Set the name of the tagId for the HTML table cell. |
void |
setCellTitle(String title)
Sets the value of the title attribute for the HTML table cell. |
void |
setCellValign(String align)
Sets the value of the vertical alignment attribute for the HTML table cell. |
void |
setFilterExpression(String filterExpression)
Set the filter expression with which this cell should be associated. |
void |
setSortExpression(String sortExpression)
Set the sort expression with which this cell should be associated. |
Methods inherited from class AbstractCell |
---|
addFormatter, addStateAttribute, applyAttributes, doTag, formatterHasError, internalGetCellModel, renderEmptyCell |
Methods inherited from class AbstractDataGridHtmlTag |
---|
applyIndexedTagId, applyTagId, lookupDataGridTagModel, renderDefaultNameAndId, renderNameAndId |
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 |
---|
public AbstractHtmlTableCell()
Method Detail |
---|
public void setSortExpression(String sortExpression)
Set the sort expression with which this cell should be associated. Cells use this value
to lookup any Sort
state
that may apply to this cell. Often, this value matches a HeaderCell.setSortExpression(String)
set on a header cell. It is used by data cells to render styles representing sorted data.
sortExpression
- the sort expressionpublic void setFilterExpression(String filterExpression)
Set the filter expression with which this cell should be associated. Cells use this value
to lookup any Filter
state
that may apply to this cell. Often, this value matches a HeaderCell.setFilterExpression(String)
set on a header cell. It is used by data cells to render styles representing filtered data.
filterExpression
- the filter expressionpublic void setCellOnClick(String onClick)
onClick
- the onClick event.public void setCellOnDblClick(String onDblClick)
onDblClick
- the onDblClick event.public void setCellOnKeyDown(String onKeyDown)
onKeyDown
- the onKeyDown event.public void setCellOnKeyUp(String onKeyUp)
onKeyUp
- the onKeyUp event.public void setCellOnKeyPress(String onKeyPress)
onKeyPress
- the onKeyPress event.public void setCellOnMouseDown(String onMouseDown)
onMouseDown
- the onMouseDown event.public void setCellOnMouseUp(String onMouseUp)
onMouseUp
- the onMouseUp event.public void setCellOnMouseMove(String onMouseMove)
onMouseMove
- the onMouseMove event.public void setCellOnMouseOut(String onMouseOut)
onMouseOut
- the onMouseOut event.public void setCellOnMouseOver(String onMouseOver)
onMouseOver
- the onMouseOver event.public void setCellStyle(String style)
style
- the html style.public void setCellStyleClass(String styleClass)
styleClass
- the html style class.public void setCellTitle(String title)
title
- the titlepublic void setCellRowspan(int rowSpan)
rowSpan
- the rowspanpublic void setCellColspan(int colSpan)
colSpan
- the colspanpublic void setCellAlign(String align)
align
- the alignmentpublic void setCellChar(String alignChar)
alignChar
- the horizontal alignment characterpublic void setCellCharoff(String alignCharOff)
alignCharOff
- the alingnment character offsetpublic void setCellValign(String align)
align
- the vertical alignmentpublic void setCellLang(String lang)
lang
- the languagepublic void setCellDir(String dir)
dir
- the text directionpublic void setCellAbbr(String abbr)
abbr
- the abbreviationpublic void setCellAxis(String axis)
axis
- the axispublic void setCellHeaders(String headers)
headers
- the headerspublic void setCellScope(String scope)
scope
- the scopepublic void setCellTagId(String tagId) throws JspException
tagId
- the tag id
JspException
public void setAttribute(String name, String value, String facet) throws JspException
Base support for setting attributes on a tag via the IAttributeConsumer
interface. The
AbstractHtmlTableCell does not support any attributes by default. Attributes set via this interface
are used to extend the HTML attributes exposed through the JSP tags themselves. This allows
tag users to add arbitrary attributes to the HTML tags rendered by the data grid.
setAttribute
in interface IAttributeConsumer
name
- The name of the attribute.value
- The value of the attribute.facet
- The name of a facet to which the attribute will be applied. This is optional.
JspException
public void setBehavior(String name, Object value, String facet) throws JspException
Base support for setting behavior values via the IBehaviorConsumer
interface. The
AbstractHtmlTableCell does not support any attributes by default. Attributes set via this
interface are used to configure internal functionality of the tags which is not exposed
via JSP tag attributes.
setBehavior
in interface IBehaviorConsumer
name
- the name of the behaviorvalue
- the value of the behaviorfacet
- the name of a facet of the tag to which the behavior will be applied. This is optional.
JspException
protected void renderCell(AbstractRenderAppender appender) throws IOException, JspException
Base HTML table cell rendering functionality which opens and closes the HTML <td> tags with
the correct style and attribute information. Between the table cell tags, the tag
calls the renderDataCellContents(org.apache.beehive.netui.tags.rendering.AbstractRenderAppender, String)
method so that subclasses implementing this method can provide content inside of the table cell.
The style information rendered here includes the following in order:
StyleModel.getDataCellFilteredClass()
if the cell has a filter expression and is filtered
StyleModel.getDataCellSortedClass()
if the cell has a sort expression and is sorted
setCellStyleClass(String)
attribute if set;
StyleModel.getDataCellClass()
otherwise
renderCell
in class AbstractCell
appender
- the AbstractRenderAppender
to which any output should be rendered
IOException
JspException
protected abstract void renderDataCellContents(AbstractRenderAppender appender, String output) throws IOException, JspException
Abstract method implemented by subclasses in order to render a cell's content.
appender
- the AbstractRenderAppender
to which any output should be renderedoutput
- the output produced from having evaluated this tag's JspFragment
IOException
JspException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |