1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: OImageButtonModel.java,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 import java
.io
.PrintWriter
;
33 import lib
.TestEnvironment
;
34 import lib
.TestParameters
;
37 * Test for object which is represented by service
38 * <code>com.sun.star.form.component.ImageButton</code>. <p>
39 * Object implements the following interfaces :
41 * <li> <code>com::sun::star::io::XPersistObject</code></li>
42 * <li> <code>com::sun::star::container::XChild</code></li>
43 * <li> <code>com::sun::star::awt::UnoControlImageControlModel</code></li>
44 * <li> <code>com::sun::star::form::FormControlModel</code></li>
45 * <li> <code>com::sun::star::form::FormComponent</code></li>
46 * <li> <code>com::sun::star::form::XImageProducerSupplier</code></li>
47 * <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
48 * <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
49 * <li> <code>com::sun::star::beans::XPropertySet</code></li>
50 * <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
51 * <li> <code>com::sun::star::beans::XPropertyState</code></li>
52 * <li> <code>com::sun::star::form::component::ImageButton</code></li>
53 * <li> <code>com::sun::star::container::XNamed</code></li>
54 * <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
55 * <li> <code>com::sun::star::lang::XComponent</code></li>
57 * This object test <b> is NOT </b> designed to be run in several
58 * threads concurently.
59 * @see com.sun.star.io.XPersistObject
60 * @see com.sun.star.container.XChild
61 * @see com.sun.star.awt.UnoControlImageControlModel
62 * @see com.sun.star.form.FormControlModel
63 * @see com.sun.star.form.FormComponent
64 * @see com.sun.star.form.XImageProducerSupplier
65 * @see com.sun.star.beans.XPropertyAccess
66 * @see com.sun.star.beans.XPropertyContainer
67 * @see com.sun.star.beans.XPropertySet
68 * @see com.sun.star.beans.XFastPropertySet
69 * @see com.sun.star.beans.XPropertyState
70 * @see com.sun.star.form.component.ImageButton
71 * @see com.sun.star.container.XNamed
72 * @see com.sun.star.beans.XMultiPropertySet
73 * @see com.sun.star.lang.XComponent
74 * @see ifc.io._XPersistObject
75 * @see ifc.container._XChild
76 * @see ifc.awt._UnoControlImageControlModel
77 * @see ifc.form._FormControlModel
78 * @see ifc.form._FormComponent
79 * @see ifc.form._XImageProducerSupplier
80 * @see ifc.beans._XPropertySet
81 * @see ifc.beans._XFastPropertySet
82 * @see ifc.beans._XPropertyState
83 * @see ifc.form.component._ImageButton
84 * @see ifc.container._XNamed
85 * @see ifc.beans._XMultiPropertySet
86 * @see ifc.lang._XComponent
89 public class OImageButtonModel
extends GenericModelTest
{
92 * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
94 * super.m_kindOfControl="ImageButton";
95 * super.m_ObjectName = "stardiv.one.form.component.ImageButton";
96 * super.m_LCShape_Type = "ImageButton";
98 * Then <CODE>super.initialize()</CODE> was called.
99 * @param tParam the test parameter
100 * @param log the log writer
103 protected void initialize(TestParameters tParam
, PrintWriter log
) {
105 super.initialize(tParam
, log
);
107 super.m_kindOfControl
="ImageButton";
109 super.m_ObjectName
= "stardiv.one.form.component.ImageButton";
111 super.m_LCShape_Type
= "ImageButton";
115 * calls <CODE>cleanup()</CODE> from it's super class
116 * @param tParam the test parameter
117 * @param log the log writer
119 protected void cleanup(TestParameters tParam
, PrintWriter log
) {
120 super.cleanup(tParam
, log
);
125 * calls <CODE>createTestEnvironment()</CODE> from it's super class
126 * @param Param the test parameter
127 * @param log the log writer
128 * @return lib.TestEnvironment
130 protected synchronized TestEnvironment
createTestEnvironment(TestParameters Param
,
132 return super.createTestEnvironment(Param
, log
);
135 } // finish class OImageButtonModel