Closing Frames and Applications

Assuming a multiframe application, where each opened document gets at least one view created, which is placed in a new created frame. As we know, this happens via document and view templates. The a2dDocumentTemplate which make the connection between file extension/contents and the document object to be created in your application. After that there is the a2dViewTemplate to create the views on that specific document. And in between follows the a2dViewConnector, to organize how the views will be attached to the GUI by using existing or newly created windows and/or frames.

In the end we have several Frames open, which have an attached view to display part of the documents. There can be several frames having views to display parts of the same document. So what will happen when you close a frame. Often there will be two situation. When you start your application, there will be one frame, mentioned the parent frame. This frame might display all opened documents as icons. Every document opened will result in an extra frame being created, being a child frame, and results in adding an icon to the parent frame. Closing/exiting the parent frame will close all child frames, but closing a child frame does not mean exiting the application, instead only closing a view and maybe the document.