com.filenet.wcm.toolkit.server.util

Class JavascriptUtil

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

  1. public class JavascriptUtil
  2. extends java.lang.Object

Constructor Summary

Constructor and Description
JavascriptUtil()

Method Summary

Modifier and Type Method and Description
  1. static
  2. void
changeLocation(java.io.Writer w,java.lang.String url)
Write the javascript code required to change the window opener location.
  1. static
  2. void
changeWindowLocation(java.io.Writer w,java.lang.String url)
Write the javascript code required to change the window location.
  1. static
  2. void
closeFormWindow(java.io.Writer w)
Write the javascript code required to close a Form Template popup window.
  1. static
  2. void
closeWindow(java.io.Writer w)
Write the javascript code required to close a popup window.
  1. static
  2. 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

  1. public JavascriptUtil()

Method Detail

openWindow

  1. public static void openWindow(java.io.Writer w,
  2. java.lang.String pageUrl,
  3. java.lang.String title,
  4. boolean toolbar,
  5. boolean addressbar,
  6. boolean resizable,
  7. boolean scrollbars,
  8. int width,
  9. int height,
  10. java.lang.String align,
  11. java.lang.String valign,
  12. boolean focus)
  13. 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

  1. public static void closeWindow( java.io.Writer w)
  2. 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

  1. public static void closeFormWindow( java.io.Writer w)
  2. 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

  1. public static void changeLocation( java.io.Writer w,
  2. java.lang.String url)
  3. 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

  1. public static void changeWindowLocation( java.io.Writer w,
  2. java.lang.String url)
  3. 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