1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 package mod._forms;
24 
25 import java.io.PrintWriter;
26 
27 import lib.TestEnvironment;
28 import lib.TestParameters;
29 
30 
31 /**
32 * Test for object which is represented by service
33 * <code>com.sun.star.form.component.FixedText</code>. <p>
34 * Object implements the following interfaces :
35 * <ul>
36 *  <li> <code>com::sun::star::io::XPersistObject</code></li>
37 *  <li> <code>com::sun::star::container::XChild</code></li>
38 *  <li> <code>com::sun::star::form::FormControlModel</code></li>
39 *  <li> <code>com::sun::star::form::FormComponent</code></li>
40 *  <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
41 *  <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
42 *  <li> <code>com::sun::star::beans::XPropertySet</code></li>
43 *  <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
44 *  <li> <code>com::sun::star::beans::XPropertyState</code></li>
45 *  <li> <code>com::sun::star::container::XNamed</code></li>
46 *  <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
47 *  <li> <code>com::sun::star::awt::UnoControlFixedTextModel</code></li>
48 *  <li> <code>com::sun::star::lang::XComponent</code></li>
49 * </ul>
50 * This object test <b> is NOT </b> designed to be run in several
51 * threads concurently.
52 * @see com.sun.star.io.XPersistObject
53 * @see com.sun.star.container.XChild
54 * @see com.sun.star.form.FormControlModel
55 * @see com.sun.star.form.FormComponent
56 * @see com.sun.star.beans.XPropertyAccess
57 * @see com.sun.star.beans.XPropertyContainer
58 * @see com.sun.star.beans.XPropertySet
59 * @see com.sun.star.beans.XFastPropertySet
60 * @see com.sun.star.beans.XPropertyState
61 * @see com.sun.star.container.XNamed
62 * @see com.sun.star.beans.XMultiPropertySet
63 * @see com.sun.star.awt.UnoControlFixedTextModel
64 * @see com.sun.star.lang.XComponent
65 * @see ifc.io._XPersistObject
66 * @see ifc.container._XChild
67 * @see ifc.form._FormControlModel
68 * @see ifc.form._FormComponent
69 * @see ifc.beans._XPropertySet
70 * @see ifc.beans._XFastPropertySet
71 * @see ifc.beans._XPropertyState
72 * @see ifc.container._XNamed
73 * @see ifc.beans._XMultiPropertySet
74 * @see ifc.awt._UnoControlFixedTextModel
75 * @see ifc.lang._XComponent
76 */
77 
78 public class OFixedTextModel extends GenericModelTest {
79 
80     /**
81      * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
82      * <pre>
83      *    super.m_kindOfControl="CommandButton";
84      *    super.m_ObjectName = "com.sun.star.form.component.CommandButton";
85      *    super.m_LCShape_Type = "CommandButton";
86      * </pre>
87      * Then <CODE>super.initialize()</CODE> was called.
88      * @param tParam the test parameter
89      * @param log the log writer
90      */
91 
92     protected void initialize(TestParameters tParam, PrintWriter log) {
93 
94         super.initialize(tParam, log);
95 
96         super.m_kindOfControl="FixedText";
97 
98         super.m_ObjectName = "stardiv.one.form.component.FixedText";
99 
100         super.m_LCShape_Type = "FixedText";
101 
102     }
103     /**
104      * calls <CODE>cleanup()</CODE> from it's super class
105      * @param tParam the test parameter
106      * @param log the log writer
107      */
108     protected void cleanup(TestParameters tParam, PrintWriter log) {
109         super.cleanup(tParam, log);
110     }
111 
112 
113     /**
114      * calls <CODE>createTestEnvironment()</CODE> from it's super class
115      * @param Param the test parameter
116      * @param log the log writer
117      * @return lib.TestEnvironment
118      */
119     protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
120             PrintWriter log) {
121         return super.createTestEnvironment(Param, log);
122     }
123 
124 } // finish class OFixedTextModel
125