org.talika.tarsis.taglib.form
Class BaseTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.talika.tarsis.taglib.form.BaseTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
BaseControlTag, CommandTag, FormTag

public abstract class BaseTag
extends javax.servlet.jsp.tagext.TagSupport

Base implementation for all html tags.

Version:
$Revision: 130 $
Author:
Jose M. Palomar
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
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
protected BaseTag()
          Creates a new BaseTag object.
 
Method Summary
protected  java.lang.String baseAttributes()
          Renders a string with values of base attributes.
 int doEndTag()
          Process the end tag for this instance.
 int doStartTag()
          Process the start tag for this instance.
protected  java.lang.String intrinsicEvents()
          Renders a string with values of intrinsic events attributes.
 void release()
          Called on a Tag handler to release state.
 void setId(java.lang.String id)
          Sets id attribute value.
 void setOnclick(java.lang.String onclick)
          Sets onclick attribute value.
 void setOndblclick(java.lang.String ondblclick)
          Sets ondblclick attribute value.
 void setOnkeydown(java.lang.String onkeydown)
          Sets onkeydown attribute value.
 void setOnkeypress(java.lang.String onkeypress)
          Sets onkeypress attribute value.
 void setOnkeyup(java.lang.String onkeyup)
          Sets onkeyup attribute value.
 void setOnmousedown(java.lang.String onmousedown)
          Sets onmousedown attribute value.
 void setOnmousemove(java.lang.String onmousemove)
          Sets onmousemove attribute value.
 void setOnmouseout(java.lang.String onmouseout)
          Sets onmouseout attribute value.
 void setOnmouseover(java.lang.String onmouseover)
          Sets onmouseover attribute value.
 void setOnmouseup(java.lang.String onmouseup)
          Sets onmouseup attribute value.
 void setStyle(java.lang.String style)
          Sets style attribute value.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTag

protected BaseTag()
Creates a new BaseTag object.

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag for this instance.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
int EVAL_BODY_INCLUDE.
Throws:
javax.servlet.jsp.JspException - if somethign goes wrong during processing.
See Also:
Tag.doStartTag()

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag for this instance.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
int EVAL_PAGE.
Throws:
javax.servlet.jsp.JspException - if somethign goes wrong during processing.
See Also:
Tag.doEndTag()

baseAttributes

protected final java.lang.String baseAttributes()
Renders a string with values of base attributes.
Base attributes are id and style.

Returns:
String a string with values of base attributes.

intrinsicEvents

protected final java.lang.String intrinsicEvents()
Renders a string with values of intrinsic events attributes.
Intrinsic events attributes are all onmouse* and onkey* attributes.

Returns:
String a string with values of intrinsic events attributes.

setId

public final void setId(java.lang.String id)
Sets id attribute value.

Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
Parameters:
id - String id attribute value.

setStyle

public final void setStyle(java.lang.String style)
Sets style attribute value.

Parameters:
style - String style attribute value.

setOnclick

public final void setOnclick(java.lang.String onclick)
Sets onclick attribute value.

Parameters:
onclick - String onclick attribute value.

setOndblclick

public final void setOndblclick(java.lang.String ondblclick)
Sets ondblclick attribute value.

Parameters:
ondblclick - String ondblclick attribute value.

setOnkeydown

public final void setOnkeydown(java.lang.String onkeydown)
Sets onkeydown attribute value.

Parameters:
onkeydown - String onkeydown attribute value.

setOnkeypress

public final void setOnkeypress(java.lang.String onkeypress)
Sets onkeypress attribute value.

Parameters:
onkeypress - String onkeypress attribute value.

setOnkeyup

public final void setOnkeyup(java.lang.String onkeyup)
Sets onkeyup attribute value.

Parameters:
onkeyup - String onkeyup attribute value.

setOnmousedown

public final void setOnmousedown(java.lang.String onmousedown)
Sets onmousedown attribute value.

Parameters:
onmousedown - String onmousedown attribute value.

setOnmousemove

public final void setOnmousemove(java.lang.String onmousemove)
Sets onmousemove attribute value.

Parameters:
onmousemove - String onmousemove attribute value.

setOnmouseout

public final void setOnmouseout(java.lang.String onmouseout)
Sets onmouseout attribute value.

Parameters:
onmouseout - String onmouseout attribute value.

setOnmouseover

public final void setOnmouseover(java.lang.String onmouseover)
Sets onmouseover attribute value.

Parameters:
onmouseover - String onmouseover attribute value.

setOnmouseup

public final void setOnmouseup(java.lang.String onmouseup)
Sets onmouseup attribute value.

Parameters:
onmouseup - String onmouseup attribute value.

release

public void release()
Called on a Tag handler to release state.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport
See Also:
Tag.release()


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.