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.GroupBox</code>. <p>
34  * Object implements the following interfaces :
35  * <ul>
36  *  <li> <code>com::sun::star::awt::UnoControlGroupBoxModel</code></li>
37  *  <li> <code>com::sun::star::io::XPersistObject</code></li>
38  *  <li> <code>com::sun::star::container::XChild</code></li>
39  *  <li> <code>com::sun::star::form::FormControlModel</code></li>
40  *  <li> <code>com::sun::star::form::FormComponent</code></li>
41  *  <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
42  *  <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
43  *  <li> <code>com::sun::star::beans::XPropertySet</code></li>
44  *  <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
45  *  <li> <code>com::sun::star::beans::XPropertyState</code></li>
46  *  <li> <code>com::sun::star::container::XNamed</code></li>
47  *  <li> <code>com::sun::star::beans::XMultiPropertySet</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.awt.UnoControlGroupBoxModel
53  * @see com.sun.star.io.XPersistObject
54  * @see com.sun.star.container.XChild
55  * @see com.sun.star.form
56  * @see com.sun.star.form.FormComponent
57  * @see com.sun.star.beans.XPropertyAccess
58  * @see com.sun.star.beans.XPropertyContainer
59  * @see com.sun.star.beans.XPropertySet
60  * @see com.sun.star.beans.XFastPropertySet
61  * @see com.sun.star.beans.XPropertyState
62  * @see com.sun.star.container.XNamed
63  * @see com.sun.star.beans.XMultiPropertySet
64  * @see com.sun.star.lang.XComponent
65  * @see ifc.awt._UnoControlGroupBoxModel
66  * @see ifc.io._XPersistObject
67  * @see ifc.container._XChild
68  * @see ifc.form._FormControlModel
69  * @see ifc.form._FormComponent
70  * @see ifc.beans._XPropertySet
71  * @see ifc.beans._XFastPropertySet
72  * @see ifc.beans._XPropertyState
73  * @see ifc.container._XNamed
74  * @see ifc.beans._XMultiPropertySet
75  * @see ifc.lang._XComponent
76  */
77 public class OGroupBoxModel extends GenericModelTest {
78 
79     /**
80      * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
81      * <pre>
82      *    <super.m_ChangePropertyName</CODE> = "Text";
83      *    super.m_kindOfControl</CODE>="GroupBox";
84      *    super.m_ObjectName</CODE> = "GroupBox";
85      * </pre>
86      * Then <CODE>super.initialize()</CODE> was called.
87      * @param tParam the test parameter
88      * @param log the log writer
89      */
90 
initialize(TestParameters tParam, PrintWriter log)91     protected void initialize(TestParameters tParam, PrintWriter log) {
92 
93         super.initialize(tParam, log);
94 
95         super.m_kindOfControl="GroupBox";
96 
97         super.m_ObjectName = "stardiv.one.form.component.GroupBox";
98 
99         super.m_LCShape_Type = "FixedText";
100 
101         super.m_ChangePropertyName = "Text";
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      */
cleanup(TestParameters tParam, PrintWriter log)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      */
createTestEnvironment(TestParameters Param, PrintWriter log)119     protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
120         PrintWriter log) {
121         return super.createTestEnvironment(Param, log);
122     }
123 
124 } // finish class OGroupBoxModel
125