Difference between revisions of "Documentation/DevGuide/Forms/Form Control Models"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (1 revision(s))
 
(5 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
|NextPage=Documentation/DevGuide/Forms/Control Models and Shapes
 
|NextPage=Documentation/DevGuide/Forms/Control Models and Shapes
 
}}
 
}}
{{DISPLAYTITLE:Form Control Models}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Forms/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Form Control Models}}
 
<!--<idltopic>com.sun.star.form.FormControlModel</idltopic>-->
 
<!--<idltopic>com.sun.star.form.FormControlModel</idltopic>-->
 
The control models are discussed in these sections. The basic service for a form layer control model is <idl>com.sun.star.form.FormControlModel</idl> that is discussed in more detail below. A form control model promises to support the <idl>com.sun.star.form.FormComponent</idl> service, meaning that it can act as a child in our model hierarchy.
 
The control models are discussed in these sections. The basic service for a form layer control model is <idl>com.sun.star.form.FormControlModel</idl> that is discussed in more detail below. A form control model promises to support the <idl>com.sun.star.form.FormComponent</idl> service, meaning that it can act as a child in our model hierarchy.
Line 13: Line 14:
  
 
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:
 
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:
 
+
<syntaxhighlight lang="java">
 
   // dump the form component tree
 
   // dump the form component tree
 
   enumFormComponents(getFormComponentTreeRoot());
 
   enumFormComponents(getFormComponentTreeRoot());
 +
</syntaxhighlight>
 +
{{PDL1}}
  
{{PDL1}}
+
[[Category:Documentation/Developer's Guide/Forms]]
[[Category: Forms]]
+

Latest revision as of 15:33, 21 December 2020



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