Difference between revisions of "Documentation/DevGuide/Basic/Getting the Dialog Model"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (FINAL VERSION FOR L10N)
m
Line 9: Line 9:
 
  {{DISPLAYTITLE:Getting the Dialog Model}}
 
  {{DISPLAYTITLE:Getting the Dialog Model}}
 
If a developer wants to modify any properties of a dialog or a control, it is necessary to have access to the dialog model. From a dialog, the model can be obtained by the getModel method of the <idl>com.sun.star.awt.XControl</idl> interface  
 
If a developer wants to modify any properties of a dialog or a control, it is necessary to have access to the dialog model. From a dialog, the model can be obtained by the getModel method of the <idl>com.sun.star.awt.XControl</idl> interface  
 
+
<source lang="oobas">
 
   oDialogModel = oDialog.getModel()
 
   oDialogModel = oDialog.getModel()
 
+
</source>
 
or shorter
 
or shorter
 
+
<source lang="oobas">
 
   oDialogModel = oDialog.Model
 
   oDialogModel = oDialog.Model
 
+
</source>
 
{{PDL1}}
 
{{PDL1}}
  
 
[[Category:Documentation/Developer's Guide/Basic and Dialogs]]
 
[[Category:Documentation/Developer's Guide/Basic and Dialogs]]

Revision as of 09:54, 22 October 2009



If a developer wants to modify any properties of a dialog or a control, it is necessary to have access to the dialog model. From a dialog, the model can be obtained by the getModel method of the com.sun.star.awt.XControl interface

  oDialogModel = oDialog.getModel()

or shorter

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