basic.js contains the basic functionality necessary to make calls into the API. All HTML using the API must include this file. Also exposed in this file are the API calls necessary to register for events.
Field Summary | |
static java.lang.String |
EVENT_ERROR
The event constant used to register for the onError event |
Method Summary | |
java.lang.String |
fireEvent(java.lang.String eventConstant,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6,
java.lang.Object arg7,
java.lang.Object arg8,
java.lang.Object arg9)
Fires an event to the handler registered for that event. |
java.awt.Window |
getWAM()
Obtains a reference to the WATA Applet Manager DOM window. |
void |
onError(java.lang.String description,
int code0,
int code1,
int code2,
int code3,
int code4)
This is the prototype for an event. |
java.lang.String |
registerForEvent(java.lang.String eventConstant)
Registers the window that calls this method to receive the event specified. |
java.lang.String |
unregisterForEvent(java.lang.String eventConstant)
Unregisters the current event handler for the event specified. |
Field Detail |
public static final java.lang.String EVENT_ERROR
registerForEvent(String)
,
Constant Field ValuesMethod Detail |
public java.awt.Window getWAM()
public java.lang.String registerForEvent(java.lang.String eventConstant)
eventConstant
- The event constant exposed by the API for the given event.
public java.lang.String unregisterForEvent(java.lang.String eventConstant)
eventConstant
- The event constant exposed by the API for the given event.public void onError(java.lang.String description, int code0, int code1, int code2, int code3, int code4)
Host Applet | All Applets and JavaScript have access to firing this event |
public java.lang.String fireEvent(java.lang.String eventConstant, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6, java.lang.Object arg7, java.lang.Object arg8, java.lang.Object arg9)
eventConstant
- The event constant exposed by the API for the given event.arg0
- An optional argument to deliver to the event handlerarg1
- An optional argument to deliver to the event handlerarg2
- An optional argument to deliver to the event handlerarg3
- An optional argument to deliver to the event handlerarg4
- An optional argument to deliver to the event handlerarg5
- An optional argument to deliver to the event handlerarg6
- An optional argument to deliver to the event handlerarg7
- An optional argument to deliver to the event handlerarg8
- An optional argument to deliver to the event handlerarg9
- An optional argument to deliver to the event handler