BBjMDI::closeAllClients
Description
In BBj 3.02 and higher, this method attempts to close any MDI client programs currently running within the BBjMDI window.
Syntax
Return Value |
Method |
---|---|
boolean |
closeAllClients(int timeoutInSeconds) |
Parameters
Variable |
Description |
---|---|
timeoutInSeconds |
The number of seconds the MDI will wait before generating an !ERROR=60 - General I/O Error. |
Return Value
0 = A client registered as a MDI close listener vetoed the operation.
1 = Successful operation.
Remarks
This method calls into any callback that was registered through a call to BBjMDI::registerMDIClosingCallback. If any of these callbacks invokes the method BBjMDI::vetoMDIClose, then this method will be deemed unsuccessful. If the timeout period expires before all MDI clients have responded, then an error will be thrown. As opposed to the method BBjMDI::closeAll, this method does not close the MDI window itself.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.