au.com.whitesquare.waf.taglib.html
Class BaseHandlerTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byau.com.whitesquare.waf.taglib.html.BaseHandlerTag
All Implemented Interfaces:
BodyTag, IterationTag, JspTag, Serializable, Tag
Direct Known Subclasses:
BaseInputTag

public abstract class BaseHandlerTag
extends BodyTagSupport


Last Modified $Date: 2005/01/12 12:10:30 $

Version:
$Revision: 1.2 $
Author:
Steve Mactaggart
See Also:
Serialized Form

Field Summary
protected  String accesskey
          Access key character.
protected  String tabindex
          Tab index value.
 
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
BaseHandlerTag()
           
 
Method Summary
 String filter(String value)
           
 String getAccesskey()
          Returns the accessKey character.
 String getAlt()
          Returns the alternate text attribute.
 boolean getDisabled()
          Returns the disabled event handler.
protected  String getElementClose()
           
 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.
 boolean getReadonly()
          Returns the readonly event handler.
 String getStyle()
          Returns the style attribute.
 String getStyleClass()
          Returns the style class attribute.
 String getStyleId()
          Returns the style id attribute.
 String getTabindex()
          Returns the tabIndex value.
 String getTitle()
          Returns the advisory title attribute.
 String getTitleKey()
          Returns the message resources key of the advisory title.
protected  String prepareEventHandlers()
          Prepares the event handlers for inclusion in the component's HTML tag.
protected  void prepareFocusEvents(StringBuffer handlers)
          Prepares the focus event handlers, appending them to the the given StringBuffer.
protected  void prepareKeyEvents(StringBuffer handlers)
          Prepares the keyboard event handlers, appending them to the the given StringBuffer.
protected  void prepareMouseEvents(StringBuffer handlers)
          Prepares the mouse event handlers, appending them to the the given StringBuffer.
protected  String prepareStyles()
          Prepares the style attributes for inclusion in the component's HTML tag.
protected  void prepareTextEvents(StringBuffer handlers)
          Prepares the text event handlers, appending them to the the given StringBuffer.
 void release()
          Release any acquired resources.
 void setAccesskey(String accessKey)
          Sets the accessKey character.
 void setAlt(String alt)
          Sets the alternate text attribute.
 void setDisabled(boolean disabled)
          Sets the disabled event handler.
 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 setReadonly(boolean readonly)
          Sets the readonly event handler.
 void setStyle(String style)
          Sets the style attribute.
 void setStyleClass(String styleClass)
          Sets the style class attribute.
 void setStyleId(String styleId)
          Sets the style id attribute.
 void setTabindex(String tabIndex)
          Sets the tabIndex value.
 void setTitle(String title)
          Sets the advisory title attribute.
 void setTitleKey(String titleKey)
          Sets the message resources key of the advisory title.
 void write(String text)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, 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
 

Field Detail

accesskey

protected String accesskey
Access key character.


tabindex

protected String tabindex
Tab index value.

Constructor Detail

BaseHandlerTag

public BaseHandlerTag()
Method Detail

setAccesskey

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


getAccesskey

public String getAccesskey()
Returns the accessKey character.


setTabindex

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


getTabindex

public String getTabindex()
Returns the tabIndex value.


setOnclick

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


getOnclick

public String getOnclick()
Returns the onClick event handler.


setOndblclick

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


getOndblclick

public String getOndblclick()
Returns the onDblClick event handler.


setOnmousedown

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


getOnmousedown

public String getOnmousedown()
Returns the onMouseDown event handler.


setOnmouseup

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


getOnmouseup

public String getOnmouseup()
Returns the onMouseUp event handler.


setOnmousemove

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


getOnmousemove

public String getOnmousemove()
Returns the onMouseMove event handler.


setOnmouseover

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


getOnmouseover

public String getOnmouseover()
Returns the onMouseOver event handler.


setOnmouseout

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


getOnmouseout

public String getOnmouseout()
Returns the onMouseOut event handler.


setOnkeydown

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


getOnkeydown

public String getOnkeydown()
Returns the onKeyDown event handler.


setOnkeyup

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


getOnkeyup

public String getOnkeyup()
Returns the onKeyUp event handler.


setOnkeypress

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


getOnkeypress

public String getOnkeypress()
Returns the onKeyPress event handler.


setOnchange

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


getOnchange

public String getOnchange()
Returns the onChange event handler.


setOnselect

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


getOnselect

public String getOnselect()
Returns the onSelect event handler.


setOnblur

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


getOnblur

public String getOnblur()
Returns the onBlur event handler.


setOnfocus

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


getOnfocus

public String getOnfocus()
Returns the onFocus event handler.


setDisabled

public void setDisabled(boolean disabled)
Sets the disabled event handler.


getDisabled

public boolean getDisabled()
Returns the disabled event handler.


setReadonly

public void setReadonly(boolean readonly)
Sets the readonly event handler.


getReadonly

public boolean getReadonly()
Returns the readonly event handler.


setStyle

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


getStyle

public String getStyle()
Returns the style attribute.


setStyleClass

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


getStyleClass

public String getStyleClass()
Returns the style class attribute.


setStyleId

public void setStyleId(String styleId)
Sets the style id attribute.


getStyleId

public String getStyleId()
Returns the style id attribute.


getAlt

public String getAlt()
Returns the alternate text attribute.


setAlt

public void setAlt(String alt)
Sets the alternate text attribute.


getTitle

public String getTitle()
Returns the advisory title attribute.


setTitle

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


getTitleKey

public String getTitleKey()
Returns the message resources key of the advisory title.


setTitleKey

public void setTitleKey(String titleKey)
Sets the message resources key of the advisory title.


release

public void release()
Release any acquired resources.


prepareStyles

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

Returns:
The prepared String for inclusion in the HTML tag.
Throws:
JspException - if invalid attributes are specified

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.

prepareMouseEvents

protected void prepareMouseEvents(StringBuffer handlers)
Prepares the mouse event handlers, appending them to the the given StringBuffer.

Parameters:
handlers - The StringBuffer that output will be appended to.

prepareKeyEvents

protected void prepareKeyEvents(StringBuffer handlers)
Prepares the keyboard event handlers, appending them to the the given StringBuffer.

Parameters:
handlers - The StringBuffer that output will be appended to.

prepareTextEvents

protected void prepareTextEvents(StringBuffer handlers)
Prepares the text event handlers, appending them to the the given StringBuffer.

Parameters:
handlers - The StringBuffer that output will be appended to.

prepareFocusEvents

protected void prepareFocusEvents(StringBuffer handlers)
Prepares the focus event handlers, appending them to the the given StringBuffer.

Parameters:
handlers - The StringBuffer that output will be appended to.

getElementClose

protected String getElementClose()

write

public void write(String text)
           throws JspException
Throws:
JspException

filter

public String filter(String value)


Copyright © 2004 Whitesquare Software. All Rights Reserved.