org.apache.tapestry.jsp
Class AbstractLinkTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.tapestry.jsp.AbstractTapestryTag
          extended by org.apache.tapestry.jsp.AbstractLinkTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag
Direct Known Subclasses:
ExternalTag, PageTag

public abstract class AbstractLinkTag
extends AbstractTapestryTag

Abstract super-class of Tapestry JSP tags that produce a hyperlink (<a>) tag. Tags use a URLRetriever for the href attribute, and may include a class attribute (based on the styleClass property.

Since:
3.0
Version:
$Id: AbstractLinkTag.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, 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
AbstractLinkTag()
           
 
Method Summary
 int doEndTag()
          Writes a </a> tag.
 int doStartTag()
          Writes a <a> tag.
 String getStyleClass()
           
 void setStyleClass(String styleClass)
           
 
Methods inherited from class org.apache.tapestry.jsp.AbstractTapestryTag
constructExternalServiceParameters, convertParameters, getServlet, getURLRetriever, setServlet
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLinkTag

public AbstractLinkTag()
Method Detail

getStyleClass

public String getStyleClass()

setStyleClass

public void setStyleClass(String styleClass)

doEndTag

public int doEndTag()
             throws JspException
Writes a </a> tag.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
Tag.EVAL_PAGE
Throws:
JspException

doStartTag

public int doStartTag()
               throws JspException
Writes a <a> tag. The tag may have a class attribute if the styleClass property is not null. The href attribute is provided via a URLRetriever.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Returns:
Tag.EVAL_BODY_INCLUDE
Throws:
JspException