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 import lib.TestEnvironment; 31 import lib.TestParameters; 32 33 /** 34 * Test for object which is represented by service 35 * <code>com.sun.star.form.component.ImageButton</code>. <p> 36 * Object implements the following interfaces : 37 * <ul> 38 * <li> <code>com::sun::star::io::XPersistObject</code></li> 39 * <li> <code>com::sun::star::container::XChild</code></li> 40 * <li> <code>com::sun::star::awt::UnoControlImageControlModel</code></li> 41 * <li> <code>com::sun::star::form::FormControlModel</code></li> 42 * <li> <code>com::sun::star::form::FormComponent</code></li> 43 * <li> <code>com::sun::star::form::XImageProducerSupplier</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::form::component::ImageButton</code></li> 50 * <li> <code>com::sun::star::container::XNamed</code></li> 51 * <li> <code>com::sun::star::beans::XMultiPropertySet</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.awt.UnoControlImageControlModel 59 * @see com.sun.star.form.FormControlModel 60 * @see com.sun.star.form.FormComponent 61 * @see com.sun.star.form.XImageProducerSupplier 62 * @see com.sun.star.beans.XPropertyAccess 63 * @see com.sun.star.beans.XPropertyContainer 64 * @see com.sun.star.beans.XPropertySet 65 * @see com.sun.star.beans.XFastPropertySet 66 * @see com.sun.star.beans.XPropertyState 67 * @see com.sun.star.form.component.ImageButton 68 * @see com.sun.star.container.XNamed 69 * @see com.sun.star.beans.XMultiPropertySet 70 * @see com.sun.star.lang.XComponent 71 * @see ifc.io._XPersistObject 72 * @see ifc.container._XChild 73 * @see ifc.awt._UnoControlImageControlModel 74 * @see ifc.form._FormControlModel 75 * @see ifc.form._FormComponent 76 * @see ifc.form._XImageProducerSupplier 77 * @see ifc.beans._XPropertySet 78 * @see ifc.beans._XFastPropertySet 79 * @see ifc.beans._XPropertyState 80 * @see ifc.form.component._ImageButton 81 * @see ifc.container._XNamed 82 * @see ifc.beans._XMultiPropertySet 83 * @see ifc.lang._XComponent 84 */ 85 86 public class OImageButtonModel extends GenericModelTest { 87 88 /** 89 * Set some member variable of the super class <CODE>GenericModelTest</CODE>: 90 * <pre> 91 * super.m_kindOfControl="ImageButton"; 92 * super.m_ObjectName = "stardiv.one.form.component.ImageButton"; 93 * super.m_LCShape_Type = "ImageButton"; 94 * </pre> 95 * Then <CODE>super.initialize()</CODE> was called. 96 * @param tParam the test parameter 97 * @param log the log writer 98 */ 99 100 protected void initialize(TestParameters tParam, PrintWriter log) { 101 102 super.initialize(tParam, log); 103 104 super.m_kindOfControl="ImageButton"; 105 106 super.m_ObjectName = "stardiv.one.form.component.ImageButton"; 107 108 super.m_LCShape_Type = "ImageButton"; 109 110 } 111 /** 112 * calls <CODE>cleanup()</CODE> from it's super class 113 * @param tParam the test parameter 114 * @param log the log writer 115 */ 116 protected void cleanup(TestParameters tParam, PrintWriter log) { 117 super.cleanup(tParam, log); 118 } 119 120 121 /** 122 * calls <CODE>createTestEnvironment()</CODE> from it's super class 123 * @param Param the test parameter 124 * @param log the log writer 125 * @return lib.TestEnvironment 126 */ 127 protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, 128 PrintWriter log) { 129 return super.createTestEnvironment(Param, log); 130 } 131 132 } // finish class OImageButtonModel 133