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 public class ONavigationBarModel extends GenericModelTest { 35 36 /** 37 * Set some member variable of the super class <CODE>GenericModelTest</CODE>: 38 * <pre> 39 * super.m_kindOfControl="NavigationToolBar"; 40 * super.m_ObjectName = "om.sun.star.form.component.NavigationToolBar"; 41 * super.m_LCShape_Type = "NavigationToolBar"; 42 * </pre> 43 * Then <CODE>super.initialize()</CODE> was called. 44 * @param tParam the test parameter 45 * @param log the log writer 46 */ 47 48 protected void initialize(TestParameters tParam, PrintWriter log) { 49 50 super.initialize(tParam, log); 51 52 super.m_kindOfControl="NavigationToolBar"; 53 54 super.m_ObjectName = "com.sun.star.form.component.NavigationToolBar"; 55 56 super.m_LCShape_Type = "NavigationToolBar"; 57 58 } 59 /** 60 * calls <CODE>cleanup()</CODE> from it's super class 61 * @param tParam the test parameter 62 * @param log the log writer 63 */ 64 protected void cleanup(TestParameters tParam, PrintWriter log) { 65 super.cleanup(tParam, log); 66 } 67 68 69 /** 70 * calls <CODE>createTestEnvironment()</CODE> from it's super class 71 * @param Param the test parameter 72 * @param log the log writer 73 * @return lib.TestEnvironment 74 */ 75 protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, 76 PrintWriter log) { 77 return super.createTestEnvironment(Param, log); 78 } 79 80 } // finish class ONavigationBarModel 81 82