|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
AbstractDataGridHtmlTag
AbstractCell
AbstractHtmlTableCell
SpanCell
public class SpanCell
Data grid cell that renders an HTML <span> tag containing the tag's value
attribute. The
span cell is rendered inside of an HTML table <td>. The span cell supports various nested tags including
those that provide formatting via the NetUI IFormattable
interface and those that augment the
available attribute set via the NetUI IAttributeConsumer
interface.
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 index
Constructor Summary | |
---|---|
SpanCell()
|
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
SpanCellModel
which is storing state for this tag. |
protected void |
renderDataCellContents(AbstractRenderAppender appender,
String jspFragmentOutput)
Render the cell's contents. |
void |
setAttribute(String name,
String value,
String facet)
Implementation of IAttributeConsumer interface. |
void |
setDir(String dir)
Sets the dir attribute for the HTML span. |
void |
setLang(String lang)
Sets the lang attribute for the HTML span. |
void |
setOnClick(String onClick)
Sets the onClick JavaScript event for the HTML span. |
void |
setOnDblClick(String onDblClick)
Sets the onDblClick JavaScript event for the HTML span. |
void |
setOnKeyDown(String onKeyDown)
Sets the onKeyDown JavaScript event for the HTML span. |
void |
setOnKeyPress(String onKeyPress)
Sets the onKeyPress JavaScript event for the HTML span. |
void |
setOnKeyUp(String onKeyUp)
Sets the onKeyUp JavaScript event for the HTML span. |
void |
setOnMouseDown(String onMouseDown)
Sets the onMouseDown JavaScript event for the HTML span. |
void |
setOnMouseMove(String onMouseMove)
Sets the onMouseMove JavaScript event for the HTML span. |
void |
setOnMouseOut(String onMouseOut)
Sets the onMouseOut JavaScript event for the HTML span. |
void |
setOnMouseOver(String onMouseOver)
Sets the onMouseOver JavaScript event for the HTML span. |
void |
setOnMouseUp(String onMouseUp)
Sets the onMouseUp JavaScript event for the HTML span. |
void |
setStyle(String style)
Sets the style for the HTML span. |
void |
setStyleClass(String styleClass)
Sets the style class for the HTML span. |
void |
setTagId(String tagId)
Set the name of the tagId for the HTML span. |
void |
setTitle(String title)
Sets the value of the title attribute for the HTML span. |
void |
setValue(Object value)
Set the value rendered inside of the HTML span. |
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 |
Methods inherited from interface IFormattable |
---|
addFormatter, formatterHasError |
Constructor Detail |
---|
public SpanCell()
Method Detail |
---|
public String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractSimpleTag
public void setOnClick(String onClick)
setOnClick
in interface IHtmlEvents
onClick
- the onClick event for the HTML span.public void setOnDblClick(String onDblClick)
setOnDblClick
in interface IHtmlEvents
onDblClick
- the onDblClick event for the HTML span.public void setOnKeyDown(String onKeyDown)
setOnKeyDown
in interface IHtmlEvents
onKeyDown
- the onKeyDown event for the HTML span.public void setOnKeyUp(String onKeyUp)
setOnKeyUp
in interface IHtmlEvents
onKeyUp
- the onKeyUp event.public void setOnKeyPress(String onKeyPress)
setOnKeyPress
in interface IHtmlEvents
onKeyPress
- the onKeyPress event.public void setOnMouseDown(String onMouseDown)
setOnMouseDown
in interface IHtmlEvents
onMouseDown
- the onMouseDown event.public void setOnMouseUp(String onMouseUp)
setOnMouseUp
in interface IHtmlEvents
onMouseUp
- the onMouseUp event.public void setOnMouseMove(String onMouseMove)
setOnMouseMove
in interface IHtmlEvents
onMouseMove
- the onMouseMove event.public void setOnMouseOut(String onMouseOut)
setOnMouseOut
in interface IHtmlEvents
onMouseOut
- the onMouseOut event.public void setOnMouseOver(String onMouseOver)
setOnMouseOver
in interface IHtmlEvents
onMouseOver
- the onMouseOver event.public void setStyle(String style)
setStyle
in interface IHtmlCore
style
- the html style.public void setStyleClass(String styleClass)
setStyleClass
in interface IHtmlCore
styleClass
- the html style class.public void setTitle(String title)
setTitle
in interface IHtmlCore
title
- public void setLang(String lang)
setLang
in interface IHtmlI18n
lang
- public void setDir(String dir)
setDir
in interface IHtmlI18n
dir
- public void setTagId(String tagId) throws JspException
Set the name of the tagId for the HTML span. This value will have the index of the current data item in the data set appended to the tagId so that the identifiers are unique in the rendered JSP.
For example, if a data set contains {"foo", "bar", "baz"} rendered using a spanCell with a tagId "theTagId", the resulting tagId values will be {"theTagId0", "theTagId1", "theTagId2"}.
setTagId
in interface IHtmlCore
tagId
- the the name of the tagId for the HTML span.
JspException
public void setValue(Object value)
Set the value rendered inside of the HTML span. This is the visible text that is displayed in the HTML rendered by this tag.
public void setAttribute(String name, String value, String facet) throws JspException
Implementation of IAttributeConsumer
interface. This
allows a page author to add additional attributes to the HTML rendered by this tag. The attribute
facets which can be consumed include:
span
-- attributes set using this facet will be rendered as HTML attributes on the
rendered HTML <span> tag.
This tag also accepts facets supported by AbstractHtmlTableCell.setAttribute(String, String, String)
setAttribute
in interface IAttributeConsumer
setAttribute
in class AbstractHtmlTableCell
name
- the name of the attributevalue
- the value of the attributefacet
- the facet for the attribute; this value must be match one of the facets supported by the JSP tags
JspException
- thrown when the given facet String is not recognized as a valid facet nameprotected void renderDataCellContents(AbstractRenderAppender appender, String jspFragmentOutput)
renderDataCellContents
in class AbstractHtmlTableCell
appender
- the AbstractRenderAppender
used to collect the rendered outputjspFragmentOutput
- the String result of having evaluated the span cell's JspFragment
protected CellModel internalGetCellModel()
AbstractCell.internalGetCellModel()
that exposes the
SpanCellModel
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 |