wt.htmlutil
Class JavaScriptManager

java.lang.Object
  extended bywt.htmlutil.JavaScriptManager

public class JavaScriptManager
extends Object

Retrieves javascript files for inclusion in a given HTML page, ensuring that each script is included only once per page. Currently is used by extending the abstract HTMLJavaScriptComponent, which contains an instance of JavaScriptManager.


Field Summary
private static String FALSE
          Deprecated.  
static String ID
          Deprecated.  
private static String NEEDSPROCESSING
          Deprecated.  
private static String SCRIPTID
          Deprecated.  
private  Vector scriptRegistry
          Deprecated.  
private static String TRUE
          Deprecated.  
private static String versionID
          Deprecated.  
 
Constructor Summary
JavaScriptManager()
          Deprecated.  
 
Method Summary
 void addScript(Properties params, Locale locale, OutputStream os)
          Deprecated.  
 void addScript(String scriptID, Locale locale, OutputStream os, boolean needsProcessing)
          Deprecated. If the script associated with scriptId has already been printed, then do nothing.
 AbstractHTMLTemplateFactory getHTMLTemplateFactory()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPTID

private static final String SCRIPTID
Deprecated. 
See Also:
Constant Field Values

NEEDSPROCESSING

private static final String NEEDSPROCESSING
Deprecated. 
See Also:
Constant Field Values

TRUE

private static final String TRUE
Deprecated. 
See Also:
Constant Field Values

FALSE

private static final String FALSE
Deprecated. 
See Also:
Constant Field Values

versionID

private static final String versionID
Deprecated. 
See Also:
Constant Field Values

ID

public static String ID
Deprecated. 

scriptRegistry

private Vector scriptRegistry
Deprecated. 
Constructor Detail

JavaScriptManager

public JavaScriptManager()
Deprecated. 
Method Detail

addScript

public void addScript(String scriptID,
                      Locale locale,
                      OutputStream os,
                      boolean needsProcessing)
               throws WTException
Deprecated. 
If the script associated with scriptId has already been printed, then do nothing. Otherwise print the script and update the register of printed scripts.

Throws:
WTException

addScript

public void addScript(Properties params,
                      Locale locale,
                      OutputStream os)
               throws WTException
Deprecated. 
Throws:
WTException

getHTMLTemplateFactory

public AbstractHTMLTemplateFactory getHTMLTemplateFactory()
                                                   throws WTException
Deprecated. 
Throws:
WTException