|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.WTJSObject
A wrapper class for netscape.javascript.JSObject.
This class can be used by Windchill client applications
as a proxy for the netscape.javascript.JSObject.
Using this class avoids needing the netscape.javascript.* classes
in the Windchill codebase. The classes are supplied by the browsers
at runtime.
Supported API: true
Extendable: false
Field Summary | |
private Applet |
applet
|
private Object |
jsObject
|
private static Method |
jsoCallMethod
|
private static Method |
jsoGetWindowMethod
|
private boolean |
runningInMSIE
|
Constructor Summary | |
protected |
WTJSObject(Applet applet,
Object object)
Protected constructor. |
Method Summary | |
Object |
call(String methodName,
Object[] args)
Invoke the named method with the specified arguments. |
protected static void |
callJavaScriptFunctionViaShowDoc(Applet applet,
String methodName,
Object[] args)
Call JavaScript function in the current page via AppletContext.showDocument(). |
protected void |
callJavaScriptFunctionViaShowDoc(String methodName,
Object[] args)
Call JavaScript function in the current page via AppletContext.showDocument(). |
static void |
callWithoutReturnValue(Applet applet,
String methodName,
Object[] args)
Same as instance method of the same name except that this variation avoids creating a WTJSObject (and thus calling JSObject.getWindows(applet)) where this is unnecessary. |
void |
callWithoutReturnValue(String methodName,
Object[] args)
This method can be used whenever the return value of the given function call is not of interest. |
protected static String |
escapeJavaScriptStringArgForJSUrlCall(String str)
Escape the incoming string for use as an argument to a JavaScript function call via a 'javascript:funcName(...)' URL. |
protected Applet |
getApplet()
Get the contained applet. |
protected Object |
getJSObject()
Get the contained JSObject. |
static WTJSObject |
getWindow(Applet applet)
Static method to obtain initial WTJSObject for applet's browser window. |
boolean |
isRunningInMSIE()
|
static boolean |
isRunningInMSIE(Applet applet)
Determine whether the given applet is running within MSIE. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Applet applet
private Object jsObject
private boolean runningInMSIE
private static Method jsoGetWindowMethod
private static Method jsoCallMethod
Constructor Detail |
protected WTJSObject(Applet applet, Object object)
Method Detail |
public static WTJSObject getWindow(Applet applet) throws WTException
WTException
public Object call(String methodName, Object[] args) throws WTException
WTException
public void callWithoutReturnValue(String methodName, Object[] args) throws WTException
WTException
public static void callWithoutReturnValue(Applet applet, String methodName, Object[] args) throws WTException
WTException
protected static void callJavaScriptFunctionViaShowDoc(Applet applet, String methodName, Object[] args) throws WTException
WTException
protected void callJavaScriptFunctionViaShowDoc(String methodName, Object[] args) throws WTException
WTException
protected static String escapeJavaScriptStringArgForJSUrlCall(String str)
public static boolean isRunningInMSIE(Applet applet)
public boolean isRunningInMSIE()
protected Object getJSObject()
protected Applet getApplet()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |