ilog.views.faces.dhtml.renderkit
Class IlvScriptManager

java.lang.Object
  extended by ilog.views.faces.dhtml.renderkit.IlvScriptManager

public class IlvScriptManager
extends Object

This class manages the JavaScript scripts that are needed by the JViews Faces DHTML components to render properly. There is an instance for each request that is accessible from the IlvFacesManager.

Since:
JViews 6.0

Field Summary
static ArrayList BUNDLES
          The script bundles used in the DHTML rendering of the ILOG JViews JSF components.
 
Constructor Summary
IlvScriptManager()
          Creates a new IlvScriptManager instance.
 
Method Summary
 void addScript(String url)
          Adds a script that must be loaded before creating the component JavaScript object.
 void addScript(Writer writer, String url)
          Deprecated. Beginning of JViews 8.1 use addScript(String).
 void emitScriptToLoad(IlvScriptDescriptor scriptDescriptor)
          Adds a script descriptor that must be loaded before creating the component JavaScript object.
 void emitScriptToLoad(Writer writer, IlvScriptDescriptor scriptDescriptor)
          Deprecated. Beginning of JViews 8.1 use emitScriptToLoad(IlvScriptDescriptor)
 void render(ResponseWriter writer)
          Renders the HTML code to the import the needed scripts at this specific place of the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLES

public static final ArrayList BUNDLES
The script bundles used in the DHTML rendering of the ILOG JViews JSF components.

Since:
JViews 8.1
Constructor Detail

IlvScriptManager

public IlvScriptManager()
Creates a new IlvScriptManager instance.

Method Detail

emitScriptToLoad

public void emitScriptToLoad(Writer writer,
                             IlvScriptDescriptor scriptDescriptor)
Deprecated. Beginning of JViews 8.1 use emitScriptToLoad(IlvScriptDescriptor)

Adds a script descriptor that must be loaded before creating the component JavaScript object.

Parameters:
writer - The writer into which to write the declaration of the script.
scriptDescriptor - The script descriptor of the renderer.

emitScriptToLoad

public void emitScriptToLoad(IlvScriptDescriptor scriptDescriptor)
Adds a script descriptor that must be loaded before creating the component JavaScript object.

Parameters:
scriptDescriptor - The script descriptor of the renderer.
Since:
JViews 8.1

render

public void render(ResponseWriter writer)
Renders the HTML code to the import the needed scripts at this specific place of the page.

Parameters:
writer - The response writer.
Since:
JViews 8.1

addScript

public void addScript(Writer writer,
                      String url)
Deprecated. Beginning of JViews 8.1 use addScript(String).

Adds a script that must be loaded before creating the component JavaScript object.

Parameters:
writer - The current response writer.
url - The URL of the script to load.

addScript

public void addScript(String url)
Adds a script that must be loaded before creating the component JavaScript object.

Parameters:
url - The URL of the script to load.
Since:
JViews 8.1


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.