merge the formfield patch from ooo-build
[ooovba.git] / qadevOOo / tests / java / mod / _forms / OFixedTextModel.java
blob0962a37c30fb06c257047434cef7d9999935b4e4
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: OFixedTextModel.java,v $
10 * $Revision: 1.6 $
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 ************************************************************************/
30 package mod._forms;
32 import java.io.PrintWriter;
34 import lib.TestEnvironment;
35 import lib.TestParameters;
38 /**
39 * Test for object which is represented by service
40 * <code>com.sun.star.form.component.FixedText</code>. <p>
41 * Object implements the following interfaces :
42 * <ul>
43 * <li> <code>com::sun::star::io::XPersistObject</code></li>
44 * <li> <code>com::sun::star::container::XChild</code></li>
45 * <li> <code>com::sun::star::form::FormControlModel</code></li>
46 * <li> <code>com::sun::star::form::FormComponent</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::container::XNamed</code></li>
53 * <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
54 * <li> <code>com::sun::star::awt::UnoControlFixedTextModel</code></li>
55 * <li> <code>com::sun::star::lang::XComponent</code></li>
56 * </ul>
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.form.FormControlModel
62 * @see com.sun.star.form.FormComponent
63 * @see com.sun.star.beans.XPropertyAccess
64 * @see com.sun.star.beans.XPropertyContainer
65 * @see com.sun.star.beans.XPropertySet
66 * @see com.sun.star.beans.XFastPropertySet
67 * @see com.sun.star.beans.XPropertyState
68 * @see com.sun.star.container.XNamed
69 * @see com.sun.star.beans.XMultiPropertySet
70 * @see com.sun.star.awt.UnoControlFixedTextModel
71 * @see com.sun.star.lang.XComponent
72 * @see ifc.io._XPersistObject
73 * @see ifc.container._XChild
74 * @see ifc.form._FormControlModel
75 * @see ifc.form._FormComponent
76 * @see ifc.beans._XPropertySet
77 * @see ifc.beans._XFastPropertySet
78 * @see ifc.beans._XPropertyState
79 * @see ifc.container._XNamed
80 * @see ifc.beans._XMultiPropertySet
81 * @see ifc.awt._UnoControlFixedTextModel
82 * @see ifc.lang._XComponent
85 public class OFixedTextModel extends GenericModelTest {
87 /**
88 * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
89 * <pre>
90 * super.m_kindOfControl="CommandButton";
91 * super.m_ObjectName = "com.sun.star.form.component.CommandButton";
92 * super.m_LCShape_Type = "CommandButton";
93 * </pre>
94 * Then <CODE>super.initialize()</CODE> was called.
95 * @param tParam the test parameter
96 * @param log the log writer
99 protected void initialize(TestParameters tParam, PrintWriter log) {
101 super.initialize(tParam, log);
103 super.m_kindOfControl="FixedText";
105 super.m_ObjectName = "stardiv.one.form.component.FixedText";
107 super.m_LCShape_Type = "FixedText";
111 * calls <CODE>cleanup()</CODE> from it's super class
112 * @param tParam the test parameter
113 * @param log the log writer
115 protected void cleanup(TestParameters tParam, PrintWriter log) {
116 super.cleanup(tParam, log);
121 * calls <CODE>createTestEnvironment()</CODE> from it's super class
122 * @param Param the test parameter
123 * @param log the log writer
124 * @return lib.TestEnvironment
126 protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
127 PrintWriter log) {
128 return super.createTestEnvironment(Param, log);
131 } // finish class OFixedTextModel