net.sourceforge.jstags.tags
Class Initialize

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.sourceforge.jstags.tags.JSTagsTagSupport
          extended by net.sourceforge.jstags.tags.Initialize
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class Initialize
extends JSTagsTagSupport

It initializes the library modules. it loads the js files depending on the functionalities required by the user, it loads stay in place. This effect depends on the JavaScript library Mochikit

Since:
1.0
Author:
sschz@users.sourceforge.net
See Also:
Serialized Form

Field Summary
private  java.lang.Boolean content
           
private  java.lang.Boolean effects
           
private  java.lang.Boolean forms
           
private  java.lang.String jstagsFolder
           
private static org.apache.log4j.Logger logger
          Logger for this class
private static long serialVersionUID
           
 
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
Initialize()
           
 
Method Summary
 java.lang.Boolean getContent()
           
 java.lang.Boolean getEffects()
           
 java.lang.Boolean getForms()
           
 java.lang.String getJstagsFolder()
           
protected  java.lang.String getTemplateName()
           
protected  java.util.Map<java.lang.String,java.lang.String> getTemplateNameValuePairs()
           
 void setContent(java.lang.Boolean content)
           
 void setEffects(java.lang.Boolean effects)
           
 void setForms(java.lang.Boolean forms)
           
 void setJstagsFolder(java.lang.String jstagsFolder)
           
 
Methods inherited from class net.sourceforge.jstags.tags.JSTagsTagSupport
doStartTag, getOutput
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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

logger

private static final org.apache.log4j.Logger logger
Logger for this class


serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

content

private java.lang.Boolean content

effects

private java.lang.Boolean effects

forms

private java.lang.Boolean forms

jstagsFolder

private java.lang.String jstagsFolder
Constructor Detail

Initialize

public Initialize()
Method Detail

getContent

public java.lang.Boolean getContent()

setContent

public void setContent(java.lang.Boolean content)

getEffects

public java.lang.Boolean getEffects()

setEffects

public void setEffects(java.lang.Boolean effects)

getForms

public java.lang.Boolean getForms()

setForms

public void setForms(java.lang.Boolean forms)

getJstagsFolder

public java.lang.String getJstagsFolder()

setJstagsFolder

public void setJstagsFolder(java.lang.String jstagsFolder)

getTemplateName

protected java.lang.String getTemplateName()
                                    throws javax.servlet.jsp.JspException
Specified by:
getTemplateName in class JSTagsTagSupport
Returns:
name of the .js template used to create the JavaScript code used by this tag
Throws:
javax.servlet.jsp.JspException

getTemplateNameValuePairs

protected java.util.Map<java.lang.String,java.lang.String> getTemplateNameValuePairs()
Specified by:
getTemplateNameValuePairs in class JSTagsTagSupport
Returns:
Map of [name, value] pairs representing all the name-value pair used to create the JavaScript code. Such pairs will be used to replace data inside the .js template in order to get the code of a certain effect.


Copyright © 2007. All Rights Reserved.