Form Control Models

From Apache OpenOffice Wiki
Jump to: navigation, search



The control models are discussed in these sections. The basic service for a form layer control model is com.sun.star.form.FormControlModel that is discussed in more detail below. A form control model promises to support the com.sun.star.form.FormComponent service, meaning that it can act as a child in our model hierarchy.

In addition, it does not claim that the com.sun.star.form.FormComponents service (plural s) is supported meaning that form control models are leaves in our object tree. The only exception from this is the grid control model. It is allowed to have children representing the models of the columns.

An overview of the whole model tree has been provided. With the code fragments introduced above, the following code dumps a model tree to the console:

  // dump the form component tree
  enumFormComponents(getFormComponentTreeRoot());
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages