2.17.2: 2011-06-17

net.sf.basedb.clients.web.taglib
Class Head

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.sf.basedb.clients.web.taglib.Head
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class Head
extends TagSupport

This tag defines the header section of a page. It must be located inside a <base:page> ag.

Syntax:

   <base:head
      styles=...
      scripts=...
   >

Attribute Default value Required Description
styles - no A comma-separated list of stylesheet filenames that is needed by the page. The main.css are menu.css automatically included. The stylesheets must be located in the /include/styles folder. Do not include the folder names in the stylesheet filename.
scripts - no A comma-separated list of javascript filenames that is needed by the page. The main.js are menu.js automatically included. The scripts must be located in the /include/scripts folder. Do not include the folder names in the scripts filename.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form

Field Summary
private  Page page
          The parent <base:page> tag.
private  String scripts
          A comma-separated list of JavaScript filenames.
private static long serialVersionUID
           
private  String styles
          A comma-separated list of stylesheets filenames.
 
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
Head()
           
 
Method Summary
private  void appendScripts(StringBuilder sb, boolean scanForLongTexts)
           
private  void appendStyles(StringBuilder sb, SessionControl sc, boolean hideLongTexts)
           
 int doEndTag()
           
 int doStartTag()
           
 String getScripts()
           
 String getStyles()
           
 void setScripts(String scripts)
           
 void setStyles(String styles)
           
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

page

private Page page
The parent <base:page> tag.


styles

private String styles
A comma-separated list of stylesheets filenames.


scripts

private String scripts
A comma-separated list of JavaScript filenames.

Constructor Detail

Head

public Head()
Method Detail

setStyles

public void setStyles(String styles)

getStyles

public String getStyles()

setScripts

public void setScripts(String scripts)

getScripts

public String getScripts()

appendStyles

private void appendStyles(StringBuilder sb,
                          SessionControl sc,
                          boolean hideLongTexts)

appendScripts

private void appendScripts(StringBuilder sb,
                           boolean scanForLongTexts)

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Throws:
JspException

2.17.2: 2011-06-17