Difference between revisions of "Documentation/DevGuide/Basic/Getting the Dialog Model"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Basic/{{SUBPAGENAME}}}} | {{Documentation/DevGuideLanguages|Documentation/DevGuide/Basic/{{SUBPAGENAME}}}} | ||
{{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 <code>getModel</code> method of the <idl>com.sun.star.awt.XControl</idl> interface |
− | + | <syntaxhighlight lang="oobas"> | |
oDialogModel = oDialog.getModel() | oDialogModel = oDialog.getModel() | ||
− | + | </syntaxhighlight> | |
or shorter | or shorter | ||
− | + | <syntaxhighlight lang="oobas"> | |
oDialogModel = oDialog.Model | oDialogModel = oDialog.Model | ||
− | + | </syntaxhighlight> | |
{{PDL1}} | {{PDL1}} | ||
[[Category:Documentation/Developer's Guide/Basic and Dialogs]] | [[Category:Documentation/Developer's Guide/Basic and Dialogs]] |
Latest revision as of 21:18, 20 December 2020
- Showing a Dialog
- Getting the Dialog Model
- Dialog as Control Container
- Dialog Properties
- Common Properties
- Multi-Page Dialogs
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). |