1 /*
2  * This file is part of the LibreOffice project.
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  *
8  * This file incorporates work covered by the following license notice:
9  *
10  *   Licensed to the Apache Software Foundation (ASF) under one or more
11  *   contributor license agreements. See the NOTICE file distributed
12  *   with this work for additional information regarding copyright
13  *   ownership. The ASF licenses this file to you under the Apache
14  *   License, Version 2.0 (the "License"); you may not use this file
15  *   except in compliance with the License. You may obtain a copy of
16  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
17  */
18 package mod._forms;
19 
20 import java.io.PrintWriter;
21 import lib.TestParameters;
22 
23 /**
24 * Test for object which is represented by service
25 * <code>com.sun.star.form.component.ImageButton</code>. <p>
26 * Object implements the following interfaces :
27 * <ul>
28 *  <li> <code>com::sun::star::io::XPersistObject</code></li>
29 *  <li> <code>com::sun::star::container::XChild</code></li>
30 *  <li> <code>com::sun::star::awt::UnoControlImageControlModel</code></li>
31 *  <li> <code>com::sun::star::form::FormControlModel</code></li>
32 *  <li> <code>com::sun::star::form::FormComponent</code></li>
33 *  <li> <code>com::sun::star::form::XImageProducerSupplier</code></li>
34 *  <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
35 *  <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
36 *  <li> <code>com::sun::star::beans::XPropertySet</code></li>
37 *  <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
38 *  <li> <code>com::sun::star::beans::XPropertyState</code></li>
39 *  <li> <code>com::sun::star::form::component::ImageButton</code></li>
40 *  <li> <code>com::sun::star::container::XNamed</code></li>
41 *  <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
42 *  <li> <code>com::sun::star::lang::XComponent</code></li>
43 * </ul>
44 * This object test <b> is NOT </b> designed to be run in several
45 * threads concurrently.
46 * @see com.sun.star.io.XPersistObject
47 * @see com.sun.star.container.XChild
48 * @see com.sun.star.awt.UnoControlImageControlModel
49 * @see com.sun.star.form
50 * @see com.sun.star.form.FormComponent
51 * @see com.sun.star.form.XImageProducerSupplier
52 * @see com.sun.star.beans.XPropertyAccess
53 * @see com.sun.star.beans.XPropertyContainer
54 * @see com.sun.star.beans.XPropertySet
55 * @see com.sun.star.beans.XFastPropertySet
56 * @see com.sun.star.beans.XPropertyState
57 * @see com.sun.star.form.component.ImageButton
58 * @see com.sun.star.container.XNamed
59 * @see com.sun.star.beans.XMultiPropertySet
60 * @see com.sun.star.lang.XComponent
61 * @see ifc.io._XPersistObject
62 * @see ifc.container._XChild
63 * @see ifc.awt._UnoControlImageControlModel
64 * @see ifc.form._FormControlModel
65 * @see ifc.form._FormComponent
66 * @see ifc.form._XImageProducerSupplier
67 * @see ifc.beans._XPropertySet
68 * @see ifc.beans._XFastPropertySet
69 * @see ifc.beans._XPropertyState
70 * @see ifc.form.component._ImageButton
71 * @see ifc.container._XNamed
72 * @see ifc.beans._XMultiPropertySet
73 * @see ifc.lang._XComponent
74 */
75 
76 public class OImageButtonModel extends GenericModelTest {
77 
78     /**
79      * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
80      * <pre>
81      *    super.m_kindOfControl="ImageButton";
82      *    super.m_ObjectName = "stardiv.one.form.component.ImageButton";
83      *    super.m_LCShape_Type = "ImageButton";
84      * </pre>
85      * Then <CODE>super.initialize()</CODE> was called.
86      * @param tParam the test parameter
87      * @param log the log writer
88      */
89 
90     @Override
initialize(TestParameters tParam, PrintWriter log)91     protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
92 
93         super.initialize(tParam, log);
94 
95         super.m_kindOfControl="ImageButton";
96 
97         super.m_ObjectName = "stardiv.one.form.component.ImageButton";
98 
99         super.m_LCShape_Type = "ImageButton";
100 
101     }
102 
103 } // finish class OImageButtonModel
104