BBjServletData::setCallback (Deprecated)
BBjServlets are deprecated for BBj 21.00 and higher, and have been replaced by BBxServlets.
Description
In BBj 12.00 and higher, this method registers a custom object as a callback handler.
Syntax
| Return Value | Method |
|---|---|
| void | setCallback(int eventType, CustomObject customObj, String methodName) |
| void | setCallback(int eventType, Object object, String methodName) |
| void | setCallback(int eventType, String subroutineName) |
Parameters
|
Variable |
Description |
|---|---|
|
eventType |
Event type to clear (ON_WEB_CONNECTION) for which the callback is to be registered. |
|
customObj |
A custom object containing the method to be called when the event is processed by PROCESS_EVENTS. |
|
methodName |
The name of the method that is to be called when the event is processed by PROCESS_EVENTS. |
|
object |
A Java object containing the method to be called when the event is processed by PROCESS_EVENTS. |
|
SubroutineName |
Subroutine name to be executed in PROCESS_EVENTS. |
Return Value
None.
Example
|