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

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by AbstractCell
              extended by AbstractHtmlTableCell
                  extended by ImageAnchorCell
All Implemented Interfaces:
JspTag, SimpleTag, IFormattable, IUrlParams, IAttributeConsumer, IBehaviorConsumer, INetuiTag

public class ImageAnchorCell
extends AbstractHtmlTableCell
implements IFormattable, IUrlParams


Constructor Summary
ImageAnchorCell()
           
 
Method Summary
 void addParameter(String name, Object value, String facet)
          This method will allow a tag that produces one or more Urls to have parameters set on the tag.
 String getTagName()
          Return the name of the tag.
protected  CellModel internalGetCellModel()
           
protected  void renderDataCellContents(AbstractRenderAppender appender, String jspFragmentOutput)
           
 void setAction(String action)
          Set the name of the action for the Area.
 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.
 void setAttribute(String name, String value, String facet)
          Base support for the attribute tag.
 void setBorder(String border)
          Sets the border size around the image.
 void setCharSet(String charSet)
          Sets charset attribute for the anchor.
 void setHeight(String height)
          Sets the image height.
 void setHref(String href)
          Sets the href of the Anchor.
 void setHrefLang(String hreflang)
          Sets hreflang attribute for the anchor.
 void setHspace(String hspace)
          Sets the the horizontal spacing around the image.
 void setImageStyle(String imageStyle)
          Set the <img> style for the contained image.
 void setImageStyleClass(String imageClass)
          Set the label style class for each contained Image.
 void setIsmap(String ismap)
          Sets the server-side image map declaration.
 void setLongdesc(String longdesc)
          Sets the property to specify the longdesc.
 void setOnClick(String onClick)
          Sets the onClick javascript event.
 void setOnDblClick(String onDblClick)
          Sets the onDblClick javascript event.
 void setOnKeyDown(String onKeyDown)
          Sets the onKeyDown javascript event.
 void setOnKeyPress(String onKeyPress)
          Sets the onKeyPress javascript event.
 void setOnKeyUp(String onKeyUp)
          Sets the onKeyUp javascript event.
 void setOnMouseDown(String onMouseDown)
          Sets the onMouseDown javascript event.
 void setOnMouseMove(String onMouseMove)
          Sets the onMouseMove javascript event.
 void setOnMouseOut(String onMouseOut)
          Sets the onMouseOut javascript event.
 void setOnMouseOver(String onMouseOver)
          Sets the onMouseOver javascript event.
 void setOnMouseUp(String onMouseUp)
          Sets the onMouseUp javascript event.
 void setRel(String rel)
          Sets rel attribute for the anchor.
 void setRev(String rev)
          Sets rev attribute for the anchor.
 void setSrc(String src)
          Sets the image source URI.
 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 setTarget(String target)
          Sets the window target.
 void setTargetScope(String targetScope)
          Set the target "scope" for the anchor's action.
 void setTitle(String title)
          Sets the value of the title attribute.
 void setType(String type)
          Sets type attribute for the anchor.
 void setUsemap(String usemap)
          Sets the client-side image map declaration.
 void setVspace(String vspace)
          Sets the vertical spacing around the image.
 void setWidth(String width)
          Sets the image width.
 
Methods inherited from class AbstractHtmlTableCell
renderCell, setBehavior, setCellAbbr, setCellAlign, setCellAxis, setCellChar, setCellCharoff, setCellColspan, setCellDir, setCellHeaders, setCellLang, setCellOnClick, setCellOnDblClick, setCellOnKeyDown, setCellOnKeyPress, setCellOnKeyUp, setCellOnMouseDown, setCellOnMouseMove, setCellOnMouseOut, setCellOnMouseOver, setCellOnMouseUp, setCellRowspan, setCellScope, setCellStyle, setCellStyleClass, setCellTitle, setCellValign, setFilterExpression, setSortExpression
 
Methods inherited from class AbstractCell
addFormatter, addStateAttribute, applyAttributes, 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

ImageAnchorCell

public ImageAnchorCell()
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.

setOnClick

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

Parameters:
onClick - - the onClick event.

setOnDblClick

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

Parameters:
onDblClick - - the onDblClick event.

setOnKeyDown

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

Parameters:
onKeyDown - - the onKeyDown event.

setOnKeyUp

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

Parameters:
onKeyUp - - the onKeyUp event.

setOnKeyPress

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

Parameters:
onKeyPress - - the onKeyPress event.

setOnMouseDown

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

Parameters:
onMouseDown - - the onMouseDown event.

setOnMouseUp

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

Parameters:
onMouseUp - - the onMouseUp event.

setOnMouseMove

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

Parameters:
onMouseMove - - the onMouseMove event.

setOnMouseOut

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

Parameters:
onMouseOut - - the onMouseOut event.

setOnMouseOver

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

Parameters:
onMouseOver - - the onMouseOver event.

setStyle

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

Parameters:
style - - the html style.

setStyleClass

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

Parameters:
styleClass - - the html style class.

setTitle

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

Parameters:
title -

setCharSet

public void setCharSet(String charSet)
Sets charset attribute for the anchor.

Parameters:
charSet - - the window target.

setType

public void setType(String type)
Sets type attribute for the anchor.

Parameters:
type - - the window target.

setHrefLang

public void setHrefLang(String hreflang)
Sets hreflang attribute for the anchor.

Parameters:
hreflang - - the window target.

setRel

public void setRel(String rel)
Sets rel attribute for the anchor.

Parameters:
rel - - the window target.

setRev

public void setRev(String rev)
Sets rev attribute for the anchor.

Parameters:
rev - - the window target.

setTarget

public void setTarget(String target)
Sets the window target.

Parameters:
target - - the window target.

setHref

public void setHref(String href)
Sets the href of the Anchor. This attribute will accept the empty String as a legal value.

Parameters:
href - - the hyperlink URI for the Area.

setTargetScope

public void setTargetScope(String targetScope)
Set the target "scope" for the anchor's action. Multiple active page flows may exist concurrently within named scopes. This attribute selects which named scope to use. If omitted, the default scope is assumed.

Parameters:
targetScope - - the name of the target scope in which the associated action's page flow resides.

setAction

public void setAction(String action)
               throws JspException
Set the name of the action for the Area.

Parameters:
action - - the name of the action to set for the Area.
Throws:
JspException

setAlign

public void setAlign(String align)
Sets the property to specify where to align the image.

Parameters:
align - - the image alignment.

setAlt

public void setAlt(String alt)
Sets the property to specify the alt text of the image.

Parameters:
alt - - the image alignment.

setLongdesc

public void setLongdesc(String longdesc)
Sets the property to specify the longdesc.

Parameters:
longdesc - - the longdesc.

setBorder

public void setBorder(String border)
Sets the border size around the image.

Parameters:
border - - the border size.

setHeight

public void setHeight(String height)
Sets the image height.

Parameters:
height - - the height.

setHspace

public void setHspace(String hspace)
Sets the the horizontal spacing around the image.

Parameters:
hspace - - the horizontal spacing.

setIsmap

public void setIsmap(String ismap)
Sets the server-side image map declaration.

Parameters:
ismap - - the image map declaration.

setSrc

public void setSrc(String src)
            throws JspException
Sets the image source URI.

Parameters:
src - - the image source URI.
Throws:
JspException

setUsemap

public void setUsemap(String usemap)
Sets the client-side image map declaration.

Parameters:
usemap - - the map declaration.

setVspace

public void setVspace(String vspace)
Sets the vertical spacing around the image.

Parameters:
vspace - - the vertical spacing.

setImageStyle

public void setImageStyle(String imageStyle)
Set the <img> style for the contained image. When the tag library is running in legacy mode, this will override the style attribute if that is set. If this is not set, and style is set, then it will be applied to the image.

Parameters:
imageStyle - - the label style

setImageStyleClass

public void setImageStyleClass(String imageClass)
Set the label style class for each contained Image. When the tag library is running in legacy mode, this will override the styleClass attribute if that is set. If this is not set, and styleClass is set, then it will be applied to the image.

Parameters:
imageClass - - the image class

setWidth

public void setWidth(String width)
Sets the image width.

Parameters:
width - - the image width.

setAttribute

public void setAttribute(String name,
                         String value,
                         String facet)
                  throws JspException
Description copied from class: AbstractHtmlTableCell
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
Overrides:
setAttribute in class AbstractHtmlTableCell
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.

addParameter

public void addParameter(String name,
                         Object value,
                         String facet)
                  throws JspException
Description copied from interface: IUrlParams
This method will allow a tag that produces one or more Urls to have parameters set on the tag. The name and value should be required. The facet is optional, and allows tags producing more than one URL to have parameters set on different URLs.

Specified by:
addParameter in interface IUrlParams
Parameters:
name - The name of the parameter to be added to the URL.
value - The value of the parameter.
facet - The name of a facet for which the parameter should be added.
Throws:
JspException

renderDataCellContents

protected void renderDataCellContents(AbstractRenderAppender appender,
                                      String jspFragmentOutput)
Specified by:
renderDataCellContents in class AbstractHtmlTableCell

internalGetCellModel

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