Expresso 5-6

com.jcorporate.expresso.ext.taglib
Class StyleSheetTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.jcorporate.expresso.ext.taglib.StyleSheetTag
All Implemented Interfaces:
IterationTag, Serializable, Tag

public class StyleSheetTag
extends TagSupport

This tag provides automatic Cascading Stylesheet output. What it does is it checks the setup table for any tag extensions. If it finds it, then it tries to output the appropriate stylesheet. If the extension can't be found then it will attempt to output the default component.css name without any extension.

Attributes:
component - The name of the component that this stylesheet is used. If it is ommitted then we look for default-*.css

Author:
Michael Rimov
See Also:
Serialized Form

Field Summary
protected  String component
          The component to use for the stylesheet.
protected  String componentToUse
           
 
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
StyleSheetTag()
           
 
Method Summary
 int doEndTag()
          This part of the tag writes out the appropriate CSS directive to the page
 int doStartTag()
          Do nothing until end tag.
 String getComponent()
          Setter method for Name.
 void setComponent(String newValue)
          Insert the method's description here.
 
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
 

Field Detail

component

protected String component
The component to use for the stylesheet.


componentToUse

protected String componentToUse
Constructor Detail

StyleSheetTag

public StyleSheetTag()
Method Detail

doStartTag

public int doStartTag()
               throws JspTagException
Do nothing until end tag.

Returns:
int
Throws:
JspTagException - The exception description.

doEndTag

public int doEndTag()
             throws JspTagException
This part of the tag writes out the appropriate CSS directive to the page

Returns:
int as specified by the tag spec
Throws:
JspTagException - upon error

getComponent

public String getComponent()
Setter method for Name.

Returns:
java.lang.String

setComponent

public void setComponent(String newValue)
Insert the method's description here. Creation date: (12/29/2000 %r)

Parameters:
newValue - java.lang.String

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.