wt.htmlutil
Class PopupHTMLUtils

java.lang.Object
  extended bywt.htmlutil.PopupHTMLUtils

public class PopupHTMLUtils
extends Object

This class contains convenience methods simplifying the generation of links and methods for popup browser windows, such as "wizard" actions. There is a special set of "wizard window" convenience methods which provide a standard set of JavaScript for use by all wizard-launching pages for consistent launching and cleanup behavior:


Constructor Summary
PopupHTMLUtils()
           
 
Method Summary
static String getLaunchWindowURLWrapper(String url, String windowName, int width, int height)
          Returns a javascript pseudo url of the form: javascript: launchWindow('','','width=,height=, directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=no,resizable=yes') The "launchWindow" method is automatically included on the page if the page calls UtilProcessorService.getBodyTag().
static String getLaunchWindowURLWrapper(String url, String windowName, int width, int height, String windowProps)
          Returns a javascript pseudo url of the form: javascript: launchWindow('','','width=,height=, directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=no,resizable=yes') The "launchWindow" method is automatically included on the page if the page calls UtilProcessorService.getBodyTag().
static String getLaunchWindowURLWrapper(String url, String windowName, String methodName, int width, int height)
          Returns a javascript pseudo url of the form: javascript: ('','','width=,height=, directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=no,resizable=yes') A javascript function named should be included on the page.
static String getLaunchWindowURLWrapper(String url, String windowName, String methodName, int width, int height, String windowProps)
          Returns a javascript pseudo url of the form: javascript: ('','','width=,height=,directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=no,resizable=yes') A javascript function named should be included on the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupHTMLUtils

public PopupHTMLUtils()
Method Detail

getLaunchWindowURLWrapper

public static String getLaunchWindowURLWrapper(String url,
                                               String windowName,
                                               String methodName,
                                               int width,
                                               int height,
                                               String windowProps)
Returns a javascript pseudo url of the form: javascript: ('','','width=,height=,directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=no,resizable=yes') A javascript function named should be included on the page. A "launchWindow" method, the default method for opening windows, is automatically included on the page if the page calls UtilProcessorService.getBodyTag(). Example call: String url = getLaunchWindowURLWrapper(visURL,"VisualizationPortal", "launchWindow",900,700, "directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=yes,resizable=yes"); Note that windowProps should not include width and height.


getLaunchWindowURLWrapper

public static String getLaunchWindowURLWrapper(String url,
                                               String windowName,
                                               int width,
                                               int height)
Returns a javascript pseudo url of the form: javascript: launchWindow('','','width=,height=, directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=no,resizable=yes') The "launchWindow" method is automatically included on the page if the page calls UtilProcessorService.getBodyTag(). Example call: String url = getLaunchWindowURLWrapper(visURL,"VisualizationPortal",900,700);


getLaunchWindowURLWrapper

public static String getLaunchWindowURLWrapper(String url,
                                               String windowName,
                                               String methodName,
                                               int width,
                                               int height)
Returns a javascript pseudo url of the form: javascript: ('','','width=,height=, directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=no,resizable=yes') A javascript function named should be included on the page. Example call: String url = getLaunchWindowURLWrapper(visURL,"VisualizationPortal","launchWindow",900,700);


getLaunchWindowURLWrapper

public static String getLaunchWindowURLWrapper(String url,
                                               String windowName,
                                               int width,
                                               int height,
                                               String windowProps)
Returns a javascript pseudo url of the form: javascript: launchWindow('','','width=,height=, directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=no,resizable=yes') The "launchWindow" method is automatically included on the page if the page calls UtilProcessorService.getBodyTag(). Example call: String url = getLaunchWindowURLWrapper(visURL,"VisualizationPortal",900,700); "directories=no,location=no,menubar=no,scrollbars=auto,status=yes,toolbar=yes,resizable=yes"); Note that windowProps should not include width and height.