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 /**
33 * Test for object which is represented by service
34 * <code>com.sun.star.form.component.CheckBox</code>. <p>
35 * Object implements the following interfaces :
36 * <ul>
37 *  <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
38 *  <li> <code>com::sun::star::io::XPersistObject</code></li>
39 *  <li> <code>com::sun::star::form::XReset</code></li>
40 *  <li> <code>com::sun::star::form::FormComponent</code></li>
41 *  <li> <code>com::sun::star::form::component::CheckBox</code></li>
42 *  <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
43 *  <li> <code>com::sun::star::form::DataAwareControlModel</code></li>
44 *  <li> <code>com::sun::star::form::XUpdateBroadcaster</code></li>
45 *  <li> <code>com::sun::star::beans::XPropertyState</code></li>
46 *  <li> <code>com::sun::star::form::FormControlModel</code></li>
47 *  <li> <code>com::sun::star::awt::UnoControlCheckBoxModel</code></li>
48 *  <li> <code>com::sun::star::container::XNamed</code></li>
49 *  <li> <code>com::sun::star::form::XBoundComponent</code></li>
50 *  <li> <code>com::sun::star::lang::XComponent</code></li>
51 *  <li> <code>com::sun::star::lang::XEventListener</code></li>
52 *  <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
53 *  <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
54 *  <li> <code>com::sun::star::beans::XPropertySet</code></li>
55 *  <li> <code>com::sun::star::form::XLoadListener</code></li>
56 *  <li> <code>com::sun::star::container::XChild</code></li>
57 * </ul>
58 * This object test <b> is NOT </b> designed to be run in several
59 * threads concurently.
60 *
61 * @see com.sun.star.beans.XFastPropertySet
62 * @see com.sun.star.io.XPersistObject
63 * @see com.sun.star.form.XReset
64 * @see com.sun.star.form.FormComponent
65 * @see com.sun.star.form.component.CheckBox
66 * @see com.sun.star.beans.XMultiPropertySet
67 * @see com.sun.star.form.DataAwareControlModel
68 * @see com.sun.star.form.XUpdateBroadcaster
69 * @see com.sun.star.beans.XPropertyState
70 * @see com.sun.star.form
71 * @see com.sun.star.awt.UnoControlCheckBoxModel
72 * @see com.sun.star.container.XNamed
73 * @see com.sun.star.form.XBoundComponent
74 * @see com.sun.star.lang.XComponent
75 * @see com.sun.star.lang.XEventListener
76 * @see com.sun.star.beans.XPropertyAccess
77 * @see com.sun.star.beans.XPropertyContainer
78 * @see com.sun.star.beans.XPropertySet
79 * @see com.sun.star.form.XLoadListener
80 * @see com.sun.star.container.XChild
81 * @see ifc.beans._XFastPropertySet
82 * @see ifc.io._XPersistObject
83 * @see ifc.form._XReset
84 * @see ifc.form._FormComponent
85 * @see ifc.form.component._CheckBox
86 * @see ifc.beans._XMultiPropertySet
87 * @see ifc.form._DataAwareControlModel
88 * @see ifc.form._XUpdateBroadcaster
89 * @see ifc.beans._XPropertyState
90 * @see ifc.form._FormControlModel
91 * @see ifc.awt._UnoControlCheckBoxModel
92 * @see ifc.container._XNamed
93 * @see ifc.form._XBoundComponent
94 * @see ifc.lang._XComponent
95 * @see ifc.lang._XEventListener
96 * @see ifc.beans._XPropertySet
97 * @see ifc.form._XLoadListener
98 * @see ifc.container._XChild
99 */
100 public class OCheckBoxModel extends GenericModelTest {
101 
102     /**
103      * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
104      * <pre>
105      *    super.m_kindOfControl="CheckBox";
106      *    super.m_ObjectName = "stardiv.one.form.component.CheckBox";
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
112      */
initialize(TestParameters tParam, PrintWriter log)113     protected void initialize(TestParameters tParam, PrintWriter log) {
114 
115         super.initialize(tParam, log);
116 
117         super.m_kindOfControl=  "CheckBox";
118 
119         super.m_ObjectName = "stardiv.one.form.component.CheckBox";
120 
121         super.m_LCShape_Type = "FixedText";
122 
123     }
124     /**
125      * calls <CODE>cleanup()</CODE> from it's super class
126      * @param tParam the test parameter
127      * @param log the log writer
128      */
cleanup(TestParameters tParam, PrintWriter log)129     protected void cleanup(TestParameters tParam, PrintWriter log) {
130         super.cleanup(tParam, log);
131     }
132 
133 
134     /**
135      * calls <CODE>createTestEnvironment()</CODE> from it's super class
136      * @param Param the test parameter
137      * @param log the log writer
138      * @return lib.TestEnvironment
139      */
createTestEnvironment(TestParameters Param, PrintWriter log)140     protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
141                                                                  PrintWriter log) {
142         return super.createTestEnvironment(Param, log);
143     }
144 }    // finish class OCheckBoxModel
145 
146