Order the Book

coreservlets.tags
Class HeadingTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--coreservlets.tags.HeadingTag

public class HeadingTag
extends TagSupport

Generates an HTML heading with the specified background color, foreground color, alignment, font, and font size. You can also turn on a border around it, which normally just barely encloses the heading, but which can also stretch wider. All attributes except the background color are optional.

Taken from Core Servlets and JavaServer Pages from Prentice Hall and Sun Microsystems Press, http://www.coreservlets.com/. © 2000 Marty Hall; may be freely used or adapted.

See Also:
Serialized Form

Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Constructor Summary
HeadingTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void setAlign(String align)
           
 void setBgColor(String bgColor)
           
 void setBorder(String border)
           
 void setColor(String color)
           
 void setFontList(String fontList)
           
 void setFontSize(String fontSize)
           
 void setWidth(String width)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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

HeadingTag

public HeadingTag()
Method Detail

setBgColor

public void setBgColor(String bgColor)

setColor

public void setColor(String color)

setAlign

public void setAlign(String align)

setFontSize

public void setFontSize(String fontSize)

setFontList

public void setFontList(String fontList)

setBorder

public void setBorder(String border)

setWidth

public void setWidth(String width)

doStartTag

public int doStartTag()
Overrides:
doStartTag in class TagSupport

doEndTag

public int doEndTag()
Overrides:
doEndTag in class TagSupport

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive