org.opengts.war.tools
Class JavaScriptTools

java.lang.Object
  extended by org.opengts.war.tools.JavaScriptTools

public class JavaScriptTools
extends java.lang.Object


Constructor Summary
JavaScriptTools()
           
 
Method Summary
static java.lang.String qualifyJSFileRef(java.lang.String jsFileRef)
           
static void writeEndJavaScript(java.io.PrintWriter out)
           
static void writeJS(java.io.PrintWriter out, java.lang.String js)
           
static void writeJS(java.io.PrintWriter out, java.lang.String[] js)
           
static void writeJSInclude(javax.servlet.jsp.JspWriter out, java.lang.String jsFileRef, javax.servlet.http.HttpServletRequest request)
           
static void writeJSInclude(javax.servlet.jsp.JspWriter out, java.lang.String jsFileRef, int seq)
           
static void writeJSInclude(java.io.PrintWriter out, java.lang.String jsFileRef, javax.servlet.http.HttpServletRequest request)
           
static void writeJSInclude(java.io.PrintWriter out, java.lang.String jsFileRef, int seq)
           
static void writeJSIncludes(javax.servlet.jsp.JspWriter out, java.lang.String[] jsFileRefs, javax.servlet.http.HttpServletRequest request)
           
static void writeJSIncludes(javax.servlet.jsp.JspWriter out, java.lang.String[] jsFileRefs, int seq)
           
static void writeJSIncludes(java.io.PrintWriter out, java.lang.String[] jsFileRefs, javax.servlet.http.HttpServletRequest request)
           
static void writeJSIncludes(java.io.PrintWriter out, java.lang.String[] jsFileRefs, int seq)
           
static void writeJSVar(java.io.PrintWriter out, java.lang.String varName, java.lang.Object value)
           
static void writeJSVar(java.io.PrintWriter out, java.lang.String varName, java.lang.Object value, boolean quoteString)
           
static void writeStartJavaScript(java.io.PrintWriter out)
           
static void writeUtilsJS(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest request)
           
static void writeUtilsJS(javax.servlet.jsp.JspWriter out, int seq)
           
static void writeUtilsJS(java.io.PrintWriter out, javax.servlet.http.HttpServletRequest request)
           
static void writeUtilsJS(java.io.PrintWriter out, int seq)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptTools

public JavaScriptTools()
Method Detail

qualifyJSFileRef

public static java.lang.String qualifyJSFileRef(java.lang.String jsFileRef)

writeJSVar

public static void writeJSVar(java.io.PrintWriter out,
                              java.lang.String varName,
                              java.lang.Object value)
                       throws java.io.IOException
Throws:
java.io.IOException

writeJSVar

public static void writeJSVar(java.io.PrintWriter out,
                              java.lang.String varName,
                              java.lang.Object value,
                              boolean quoteString)
                       throws java.io.IOException
Throws:
java.io.IOException

writeJSInclude

public static void writeJSInclude(java.io.PrintWriter out,
                                  java.lang.String jsFileRef,
                                  javax.servlet.http.HttpServletRequest request)
                           throws java.io.IOException
Throws:
java.io.IOException

writeJSInclude

public static void writeJSInclude(java.io.PrintWriter out,
                                  java.lang.String jsFileRef,
                                  int seq)
                           throws java.io.IOException
Throws:
java.io.IOException

writeJSIncludes

public static void writeJSIncludes(java.io.PrintWriter out,
                                   java.lang.String[] jsFileRefs,
                                   javax.servlet.http.HttpServletRequest request)
                            throws java.io.IOException
Throws:
java.io.IOException

writeJSIncludes

public static void writeJSIncludes(java.io.PrintWriter out,
                                   java.lang.String[] jsFileRefs,
                                   int seq)
                            throws java.io.IOException
Throws:
java.io.IOException

writeJSInclude

public static void writeJSInclude(javax.servlet.jsp.JspWriter out,
                                  java.lang.String jsFileRef,
                                  javax.servlet.http.HttpServletRequest request)
                           throws java.io.IOException
Throws:
java.io.IOException

writeJSInclude

public static void writeJSInclude(javax.servlet.jsp.JspWriter out,
                                  java.lang.String jsFileRef,
                                  int seq)
                           throws java.io.IOException
Throws:
java.io.IOException

writeJSIncludes

public static void writeJSIncludes(javax.servlet.jsp.JspWriter out,
                                   java.lang.String[] jsFileRefs,
                                   javax.servlet.http.HttpServletRequest request)
                            throws java.io.IOException
Throws:
java.io.IOException

writeJSIncludes

public static void writeJSIncludes(javax.servlet.jsp.JspWriter out,
                                   java.lang.String[] jsFileRefs,
                                   int seq)
                            throws java.io.IOException
Throws:
java.io.IOException

writeUtilsJS

public static void writeUtilsJS(java.io.PrintWriter out,
                                javax.servlet.http.HttpServletRequest request)
                         throws java.io.IOException
Throws:
java.io.IOException

writeUtilsJS

public static void writeUtilsJS(java.io.PrintWriter out,
                                int seq)
                         throws java.io.IOException
Throws:
java.io.IOException

writeUtilsJS

public static void writeUtilsJS(javax.servlet.jsp.JspWriter out,
                                javax.servlet.http.HttpServletRequest request)
                         throws java.io.IOException
Throws:
java.io.IOException

writeUtilsJS

public static void writeUtilsJS(javax.servlet.jsp.JspWriter out,
                                int seq)
                         throws java.io.IOException
Throws:
java.io.IOException

writeStartJavaScript

public static void writeStartJavaScript(java.io.PrintWriter out)

writeEndJavaScript

public static void writeEndJavaScript(java.io.PrintWriter out)

writeJS

public static void writeJS(java.io.PrintWriter out,
                           java.lang.String[] js)
                    throws java.io.IOException
Throws:
java.io.IOException

writeJS

public static void writeJS(java.io.PrintWriter out,
                           java.lang.String js)
                    throws java.io.IOException
Throws:
java.io.IOException