BBjMDI::registerMDIClosingCallback
Description
In BBj 3.0 and higher, this method allows a program to register a callback that will be called when the BBjMDI master is attempting to close.
Syntax
Return Value |
Method |
---|---|
void |
registerMDIClosingCallback(string callbackName) |
void |
registerMDIClosingCallback(UserObject userObj, string methodName) |
Parameters
Variable |
Description |
---|---|
callbackName |
Specifies the name of a callback that should be called prior to the MDI master window being closed. |
Return Value
None.
Remarks
The program that calls this method is expected to provide a callback routine that is 'MDI-friendly', which means that the callback should either execute RELEASE or execute vetoMDIClose() or approveMDIClose. The MDI Window will be unresponsive until the callback executing one of these actions. If the callback returns without implementing either of these actions, then the MDI Window will remain unresponsive. If the callback invokes vetoMDIClose(), then the MDI Window will not close. If the callback invokes approveMDIClose(), then the MDI Window will poll the remaining MDI clients that have registered closing callbacks. If none of the clients invoke vetoMDIClose(), then all clients will be summarily terminated.
When registering a UserObject method as the target of the callback, the method must conform to the following constraints:
The method must be declared as public with a return type of void.
The method must accept a single parameter.
The type of the method parameter must be either BBjMDIClosingEvent or BBjSysGui or BBjEvent or java.lang.Object.
Example
|
Example - MDI master application
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.