com.filenet.wcm.toolkit.server.util
Class JavascriptUtil

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.util.JavascriptUtil

public class JavascriptUtil
extends java.lang.Object


Constructor Summary
JavascriptUtil()
           
 
Method Summary
static void changeLocation(java.io.Writer w, java.lang.String url)
          Write the javascript code required to change the window opener location.
static void changeWindowLocation(java.io.Writer w, java.lang.String url)
          Write the javascript code required to change the window location.
static void closeFormWindow(java.io.Writer w)
          Write the javascript code required to close a Form Template popup window.
static void closeWindow(java.io.Writer w)
          Write the javascript code required to close a popup window.
static void openWindow(java.io.Writer w, java.lang.String pageUrl, java.lang.String title, boolean toolbar, boolean addressbar, boolean resizable, boolean scrollbars, int width, int height, java.lang.String align, java.lang.String valign, boolean focus)
          Write the javascript code required to created a popup window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavascriptUtil

public JavascriptUtil()
Method Detail

openWindow

public static void openWindow(java.io.Writer w,
                              java.lang.String pageUrl,
                              java.lang.String title,
                              boolean toolbar,
                              boolean addressbar,
                              boolean resizable,
                              boolean scrollbars,
                              int width,
                              int height,
                              java.lang.String align,
                              java.lang.String valign,
                              boolean focus)
                       throws java.lang.Exception
Write the javascript code required to created a popup window.

Parameters:
w - Writer repsonse PrintWriter object to write the javascript code to.
pageUrl - String the URL to open
title - String the unique page window name
toolbar - boolean true/false whether or not to show the toolbar
addressbar - boolean true/false whether or not to show the URL address bar
resizable - boolean true/false whether or not to make the window resizable
scrollbars - boolean true/false whether or not to show scollbars on the window
width - int window width
height - int window height
align - String left/center/right, default is center
valign - String top/middle/bottom, default is middle
focus - boolean true/false whether or not to attempt to pop the window on top
Throws:
java.lang.Exception

closeWindow

public static void closeWindow(java.io.Writer w)
                        throws java.lang.Exception
Write the javascript code required to close a popup window.

Parameters:
w - Writer repsonse PrintWriter object to write the javascript code to.
Throws:
java.lang.Exception

closeFormWindow

public static void closeFormWindow(java.io.Writer w)
                            throws java.lang.Exception
Write the javascript code required to close a Form Template popup window.

Parameters:
w - Writer repsonse PrintWriter object to write the javascript code to.
Throws:
java.lang.Exception

changeLocation

public static void changeLocation(java.io.Writer w,
                                  java.lang.String url)
                           throws java.lang.Exception
Write the javascript code required to change the window opener location.

Parameters:
w - Writer repsonse PrintWriter object to write the javascript code to.
url - String holding new url location
Throws:
java.lang.Exception

changeWindowLocation

public static void changeWindowLocation(java.io.Writer w,
                                        java.lang.String url)
                                 throws java.lang.Exception
Write the javascript code required to change the window location.

Parameters:
w - Writer repsonse PrintWriter object to write the javascript code to.
url - String holding new url location
Throws:
java.lang.Exception


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.