com.filenet.wcm.toolkit.server.util
Class JavascriptUtil
- java.lang.Object
com.filenet.wcm.toolkit.server.util.JavascriptUtil
- public class JavascriptUtil
- extends java.lang.Object
Constructor Summary
| Constructor and Description |
|---|
JavascriptUtil()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
changeLocation(java.io.Writer w,java.lang.String url)
Write the javascript code required to change the window opener location.
|
|
changeWindowLocation(java.io.Writer w,java.lang.String url)
Write the javascript code required to change the window location.
|
|
closeFormWindow(java.io.Writer w)
Write the javascript code required to close a Form Template popup window.
|
|
closeWindow(java.io.Writer w)
Write the javascript code required to close a popup window.
|
|
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.ExceptioncloseWindow
- 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.ExceptioncloseFormWindow
- 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.ExceptionchangeLocation
- 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.ExceptionchangeWindowLocation
- 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