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 28 package mod._forms; 29 30 import java.io.PrintWriter; 31 import lib.TestEnvironment; 32 import lib.TestParameters; 33 34 /** 35 * Test for object which is represented by service 36 * <code>com.sun.star.com.sun.star.form.component.CommandButton</code>. 37 * <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::XImageProducerSupplier</code></li> 44 * <li> <code>com::sun::star::form::FormComponent</code></li> 45 * <li> <code>com::sun::star::beans::XPropertyAccess</code></li> 46 * <li> <code>com::sun::star::beans::XPropertyContainer</code></li> 47 * <li> <code>com::sun::star::beans::XPropertySet</code></li> 48 * <li> <code>com::sun::star::beans::XFastPropertySet</code></li> 49 * <li> <code>com::sun::star::beans::XPropertyState</code></li> 50 * <li> <code>com::sun::star::awt::UnoControlButtonModel</code></li> 51 * <li> <code>com::sun::star::form::component::CommandButton</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::lang::XComponent</code></li> 55 * </ul> 56 * This object test <b> is NOT </b> designed to be run in several 57 * threads concurently. 58 * 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.XImageProducerSupplier 63 * @see com.sun.star.form.FormComponent 64 * @see com.sun.star.beans.XPropertyAccess 65 * @see com.sun.star.beans.XPropertyContainer 66 * @see com.sun.star.beans.XPropertySet 67 * @see com.sun.star.beans.XFastPropertySet 68 * @see com.sun.star.beans.XPropertyState 69 * @see com.sun.star.awt.UnoControlButtonModel 70 * @see com.sun.star.form.component.CommandButton 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.form._FormControlModel 77 * @see ifc.form._XImageProducerSupplier 78 * @see ifc.form._FormComponent 79 * @see ifc.beans._XPropertySet 80 * @see ifc.beans._XFastPropertySet 81 * @see ifc.beans._XPropertyState 82 * @see ifc.awt._UnoControlButtonModel 83 * @see ifc.form.component._CommandButton 84 * @see ifc.container._XNamed 85 * @see ifc.beans._XMultiPropertySet 86 * @see ifc.lang._XComponent 87 */ 88 public class OButtonModel extends GenericModelTest { 89 90 /** 91 * Set some member variable of the super class <CODE>GenericModelTest</CODE>: 92 * <pre> 93 * super.m_kindOfControl="CommandButton"; 94 * super.m_ObjectName = "com.sun.star.form.component.CommandButton"; 95 * super.m_LCShape_Type = "CommandButton"; 96 * </pre> 97 * Then <CODE>super.initialize()</CODE> was called. 98 * @param tParam the test parameter 99 * @param log the log writer 100 */ 101 102 protected void initialize(TestParameters tParam, PrintWriter log) { 103 104 super.initialize(tParam, log); 105 106 super.m_kindOfControl="CommandButton"; 107 108 super.m_ObjectName = "stardiv.one.form.component.CommandButton"; 109 110 super.m_LCShape_Type = "CommandButton"; 111 112 } 113 /** 114 * calls <CODE>cleanup()</CODE> from it's super class 115 * @param tParam the test parameter 116 * @param log the log writer 117 */ 118 protected void cleanup(TestParameters tParam, PrintWriter log) { 119 super.cleanup(tParam, log); 120 } 121 122 123 /** 124 * calls <CODE>createTestEnvironment()</CODE> from it's super class 125 * @param Param the test parameter 126 * @param log the log writer 127 * @return lib.TestEnvironment 128 */ 129 protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, 130 PrintWriter log) { 131 return super.createTestEnvironment(Param, log); 132 } 133 134 } // finish class OButtonModelold 135