From Apache OpenOffice Wiki
Jump to: navigation, search

Controllers in Apache OpenOffice are between a frame and document model. This is their basic role as expressed in, which has methods getModel() and getFrame(). The method getFrame() provides the frame that the controller is attached to. The method getModel() returns a document model, but it may return an empty reference if the component does not have a model.

Usually the controller objects support additional interfaces specific to the document type they control, such as for Calc document controllers or for Writer document controllers.

Controller with Model and Frame

A single document model can be controlled simultaneously by several controller instances, each associated with a separate frame. Multiple controllers and frames are created by Apache OpenOffice when the user clicks Window → New Window.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages