org.salespointframework.web.taglib
Class AbstractTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.springframework.web.servlet.tags.RequestContextAwareTag
          extended by org.salespointframework.web.taglib.AbstractTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
DoubleViewTag, ImageTag, LoginDialogTag, MessagesTag, ViewTag

public abstract class AbstractTag
extends org.springframework.web.servlet.tags.RequestContextAwareTag

Basic-class to create TagLibs.

Author:
Lars Kreisz, Uwe Schmidt
See Also:
Serialized Form

Field Summary
protected  java.lang.String id
          ID for the tag.
protected  java.util.logging.Logger log
           
protected  java.lang.String styleName
          Style-name for the tag.
 
Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
 
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
AbstractTag()
           
 
Method Summary
 int doEndTag()
          Process the end of this tag.
 int doStartTagInternal()
          Process the start of this tag.
protected abstract  java.lang.StringBuffer getContent()
           
 java.lang.StringBuffer render()
          bypasses normal tag method for use in java code environment
protected abstract  void reset()
          resets all attributes
 void setId(java.lang.String id)
          Sets HTML-ID.
 void setStyleName(java.lang.String styleName)
          Sets HTML-style-name.
 
Methods inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
doCatch, doFinally, doStartTag, getRequestContext
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final java.util.logging.Logger log

id

protected java.lang.String id
ID for the tag.


styleName

protected java.lang.String styleName
Style-name for the tag.

Constructor Detail

AbstractTag

public AbstractTag()
Method Detail

doStartTagInternal

public int doStartTagInternal()
Process the start of this tag.

Specified by:
doStartTagInternal in class org.springframework.web.servlet.tags.RequestContextAwareTag

doEndTag

public int doEndTag()
Process the end of this tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport

getContent

protected abstract java.lang.StringBuffer getContent()
Returns:
The assembled code of the special tag.

setId

public void setId(java.lang.String id)
Sets HTML-ID.

Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
Parameters:
htmlId - The ID for the tag.

setStyleName

public void setStyleName(java.lang.String styleName)
Sets HTML-style-name.

Parameters:
htmlStyleName - The style-name for the tag.

render

public java.lang.StringBuffer render()
bypasses normal tag method for use in java code environment

Returns:
the rendered html tag

reset

protected abstract void reset()
resets all attributes