tdf#130857 qt weld: Introduce QtInstanceScrolledWindow
[LibreOffice.git] / qadevOOo / tests / java / mod / _forms / OCurrencyModel.java
blob5a117d1dc4edc0004b622bd8389cd2d3cf53cd36
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 package mod._forms;
19 import com.sun.star.beans.NamedValue;
20 import java.io.PrintWriter;
22 import lib.TestParameters;
25 /**
26 * Test for object which is represented by service
27 * <code>com.sun.star.form.component.CurrencyField</code>. <p>
28 * Object implements the following interfaces :
29 * <ul>
30 * <li> <code>com::sun::star::io::XPersistObject</code></li>
31 * <li> <code>com::sun::star::form::XReset</code></li>
32 * <li> <code>com::sun::star::form::XBoundComponent</code></li>
33 * <li> <code>com::sun::star::form::FormComponent</code></li>
34 * <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
35 * <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
36 * <li> <code>com::sun::star::form::XUpdateBroadcaster</code></li>
37 * <li> <code>com::sun::star::form::DataAwareControlModel</code></li>
38 * <li> <code>com::sun::star::awt::UnoControlCurrencyFieldModel</code></li>
39 * <li> <code>com::sun::star::beans::XPropertyState</code></li>
40 * <li> <code>com::sun::star::form::FormControlModel</code></li>
41 * <li> <code>com::sun::star::container::XNamed</code></li>
42 * <li> <code>com::sun::star::lang::XComponent</code></li>
43 * <li> <code>com::sun::star::lang::XEventListener</code></li>
44 * <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
45 * <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
46 * <li> <code>com::sun::star::beans::XPropertySet</code></li>
47 * <li> <code>com::sun::star::form::XLoadListener</code></li>
48 * <li> <code>com::sun::star::container::XChild</code></li>
49 * <li> <code>com::sun::star::form::component::CurrencyField</code></li>
50 * </ul>
51 * This object test <b> is NOT </b> designed to be run in several
52 * threads concurrently.
53 * @see com.sun.star.io.XPersistObject
54 * @see com.sun.star.form.XReset
55 * @see com.sun.star.form.XBoundComponent
56 * @see com.sun.star.form.FormComponent
57 * @see com.sun.star.beans.XFastPropertySet
58 * @see com.sun.star.beans.XMultiPropertySet
59 * @see com.sun.star.form.XUpdateBroadcaster
60 * @see com.sun.star.form.DataAwareControlModel
61 * @see com.sun.star.awt.UnoControlCurrencyFieldModel
62 * @see com.sun.star.beans.XPropertyState
63 * @see com.sun.star.form
64 * @see com.sun.star.container.XNamed
65 * @see com.sun.star.lang.XComponent
66 * @see com.sun.star.lang.XEventListener
67 * @see com.sun.star.beans.XPropertyAccess
68 * @see com.sun.star.beans.XPropertyContainer
69 * @see com.sun.star.beans.XPropertySet
70 * @see com.sun.star.form.XLoadListener
71 * @see com.sun.star.container.XChild
72 * @see com.sun.star.form.component.CurrencyField
73 * @see ifc.io._XPersistObject
74 * @see ifc.form._XReset
75 * @see ifc.form._XBoundComponent
76 * @see ifc.form._FormComponent
77 * @see ifc.beans._XFastPropertySet
78 * @see ifc.beans._XMultiPropertySet
79 * @see ifc.form._XUpdateBroadcaster
80 * @see ifc.form._DataAwareControlModel
81 * @see ifc.awt._UnoControlCurrencyFieldModel
82 * @see ifc.beans._XPropertyState
83 * @see ifc.form._FormControlModel
84 * @see ifc.container._XNamed
85 * @see ifc.lang._XComponent
86 * @see ifc.lang._XEventListener
87 * @see ifc.beans._XPropertySet
88 * @see ifc.form._XLoadListener
89 * @see ifc.container._XChild
90 * @see ifc.form.component._CurrencyField
92 public class OCurrencyModel extends GenericModelTest {
94 /**
95 * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
96 * <pre>
97 * super.m_ChangePropertyName = "Value";
98 * super.m_kindOfControl="CurrencyField";
99 * super.m_ObjectName = "stardiv.one.form.component.CurrencyField";
100 * NamedValue myProp = new NamedValue();
101 * myProp.Name = "DataField";
102 * myProp.Value = "Identifier";
103 * super.m_propertiesToSet.add(myProp);
104 * super.m_LCShape_Type = "FixedText";
105 * </pre>
106 * Then <CODE>super.initialize()</CODE> was called.
107 * @param tParam the test parameter
108 * @param log the log writer
110 @Override
111 protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
113 super.initialize(tParam, log);
115 super.m_ObjectName = "stardiv.one.form.component.CurrencyField";
117 super.m_kindOfControl="CurrencyField";
119 NamedValue myProp = new NamedValue();
120 myProp.Name = "DataField";
121 myProp.Value = "Identifier";
122 super.m_propertiesToSet.add(myProp);
124 super.m_ChangePropertyName = "Value";
125 super.m_ChangePropertyValue = Double.valueOf(0);
127 super.m_LCShape_Type = "FixedText";
131 } // finish class OCurrencyModel