All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class net.strandberg.html.JavaScript

java.lang.Object
   |
   +----net.strandberg.html.JavaScript

public class JavaScript
extends Object
implements HTMLItem
The class JavaScript is used to create HTML Code for JavaScript calls. A more proper name would probably be JavaScriptFunctionCallString.

Version:
$Revision: 0.0 $
Author:
Mats Strandberg

Constructor Index

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

Method Index

 o toHTML()
Returns HTML code representing this JavaScript function call.
 o toHTML(String)
Get HTML corresponding to a JavaScript function call.
 o toHTML(String, String)
Get HTML corresponding to a JavaScript function call.
 o toHTML(String, String, String)
Get HTML corresponding to a JavaScript function call.

Constructors

 o JavaScript
 public JavaScript(String funcName)
Constructs a new JavaScript which will be representing a JavaScript function call.

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

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

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

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

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

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

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 function call.

Parameters:
funcName - function to call
 o toHTML
 public static String toHTML(String funcName,
                             String par1)
Get HTML corresponding to a JavaScript function call. Parameter par1 will be quoted, i.e. 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 function call. Parameter par1 and par2 will be quoted, i.e. 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 function call.


All Packages  Class Hierarchy  This Package  Previous  Next  Index