xref: /AOO41X/main/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 package mod._forms;
28 
29 import java.io.PrintWriter;
30 
31 import lib.TestEnvironment;
32 import lib.TestParameters;
33 
34 
35 
36 /**
37 * Test for object which is represented by service
38 * <code>com.sun.star.form.component.CheckBox</code>. <p>
39 * Object implements the following interfaces :
40 * <ul>
41 *  <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
42 *  <li> <code>com::sun::star::io::XPersistObject</code></li>
43 *  <li> <code>com::sun::star::form::XReset</code></li>
44 *  <li> <code>com::sun::star::form::FormComponent</code></li>
45 *  <li> <code>com::sun::star::form::component::CheckBox</code></li>
46 *  <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
47 *  <li> <code>com::sun::star::form::DataAwareControlModel</code></li>
48 *  <li> <code>com::sun::star::form::XUpdateBroadcaster</code></li>
49 *  <li> <code>com::sun::star::beans::XPropertyState</code></li>
50 *  <li> <code>com::sun::star::form::FormControlModel</code></li>
51 *  <li> <code>com::sun::star::awt::UnoControlCheckBoxModel</code></li>
52 *  <li> <code>com::sun::star::container::XNamed</code></li>
53 *  <li> <code>com::sun::star::form::XBoundComponent</code></li>
54 *  <li> <code>com::sun::star::lang::XComponent</code></li>
55 *  <li> <code>com::sun::star::lang::XEventListener</code></li>
56 *  <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
57 *  <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
58 *  <li> <code>com::sun::star::beans::XPropertySet</code></li>
59 *  <li> <code>com::sun::star::form::XLoadListener</code></li>
60 *  <li> <code>com::sun::star::container::XChild</code></li>
61 * </ul>
62 * This object test <b> is NOT </b> designed to be run in several
63 * threads concurently.
64 *
65 * @see com.sun.star.beans.XFastPropertySet
66 * @see com.sun.star.io.XPersistObject
67 * @see com.sun.star.form.XReset
68 * @see com.sun.star.form.FormComponent
69 * @see com.sun.star.form.component.CheckBox
70 * @see com.sun.star.beans.XMultiPropertySet
71 * @see com.sun.star.form.DataAwareControlModel
72 * @see com.sun.star.form.XUpdateBroadcaster
73 * @see com.sun.star.beans.XPropertyState
74 * @see com.sun.star.form.FormControlModel
75 * @see com.sun.star.awt.UnoControlCheckBoxModel
76 * @see com.sun.star.container.XNamed
77 * @see com.sun.star.form.XBoundComponent
78 * @see com.sun.star.lang.XComponent
79 * @see com.sun.star.lang.XEventListener
80 * @see com.sun.star.beans.XPropertyAccess
81 * @see com.sun.star.beans.XPropertyContainer
82 * @see com.sun.star.beans.XPropertySet
83 * @see com.sun.star.form.XLoadListener
84 * @see com.sun.star.container.XChild
85 * @see ifc.beans._XFastPropertySet
86 * @see ifc.io._XPersistObject
87 * @see ifc.form._XReset
88 * @see ifc.form._FormComponent
89 * @see ifc.form.component._CheckBox
90 * @see ifc.beans._XMultiPropertySet
91 * @see ifc.form._DataAwareControlModel
92 * @see ifc.form._XUpdateBroadcaster
93 * @see ifc.beans._XPropertyState
94 * @see ifc.form._FormControlModel
95 * @see ifc.awt._UnoControlCheckBoxModel
96 * @see ifc.container._XNamed
97 * @see ifc.form._XBoundComponent
98 * @see ifc.lang._XComponent
99 * @see ifc.lang._XEventListener
100 * @see ifc.beans._XPropertySet
101 * @see ifc.form._XLoadListener
102 * @see ifc.container._XChild
103 */
104 public class OCheckBoxModel extends GenericModelTest {
105 
106     /**
107      * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
108      * <pre>
109      *    super.m_kindOfControl="CheckBox";
110      *    super.m_ObjectName = "stardiv.one.form.component.CheckBox";
111      *    super.m_LCShape_Type = "FixedText";
112      * </pre>
113      * Then <CODE>super.initialize()</CODE> was called.
114      * @param tParam the test parameter
115      * @param log the log writer
116      */
117     protected void initialize(TestParameters tParam, PrintWriter log) {
118 
119         super.initialize(tParam, log);
120 
121         super.m_kindOfControl=  "CheckBox";
122 
123         super.m_ObjectName = "stardiv.one.form.component.CheckBox";
124 
125         super.m_LCShape_Type = "FixedText";
126 
127     }
128     /**
129      * calls <CODE>cleanup()</CODE> from it's super class
130      * @param tParam the test parameter
131      * @param log the log writer
132      */
133     protected void cleanup(TestParameters tParam, PrintWriter log) {
134         super.cleanup(tParam, log);
135     }
136 
137 
138     /**
139      * calls <CODE>createTestEnvironment()</CODE> from it's super class
140      * @param Param the test parameter
141      * @param log the log writer
142      * @return lib.TestEnvironment
143      */
144     protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
145                                                                  PrintWriter log) {
146         return super.createTestEnvironment(Param, log);
147     }
148 }    // finish class OCheckBoxModel
149 
150