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

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

public class AnchorCell
extends AbstractHtmlTableCell
implements IFormattable, IUrlParams


Constructor Summary
AnchorCell()
           
 
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.
protected  void applyAttributes()
           
 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 setAttribute(String name, String value, String facet)
          Base support for the attribute tag.
 void setCharSet(String charSet)
          Sets charset attribute for the anchor.
 void setHref(String href)
          Sets the href of the Anchor.
 void setHrefLang(String hreflang)
          Sets hreflang attribute for the anchor.
 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 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 setValue(String value)
           
 
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, 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

AnchorCell

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

setValue

public void setValue(String value)

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

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

applyAttributes

protected void applyAttributes()
                        throws JspException
Overrides:
applyAttributes in class AbstractCell
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