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 * Test for object which is represented by service 37 * <code>com.sun.star.form.component.FixedText</code>. <p> 38 * Object implements the following interfaces : 39 * <ul> 40 * <li> <code>com::sun::star::io::XPersistObject</code></li> 41 * <li> <code>com::sun::star::container::XChild</code></li> 42 * <li> <code>com::sun::star::form::FormControlModel</code></li> 43 * <li> <code>com::sun::star::form::FormComponent</code></li> 44 * <li> <code>com::sun::star::beans::XPropertyAccess</code></li> 45 * <li> <code>com::sun::star::beans::XPropertyContainer</code></li> 46 * <li> <code>com::sun::star::beans::XPropertySet</code></li> 47 * <li> <code>com::sun::star::beans::XFastPropertySet</code></li> 48 * <li> <code>com::sun::star::beans::XPropertyState</code></li> 49 * <li> <code>com::sun::star::container::XNamed</code></li> 50 * <li> <code>com::sun::star::beans::XMultiPropertySet</code></li> 51 * <li> <code>com::sun::star::awt::UnoControlFixedTextModel</code></li> 52 * <li> <code>com::sun::star::lang::XComponent</code></li> 53 * </ul> 54 * This object test <b> is NOT </b> designed to be run in several 55 * threads concurently. 56 * @see com.sun.star.io.XPersistObject 57 * @see com.sun.star.container.XChild 58 * @see com.sun.star.form.FormControlModel 59 * @see com.sun.star.form.FormComponent 60 * @see com.sun.star.beans.XPropertyAccess 61 * @see com.sun.star.beans.XPropertyContainer 62 * @see com.sun.star.beans.XPropertySet 63 * @see com.sun.star.beans.XFastPropertySet 64 * @see com.sun.star.beans.XPropertyState 65 * @see com.sun.star.container.XNamed 66 * @see com.sun.star.beans.XMultiPropertySet 67 * @see com.sun.star.awt.UnoControlFixedTextModel 68 * @see com.sun.star.lang.XComponent 69 * @see ifc.io._XPersistObject 70 * @see ifc.container._XChild 71 * @see ifc.form._FormControlModel 72 * @see ifc.form._FormComponent 73 * @see ifc.beans._XPropertySet 74 * @see ifc.beans._XFastPropertySet 75 * @see ifc.beans._XPropertyState 76 * @see ifc.container._XNamed 77 * @see ifc.beans._XMultiPropertySet 78 * @see ifc.awt._UnoControlFixedTextModel 79 * @see ifc.lang._XComponent 80 */ 81 82 public class OFixedTextModel extends GenericModelTest { 83 84 /** 85 * Set some member variable of the super class <CODE>GenericModelTest</CODE>: 86 * <pre> 87 * super.m_kindOfControl="CommandButton"; 88 * super.m_ObjectName = "com.sun.star.form.component.CommandButton"; 89 * super.m_LCShape_Type = "CommandButton"; 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="FixedText"; 101 102 super.m_ObjectName = "stardiv.one.form.component.FixedText"; 103 104 super.m_LCShape_Type = "FixedText"; 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 OFixedTextModel 129