tdf#130857 qt weld: Introduce QtInstanceScrolledWindow
[LibreOffice.git] / qadevOOo / tests / java / mod / _forms / ONumericModel.java
blob23f26b0e56789afe392c053802bc20e27ce7b7d6
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;
20 import com.sun.star.beans.NamedValue;
21 import java.io.PrintWriter;
23 import lib.TestParameters;
24 import util.DBTools;
28 /**
29 * Test for object which is represented by service
30 * <code>com.sun.star.for.component.NumericField</code>. <p>
31 * Object implements the following interfaces :
32 * <ul>
33 * <li> <code>com::sun::star::io::XPersistObject</code></li>
34 * <li> <code>com::sun::star::form::XReset</code></li>
35 * <li> <code>com::sun::star::form::XBoundComponent</code></li>
36 * <li> <code>com::sun::star::form::FormComponent</code></li>
37 * <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
38 * <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
39 * <li> <code>com::sun::star::form::XUpdateBroadcaster</code></li>
40 * <li> <code>com::sun::star::form::DataAwareControlModel</code></li>
41 * <li> <code>com::sun::star::beans::XPropertyState</code></li>
42 * <li> <code>com::sun::star::form::component::NumericField</code></li>
43 * <li> <code>com::sun::star::form::FormControlModel</code></li>
44 * <li> <code>com::sun::star::container::XNamed</code></li>
45 * <li> <code>com::sun::star::lang::XComponent</code></li>
46 * <li> <code>com::sun::star::lang::XEventListener</code></li>
47 * <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
48 * <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
49 * <li> <code>com::sun::star::beans::XPropertySet</code></li>
50 * <li> <code>com::sun::star::awt::UnoControlNumericFieldModel</code></li>
51 * <li> <code>com::sun::star::form::XLoadListener</code></li>
52 * <li> <code>com::sun::star::container::XChild</code></li>
53 * </ul> <p>
54 * This object test <b> is NOT </b> designed to be run in several
55 * threads concurrently.
56 * @see com.sun.star.io.XPersistObject
57 * @see com.sun.star.form.XReset
58 * @see com.sun.star.form.XBoundComponent
59 * @see com.sun.star.form.FormComponent
60 * @see com.sun.star.beans.XFastPropertySet
61 * @see com.sun.star.beans.XMultiPropertySet
62 * @see com.sun.star.form.XUpdateBroadcaster
63 * @see com.sun.star.form.DataAwareControlModel
64 * @see com.sun.star.beans.XPropertyState
65 * @see com.sun.star.form.component.NumericField
66 * @see com.sun.star.form
67 * @see com.sun.star.container.XNamed
68 * @see com.sun.star.lang.XComponent
69 * @see com.sun.star.lang.XEventListener
70 * @see com.sun.star.beans.XPropertyAccess
71 * @see com.sun.star.beans.XPropertyContainer
72 * @see com.sun.star.beans.XPropertySet
73 * @see com.sun.star.awt.UnoControlNumericFieldModel
74 * @see com.sun.star.form.XLoadListener
75 * @see com.sun.star.container.XChild
76 * @see ifc.io._XPersistObject
77 * @see ifc.form._XReset
78 * @see ifc.form._XBoundComponent
79 * @see ifc.form._FormComponent
80 * @see ifc.beans._XFastPropertySet
81 * @see ifc.beans._XMultiPropertySet
82 * @see ifc.form._XUpdateBroadcaster
83 * @see ifc.form._DataAwareControlModel
84 * @see ifc.beans._XPropertyState
85 * @see ifc.form.component._NumericField
86 * @see ifc.form._FormControlModel
87 * @see ifc.container._XNamed
88 * @see ifc.lang._XComponent
89 * @see ifc.lang._XEventListener
90 * @see ifc.beans._XPropertySet
91 * @see ifc.awt._UnoControlNumericFieldModel
92 * @see ifc.form._XLoadListener
93 * @see ifc.container._XChild
95 public class ONumericModel extends GenericModelTest {
96 /**
97 * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
98 * <pre>
99 * super.m_ChangePropertyName = "Time";
100 * super.m_kindOfControl="TimeField";
101 * super.m_ObjectName = "stardiv.one.form.component.TimeField";
102 * NamedValue DataField = new NamedValue();
103 * DataField.Name = "DataField";
104 * DataField.Value = DBTools.TST_INT_F;
105 * super.m_propertiesToSet.add(DataField);
107 * super.m_LCShape_Type = "FixedText";
108 * </pre>
109 * Then <CODE>super.initialize()</CODE> was called.
110 * @param tParam the test parameter
111 * @param log the log writer
113 @Override
114 protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
116 super.initialize(tParam, log);
118 super.m_ChangePropertyName = "Value";
120 super.m_kindOfControl="NumericField";
122 super.m_ObjectName = "stardiv.one.form.component.NumericField";
124 NamedValue DataField = new NamedValue();
125 DataField.Name = "DataField";
126 DataField.Value = DBTools.TST_DOUBLE_F;
127 super.m_propertiesToSet.add(DataField);
129 super.m_LCShape_Type = "FixedText";
133 } // finish class ONumericModel