|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jclientpages.page.AbstractClientPage
public abstract class AbstractClientPage
This is the abstract class that implements Applet based JCP.
It is responsible of creating the JavaScript-Java bridge and implements all
the facility methods declared in the ClientPage interface
| Constructor Summary | |
|---|---|
AbstractClientPage()
|
|
| Method Summary | |
|---|---|
void |
alert(java.lang.Object alertObject)
|
void |
alert(java.lang.String alertString)
displays an alert with the given string in the current window (blocking) |
java.lang.Object |
call(java.lang.String methodName,
java.lang.Object[] args)
invokes a JavaScript function in the current window |
java.lang.Boolean |
confirm(java.lang.String confirmString)
displays a confirm dialog box (blocking) |
ClientPageNode |
createElement(java.lang.String tagName)
creates a new DOM element |
ClientPageNode |
createTextNode(java.lang.String text)
creates a new DOM text element |
java.lang.Object |
eval(java.lang.String iString)
evaluates a JavaScript expression in the current window |
ClientPageNode |
getElementById(java.lang.String id)
searches for a node given its HTML id |
ClientPageNode[] |
getElementsByExpression(java.lang.String exp)
searches for nodes evaluating a JavaScript expression (that returns an array of nodes). |
ClientPageNode[] |
getElementsByName(java.lang.String name)
searches for nodes given an HTML name IMPORTANT - due to a IE7 bug (and our workaround...) in some cases this method is a bit slow... |
ClientPageNode[] |
getElementsByTagName(java.lang.String name)
searches for nodes given an HTML tag name |
netscape.javascript.JSObject |
getWindow()
returns the JSObject representing the current window |
void |
init()
is invoked by the JCP engine when the page is compiled and instantiated |
void |
onLoad()
is invoked by the JCP engine when the page is loaded, immediately after the init() method. |
void |
setWindow(netscape.javascript.JSObject window)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jclientpages.page.ClientPage |
|---|
executeInternal, getMethods |
| Constructor Detail |
|---|
public AbstractClientPage()
| Method Detail |
|---|
public netscape.javascript.JSObject getWindow()
ClientPage
getWindow in interface ClientPagepublic void setWindow(netscape.javascript.JSObject window)
setWindow in interface ClientPagepublic void onLoad()
ClientPage
onLoad in interface ClientPagepublic final void init()
ClientPage
init in interface ClientPagepublic ClientPageNode getElementById(java.lang.String id)
ClientPage
getElementById in interface ClientPageid - the HTML id of the node
public ClientPageNode[] getElementsByTagName(java.lang.String name)
ClientPage
getElementsByTagName in interface ClientPagename - the tag name of the nodes
public ClientPageNode[] getElementsByName(java.lang.String name)
ClientPage
getElementsByName in interface ClientPagename - the name of the nodes
public ClientPageNode[] getElementsByExpression(java.lang.String exp)
ClientPage
getElementsByExpression in interface ClientPageexp - the expression to be evaluated
public ClientPageNode createElement(java.lang.String tagName)
ClientPage
createElement in interface ClientPagetagName - the tag name
public ClientPageNode createTextNode(java.lang.String text)
ClientPage
createTextNode in interface ClientPagetext - the content of the text element
public java.lang.Object call(java.lang.String methodName,
java.lang.Object[] args)
ClientPage
call in interface ClientPagemethodName - the function nameargs - the function arguments
public java.lang.Object eval(java.lang.String iString)
ClientPage
eval in interface ClientPageiString - the expression to be evaluated
public void alert(java.lang.String alertString)
ClientPage
alert in interface ClientPagepublic void alert(java.lang.Object alertObject)
public java.lang.Boolean confirm(java.lang.String confirmString)
ClientPage
confirm in interface ClientPageconfirmString - the text displayed in the dialog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||