org.chwf.taglib.jhtml
Class LinkTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.chwf.taglib.base.LifeCycleBodyTagSupport
                    |
                    +--org.chwf.taglib.jhtml.LinkTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, Parameterized, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class LinkTag
extends LifeCycleBodyTagSupport

Tag handler for the <link> tag.

Author:
Paul Strack
See Also:
Serialized Form

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_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
LinkTag()
           
 
Method Summary
 void cleanup()
          Clean up data for tag handler reuse and pooling.
 int doEnd()
          Wraps the (trimmed) tag body with the defined element.
 java.lang.String getHref()
          The link href.
 void setAccesskey(java.lang.String value)
          Pass-through attribute.
 void setHref(java.lang.String href)
          The link href.
 void setId(java.lang.String value)
          Pass-through attribute.
 void setLang(java.lang.String value)
          Pass-through attribute.
 void setName(java.lang.String value)
          Pass-through attribute.
 void setStyle(java.lang.String value)
          Pass-through attribute.
 void setStyleClass(java.lang.String value)
          Pass-through attribute.
 void setTarget(java.lang.String value)
          Pass-through attribute.
 void setTitle(java.lang.String value)
          Pass-through attribute.
 
Methods inherited from class org.chwf.taglib.base.LifeCycleBodyTagSupport
addAttribute, addParameter, doEndTag, doStart, doStartTag, getAttribute, getAttributeNames, getParameter, getParameterNames, init, printAttributes
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

LinkTag

public LinkTag()
Method Detail

cleanup

public void cleanup()
Clean up data for tag handler reuse and pooling. Should be overridden in tag handler. Subclasses should always invoke their superclass's cleanup method: super.cleanup()
Overrides:
cleanup in class LifeCycleBodyTagSupport

setHref

public void setHref(java.lang.String href)
The link href.
Parameters:
href - The link href.

getHref

public java.lang.String getHref()
The link href.
Returns:
The link href.

setStyleClass

public void setStyleClass(java.lang.String value)
Pass-through attribute. Same meaning as "class" in HTML.
Parameters:
value - The attribute value.

setId

public void setId(java.lang.String value)
Pass-through attribute. Same meaning as in HTML.
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
Parameters:
value - The attribute value.

setLang

public void setLang(java.lang.String value)
Pass-through attribute. Same meaning as in HTML.
Parameters:
value - The attribute value.

setStyle

public void setStyle(java.lang.String value)
Pass-through attribute. Same meaning as in HTML.
Parameters:
value - The attribute value.

setTitle

public void setTitle(java.lang.String value)
Pass-through attribute. Same meaning as in HTML.
Parameters:
value - The attribute value.

setAccesskey

public void setAccesskey(java.lang.String value)
Pass-through attribute. Same meaning as in HTML.
Parameters:
value - The attribute value.

setName

public void setName(java.lang.String value)
Pass-through attribute. Same meaning as in HTML.
Parameters:
value - The attribute value.

setTarget

public void setTarget(java.lang.String value)
Pass-through attribute. Same meaning as in HTML.
Parameters:
value - The attribute value.

doEnd

public int doEnd()
          throws java.io.IOException
Wraps the (trimmed) tag body with the defined element.
Overrides:
doEnd in class LifeCycleBodyTagSupport
Returns:
EVAL_PAGE
Throws:
java.io.IOException - For write errors.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.