2.17.2: 2011-06-17

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

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

public class Body
extends TagSupport

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

Syntax:

   <base:body
      clazz=...
      style=...
      onload=...
      onunload=...
      onkeypress=...
      attributes=...
   >

Attribute Default value Required Description
clazz button no The value if this attribute goes directly into the standard HTML class attribute. This allows you to apply different styles to different tables.
style - no The value if this attribute goes directly into the standard HTML style attribute. This allows you to apply different styles to different tables.
onload - no A JavaScript statement that is put into the onload attribute of the body tag.
onunload - no A JavaScript statement that is put into the onunload attribute of the body tag.
onukeypress - no A JavaScript statement that is put into the onkeypress attribute of the body tag.
attributes - no Other attributes that is needed in the body tag.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form

Field Summary
private  String attributes
          Any other attributes that is needed in the body tag.
private  String clazz
          Optional class attribute
private  String onKeyPress
          A JavaScript statement that is put into the onkeypress attribute of the body tag.
private  String onLoad
          A JavaScript statement that is put into the onload attribute of the body tag.
private  String onUnload
          A JavaScript statement that is put into the onunload attribute of the body tag.
private  Page page
          The parent <base:page> tag.
private static long serialVersionUID
           
private  String style
          Optional style attribute
 
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
Body()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 String getAttributes()
           
 String getClazz()
           
 String getOnkeypress()
           
 String getOnload()
           
 String getOnunload()
           
 String getStyle()
           
 void setAttributes(String attributes)
           
 void setClazz(String clazz)
           
 void setOnkeypress(String onKeyPress)
           
 void setOnload(String onLoad)
           
 void setOnunload(String onUnload)
           
 void setStyle(String style)
           
 
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.


clazz

private String clazz
Optional class attribute


style

private String style
Optional style attribute


onLoad

private String onLoad
A JavaScript statement that is put into the onload attribute of the body tag.


onUnload

private String onUnload
A JavaScript statement that is put into the onunload attribute of the body tag.


onKeyPress

private String onKeyPress
A JavaScript statement that is put into the onkeypress attribute of the body tag.


attributes

private String attributes
Any other attributes that is needed in the body tag.

Constructor Detail

Body

public Body()
Method Detail

setClazz

public void setClazz(String clazz)

getClazz

public String getClazz()

setStyle

public void setStyle(String style)

getStyle

public String getStyle()

setOnload

public void setOnload(String onLoad)

getOnload

public String getOnload()

setOnunload

public void setOnunload(String onUnload)

getOnunload

public String getOnunload()

setOnkeypress

public void setOnkeypress(String onKeyPress)

getOnkeypress

public String getOnkeypress()

setAttributes

public void setAttributes(String attributes)

getAttributes

public String getAttributes()

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