All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class net.strandberg.html.JavaScriptURL

java.lang.Object
   |
   +----net.strandberg.html.URL
           |
           +----net.strandberg.html.JavaScriptURL

public class JavaScriptURL
extends URL
The class JavaScriptURL is used to create HTML URLs for JavaScript calls. A more proper name would probably be JavaScriptFunctionCallURLString.

Version:
$Revision: 0.0 $
Author:
Mats Strandberg

Constructor Index

 o JavaScriptURL(String)
Constructs a new JavaScriptURL which will be representing a JavaScript URL
 o JavaScriptURL(String, String)
Constructs a new JavaScriptURL which will be representing a JavaScript URL.
 o JavaScriptURL(String, String, boolean)
Constructs a new JavaScriptURL which will be representing a JavaScript URL.
 o JavaScriptURL(String, String, String)
Constructs a new JavaScriptURL which will be representing a JavaScript URL.
 o JavaScriptURL(String, String, String, boolean)
Constructs a new JavaScriptURL which will be representing a JavaScript URL.
 o JavaScriptURL(String, String[])
Constructs a new JavaScriptURL which will be representing a JavaScript URL.
 o JavaScriptURL(String, String[], boolean)
Constructs a new JavaScriptURL which will be representing a JavaScript URL.

Method Index

 o toHTML()
Returns HTML code representing this JavaScript URL.
 o toHTML(String)
Get HTML corresponding to a JavaScript URL
 o toHTML(String, String)
Get HTML corresponding to a JavaScript URL Parameter par1 will be quoted, i.e.
 o toHTML(String, String, String)
Get HTML corresponding to a JavaScript URL Parameter par1 and par2 will be quoted, i.e.

Constructors

 o JavaScriptURL
 public JavaScriptURL(String funcName)
Constructs a new JavaScriptURL which will be representing a JavaScript URL

Parameters:
funcName - function to call
 o JavaScriptURL
 public JavaScriptURL(String funcName,
                      String par1)
Constructs a new JavaScriptURL which will be representing a JavaScript URL. Parameter par1 will be quoted, i.e. javascript:funcName('par1')

Parameters:
funcName - function to call
par1 - first parameter
 o JavaScriptURL
 public JavaScriptURL(String funcName,
                      String par1,
                      boolean quotePars)
Constructs a new JavaScriptURL which will be representing a JavaScript URL.

Parameters:
funcName - function to call
par1 - first parameter
quotePars - tells whether parameters should be quoted
 o JavaScriptURL
 public JavaScriptURL(String funcName,
                      String par1,
                      String par2)
Constructs a new JavaScriptURL which will be representing a JavaScript URL. Parameter par1 and par2 will be quoted, i.e. javascript:funcName('par1', 'par2')

Parameters:
funcName - function to call
par1 - first parameter
par2 - second parameter
 o JavaScriptURL
 public JavaScriptURL(String funcName,
                      String par1,
                      String par2,
                      boolean quotePars)
Constructs a new JavaScriptURL which will be representing a JavaScript URL.

Parameters:
funcName - function to call
par1 - first parameter
par2 - second parameter
quotePars - tells whether parameters should be quoted
 o JavaScriptURL
 public JavaScriptURL(String funcName,
                      String parameters[])
Constructs a new JavaScriptURL which will be representing a JavaScript URL. Parameters will be quoted, e.g. javascript:funcName('par1', 'par2', ...)

Parameters:
funcName - function to call
parameters - parameters to call this function with
 o JavaScriptURL
 public JavaScriptURL(String funcName,
                      String parameters[],
                      boolean quotePars)
Constructs a new JavaScriptURL which will be representing a JavaScript URL.

Parameters:
funcName - function to call
parameters - parameters to call this function with
quotePars - tells whether parameters should be quoted

Methods

 o toHTML
 public static String toHTML(String funcName)
Get HTML corresponding to a JavaScript URL

Parameters:
funcName - function to call
 o toHTML
 public static String toHTML(String funcName,
                             String par1)
Get HTML corresponding to a JavaScript URL Parameter par1 will be quoted, i.e. javascript:funcName('par1')

Parameters:
funcName - function to call
par1 - first parameter
 o toHTML
 public static String toHTML(String funcName,
                             String par1,
                             String par2)
Get HTML corresponding to a JavaScript URL Parameter par1 and par2 will be quoted, i.e. javascript:funcName('par1', 'par2')

Parameters:
funcName - function to call
par1 - first parameter
par2 - second parameter
 o toHTML
 public String toHTML()
Returns HTML code representing this JavaScript URL.

Overrides:
toHTML in class URL

All Packages  Class Hierarchy  This Package  Previous  Next  Index