|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
AbstractDataGridHtmlTag
AbstractCell
AbstractHtmlTableCell
ImageCell
public class ImageCell
Data grid cell that renders an HTML <image> tag containing the tag's source
attribute. The
span cell is rendered inside of an HTML table <td>. The image cell supports various nested tags including
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 | |
---|---|
ImageCell()
|
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
ImageCellModel
which is storing state for this tag. |
protected void |
renderDataCellContents(AbstractRenderAppender appender,
String jspFragmentOutput)
Render the cell's contents. |
void |
setAlign(String align)
Sets the property to specify where to align the image. |
void |
setAlt(String alt)
Sets the property to specify the alt text of the image tag. |
void |
setAttribute(String name,
String value,
String facet)
Implementation of IAttributeConsumer interface. |
void |
setBorder(String border)
Set the border attribute for the image. |
void |
setDir(String dir)
Sets the dir attribute for the HTML image tag. |
void |
setHeight(String height)
Set the height of the image to display. |
void |
setHspace(String hspace)
Sets the the horizontal spacing around the image. |
void |
setLang(String lang)
Sets the lang attribute for the HTML element. |
void |
setLongdesc(String longdesc)
Sets the property to specify the longdesc of the image tag. |
void |
setOnClick(String onClick)
Sets the onClick JavaScript event on the image tag. |
void |
setOnDblClick(String onDblClick)
Sets the onDblClick JavaScript event on the image tag. |
void |
setOnKeyDown(String onKeyDown)
Sets the onKeyDown JavaScript event on the image tag. |
void |
setOnKeyPress(String onKeyPress)
Sets the onKeyPress JavaScript event on the image tag. |
void |
setOnKeyUp(String onKeyUp)
Sets the onKeyUp JavaScript event on the image tag. |
void |
setOnMouseDown(String onMouseDown)
Sets the onMouseDown JavaScript event on the image tag. |
void |
setOnMouseMove(String onMouseMove)
Sets the onMouseMove JavaScript event on the image tag. |
void |
setOnMouseOut(String onMouseOut)
Sets the onMouseOut JavaScript event on the image tag. |
void |
setOnMouseOver(String onMouseOver)
Sets the onMouseOver JavaScript event on the image tag. |
void |
setOnMouseUp(String onMouseUp)
Sets the onMouseUp JavaScript event on the image tag. |
void |
setSrc(String src)
Set the image source to render on the HTML image tag. |
void |
setStyle(String style)
Sets the style of the rendered html tag. |
void |
setStyleClass(String styleClass)
Sets the style class of the rendered html tag. |
void |
setTagId(String tagId)
Set the name of the tagId for the image tag. |
void |
setTitle(String title)
Sets the value of the title attribute. |
void |
setVspace(String vspace)
Set the vertical spacing around the image. |
void |
setWidth(String width)
Set the width of the image to display. |
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 |
---|
public ImageCell()
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.public void setOnDblClick(String onDblClick)
setOnDblClick
in interface IHtmlEvents
onDblClick
- the onDblClick event.public void setOnKeyDown(String onKeyDown)
setOnKeyDown
in interface IHtmlEvents
onKeyDown
- the onKeyDown event.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 setSrc(String src)
public void setAlign(String align)
align
- the image alignment.public void setHspace(String hspace)
hspace
- the horizontal spacing.public void setVspace(String vspace)
public void setBorder(String border)
public void setHeight(String height)
public void setWidth(String width)
public void setLongdesc(String longdesc)
longdesc
- the longdesc attributepublic void setAlt(String alt)
alt
- the image alignment.public void setTagId(String tagId) throws JspException
setTagId
in interface IHtmlCore
tagId
- the the name of the tagId for the image tag.
JspException
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:
image
-- attributes set using this facet will be rendered as HTML attributes on the
rendered HTML <image> 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 image cell's JspFragment
protected CellModel internalGetCellModel()
AbstractCell.internalGetCellModel()
that exposes the
ImageCellModel
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 |