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 import lib.TestEnvironment;
27 import lib.TestParameters;
28 
29 /**
30 * Test for object which is represented by service
31 * <code>com.sun.star.form.component.ImageButton</code>. <p>
32 * Object implements the following interfaces :
33 * <ul>
34 *  <li> <code>com::sun::star::io::XPersistObject</code></li>
35 *  <li> <code>com::sun::star::container::XChild</code></li>
36 *  <li> <code>com::sun::star::awt::UnoControlImageControlModel</code></li>
37 *  <li> <code>com::sun::star::form::FormControlModel</code></li>
38 *  <li> <code>com::sun::star::form::FormComponent</code></li>
39 *  <li> <code>com::sun::star::form::XImageProducerSupplier</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::form::component::ImageButton</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.io.XPersistObject
53 * @see com.sun.star.container.XChild
54 * @see com.sun.star.awt.UnoControlImageControlModel
55 * @see com.sun.star.form.FormControlModel
56 * @see com.sun.star.form.FormComponent
57 * @see com.sun.star.form.XImageProducerSupplier
58 * @see com.sun.star.beans.XPropertyAccess
59 * @see com.sun.star.beans.XPropertyContainer
60 * @see com.sun.star.beans.XPropertySet
61 * @see com.sun.star.beans.XFastPropertySet
62 * @see com.sun.star.beans.XPropertyState
63 * @see com.sun.star.form.component.ImageButton
64 * @see com.sun.star.container.XNamed
65 * @see com.sun.star.beans.XMultiPropertySet
66 * @see com.sun.star.lang.XComponent
67 * @see ifc.io._XPersistObject
68 * @see ifc.container._XChild
69 * @see ifc.awt._UnoControlImageControlModel
70 * @see ifc.form._FormControlModel
71 * @see ifc.form._FormComponent
72 * @see ifc.form._XImageProducerSupplier
73 * @see ifc.beans._XPropertySet
74 * @see ifc.beans._XFastPropertySet
75 * @see ifc.beans._XPropertyState
76 * @see ifc.form.component._ImageButton
77 * @see ifc.container._XNamed
78 * @see ifc.beans._XMultiPropertySet
79 * @see ifc.lang._XComponent
80 */
81 
82 public class OImageButtonModel extends GenericModelTest {
83 
84     /**
85      * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
86      * <pre>
87      *    super.m_kindOfControl="ImageButton";
88      *    super.m_ObjectName = "stardiv.one.form.component.ImageButton";
89      *    super.m_LCShape_Type = "ImageButton";
90      * </pre>
91      * Then <CODE>super.initialize()</CODE> was called.
92      * @param tParam the test parameter
93      * @param log the log writer
94      */
95 
96     protected void initialize(TestParameters tParam, PrintWriter log) {
97 
98         super.initialize(tParam, log);
99 
100         super.m_kindOfControl="ImageButton";
101 
102         super.m_ObjectName = "stardiv.one.form.component.ImageButton";
103 
104         super.m_LCShape_Type = "ImageButton";
105 
106     }
107     /**
108      * calls <CODE>cleanup()</CODE> from it's super class
109      * @param tParam the test parameter
110      * @param log the log writer
111      */
112     protected void cleanup(TestParameters tParam, PrintWriter log) {
113         super.cleanup(tParam, log);
114     }
115 
116 
117     /**
118      * calls <CODE>createTestEnvironment()</CODE> from it's super class
119      * @param Param the test parameter
120      * @param log the log writer
121      * @return lib.TestEnvironment
122      */
123     protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
124                                                                  PrintWriter log) {
125         return super.createTestEnvironment(Param, log);
126     }
127 
128 } // finish class OImageButtonModel
129