org.dbforms.taglib
Class TagSupportWithScriptHandler

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dbforms.taglib.TagSupportWithScriptHandler
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
BaseTag, DbBaseHandlerTag, DbFilterConditionTag, DbFormTag, DbGetConnection, DbXmlErrorsTag, ErrorsTag, JavascriptArrayTag, MessageTag, SetCustomFormatterTag, StaticData, StyleTag, TemplateBasedirTag, TemplateParamTag

public abstract class TagSupportWithScriptHandler
extends javax.servlet.jsp.tagext.BodyTagSupport

Base class for TagSupport that render form data-elements capable of including JavaScript event handlers and/or CSS Style attributes.

the html/css releated properties and methods where originally done by Don Clasen for Apache Groups's Jakarta-Struts project.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
TagSupportWithScriptHandler()
           
 
Method Summary
 void doFinally()
          reset tag state
 String getAccessKey()
          Returns the accessKey character.
 DbFormsConfig getConfig()
          DOCUMENT ME!
 String getOnBlur()
          Returns the onBlur event handler.
 String getOnChange()
          Returns the onChange event handler.
 String getOnClick()
          Returns the onClick event handler.
 String getOnDblClick()
          Returns the onDblClick event handler.
 String getOnFocus()
          Returns the onFocus event handler.
 String getOnKeyDown()
          Returns the onKeyDown event handler.
 String getOnKeyPress()
          Returns the onKeyPress event handler.
 String getOnKeyUp()
          Returns the onKeyUp event handler.
 String getOnMouseDown()
          Returns the onMouseDown event handler.
 String getOnMouseMove()
          Returns the onMouseMove event handler.
 String getOnMouseOut()
          Returns the onMouseOut event handler.
 String getOnMouseOver()
          Returns the onMouseOver event handler.
 String getOnMouseUp()
          Returns the onMouseUp event handler.
 String getOnSelect()
          Returns the onSelect event handler.
 String getStyle()
          Returns the style attribute.
 String getStyleClass()
          Returns the style class attribute.
 String getTabIndex()
          Returns the tabIndex value.
 String getTitle()
          Returns the title attribute.
protected  String prepareEventHandlers()
          Prepares the event handlers for inclusion in the component's HTML tag.
protected  String prepareStyles()
          Prepares the style attributes for inclusion in the component's HTML tag.
 void setAccessKey(String accessKey)
          Sets the accessKey character.
 void setOnBlur(String onBlur)
          Sets the onBlur event handler.
 void setOnChange(String onChange)
          Sets the onChange event handler.
 void setOnClick(String onClick)
          Sets the onClick event handler.
 void setOnDblClick(String onDblClick)
          Sets the onDblClick event handler.
 void setOnFocus(String onFocus)
          Sets the onFocus event handler.
 void setOnKeyDown(String onKeyDown)
          Sets the onKeyDown event handler.
 void setOnKeyPress(String onKeyPress)
          Sets the onKeyPress event handler.
 void setOnKeyUp(String onKeyUp)
          Sets the onKeyUp event handler.
 void setOnMouseDown(String onMouseDown)
          Sets the onMouseDown event handler.
 void setOnMouseMove(String onMouseMove)
          Sets the onMouseMove event handler.
 void setOnMouseOut(String onMouseOut)
          Sets the onMouseOut event handler.
 void setOnMouseOver(String onMouseOver)
          Sets the onMouseOver event handler.
 void setOnMouseUp(String onMouseUp)
          Sets the onMouseUp event handler.
 void setOnSelect(String onSelect)
          Sets the onSelect event handler.
 void setStyle(String style)
          Sets the style attribute.
 void setStyleClass(String styleClass)
          Sets the style class attribute.
 void setTabIndex(String tabIndex)
          Sets the tabIndex value.
 void setTitle(String title)
          Sets the title attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

TagSupportWithScriptHandler

public TagSupportWithScriptHandler()
Method Detail

setAccessKey

public void setAccessKey(String accessKey)
Sets the accessKey character.

Parameters:
accessKey - DOCUMENT ME!

getAccessKey

public String getAccessKey()
Returns the accessKey character.

Returns:
DOCUMENT ME!

getConfig

public DbFormsConfig getConfig()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setOnBlur

public void setOnBlur(String onBlur)
Sets the onBlur event handler.

Parameters:
onBlur - DOCUMENT ME!

getOnBlur

public String getOnBlur()
Returns the onBlur event handler.

Returns:
DOCUMENT ME!

setOnChange

public void setOnChange(String onChange)
Sets the onChange event handler.

Parameters:
onChange - DOCUMENT ME!

getOnChange

public String getOnChange()
Returns the onChange event handler.

Returns:
DOCUMENT ME!

setOnClick

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

Parameters:
onClick - DOCUMENT ME!

getOnClick

public String getOnClick()
Returns the onClick event handler.

Returns:
DOCUMENT ME!

setOnDblClick

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

Parameters:
onDblClick - DOCUMENT ME!

getOnDblClick

public String getOnDblClick()
Returns the onDblClick event handler.

Returns:
DOCUMENT ME!

setOnFocus

public void setOnFocus(String onFocus)
Sets the onFocus event handler.

Parameters:
onFocus - DOCUMENT ME!

getOnFocus

public String getOnFocus()
Returns the onFocus event handler.

Returns:
DOCUMENT ME!

setOnKeyDown

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

Parameters:
onKeyDown - DOCUMENT ME!

getOnKeyDown

public String getOnKeyDown()
Returns the onKeyDown event handler.

Returns:
DOCUMENT ME!

setOnKeyPress

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

Parameters:
onKeyPress - DOCUMENT ME!

getOnKeyPress

public String getOnKeyPress()
Returns the onKeyPress event handler.

Returns:
DOCUMENT ME!

setOnKeyUp

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

Parameters:
onKeyUp - DOCUMENT ME!

getOnKeyUp

public String getOnKeyUp()
Returns the onKeyUp event handler.

Returns:
DOCUMENT ME!

setOnMouseDown

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

Parameters:
onMouseDown - DOCUMENT ME!

getOnMouseDown

public String getOnMouseDown()
Returns the onMouseDown event handler.

Returns:
DOCUMENT ME!

setOnMouseMove

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

Parameters:
onMouseMove - DOCUMENT ME!

getOnMouseMove

public String getOnMouseMove()
Returns the onMouseMove event handler.

Returns:
DOCUMENT ME!

setOnMouseOut

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

Parameters:
onMouseOut - DOCUMENT ME!

getOnMouseOut

public String getOnMouseOut()
Returns the onMouseOut event handler.

Returns:
DOCUMENT ME!

setOnMouseOver

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

Parameters:
onMouseOver - DOCUMENT ME!

getOnMouseOver

public String getOnMouseOver()
Returns the onMouseOver event handler.

Returns:
DOCUMENT ME!

setOnMouseUp

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

Parameters:
onMouseUp - DOCUMENT ME!

getOnMouseUp

public String getOnMouseUp()
Returns the onMouseUp event handler.

Returns:
DOCUMENT ME!

setOnSelect

public void setOnSelect(String onSelect)
Sets the onSelect event handler.

Parameters:
onSelect - DOCUMENT ME!

getOnSelect

public String getOnSelect()
Returns the onSelect event handler.

Returns:
DOCUMENT ME!

setStyle

public void setStyle(String style)
Sets the style attribute.

Parameters:
style - DOCUMENT ME!

getStyle

public String getStyle()
Returns the style attribute.

Returns:
DOCUMENT ME!

setStyleClass

public void setStyleClass(String styleClass)
Sets the style class attribute.

Parameters:
styleClass - DOCUMENT ME!

getStyleClass

public String getStyleClass()
Returns the style class attribute.

Returns:
DOCUMENT ME!

setTabIndex

public void setTabIndex(String tabIndex)
Sets the tabIndex value.

Parameters:
tabIndex - DOCUMENT ME!

getTabIndex

public String getTabIndex()
Returns the tabIndex value.

Returns:
DOCUMENT ME!

setTitle

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

Parameters:
title - DOCUMENT ME!

getTitle

public String getTitle()
Returns the title attribute.

Returns:
DOCUMENT ME!

doFinally

public void doFinally()
reset tag state

See Also:
TryCatchFinally.doFinally()

prepareEventHandlers

protected String prepareEventHandlers()
Prepares the event handlers for inclusion in the component's HTML tag.

Returns:
The prepared String for inclusion in the HTML tag.

prepareStyles

protected String prepareStyles()
Prepares the style attributes for inclusion in the component's HTML tag.

Returns:
The prepared String for inclusion in the HTML tag.


Copyright © 2002-2005 DbForms. All Rights Reserved.