merge the formfield patch from ooo-build
[ooovba.git] / qadevOOo / tests / java / ifc / awt / _XTabController.java
blobc55fb43730eac9d38abd59f51b96cb4d0c3b5d8c
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: _XTabController.java,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
31 package ifc.awt;
33 import lib.MultiMethodTest;
34 import lib.Status;
36 import com.sun.star.awt.XControl;
37 import com.sun.star.awt.XControlContainer;
38 import com.sun.star.awt.XTabController;
39 import com.sun.star.awt.XTabControllerModel;
41 /**
42 * This interface is DEPRECATED !!!
43 * All test results are SKIPPED.OK now.
44 * Testing <code>com.sun.star.awt.XTabController</code>
45 * interface methods :
46 * <ul>
47 * <li><code> activateFirst()</code></li>
48 * <li><code> activateLast()</code></li>
49 * <li><code> activateTabOrder()</code></li>
50 * <li><code> autoTabOrder()</code></li>
51 * <li><code> getContainer()</code></li>
52 * <li><code> getCotrols()</code></li>
53 * <li><code> getModel()</code></li>
54 * <li><code> setContainer()</code></li>
55 * <li><code> setModel()</code></li>
56 * </ul><p>
57 * This test needs the following object relations :
58 * <ul>
59 * <li> <code>'MODEL'</code> : <code>XTabControllerModel</code> a model for
60 * the object</li>
61 * <li> <code>'CONTAINER'</code> : <code>XControlContainer</code> a container
62 * for the object</li>
63 * <ul> <p>
64 * @see com.sun.star.awt.XTabController
66 public class _XTabController extends MultiMethodTest {
67 public XTabController oObj = null;
69 /**
70 * Test calls the method with object relation 'MODEL' as a parameter.<p>
71 * Has <b> OK </b> status if the method successfully returns
72 * and no exceptions were thrown. <p>
74 public void _setModel() {
75 oObj.setModel( (XTabControllerModel) tEnv.getObjRelation("MODEL"));
76 tRes.tested("setModel()", Status.skipped(true) );
79 /**
80 * Test calls the method, then checks returned value.<p>
81 * Has <b> OK </b> status if method returns a value that equals to
82 * corresponding object relation.<p>
83 * The following method tests are to be completed successfully before :
84 * <ul>
85 * <li> <code> setModel() </code> : sets model for the object </li>
86 * </ul>
88 public void _getModel() {
89 requiredMethod("setModel()");
90 XTabControllerModel setModel = oObj.getModel();
91 tRes.tested("getModel()", Status.skipped(true));
94 /**
95 * Test calls the method with object relation 'CONTAINER' as a parameter.<p>
96 * Has <b> OK </b> status if the method successfully returns
97 * and no exceptions were thrown. <p>
99 public void _setContainer() {
100 oObj.setContainer( (XControlContainer)
101 tEnv.getObjRelation("CONTAINER"));
102 tRes.tested("setContainer()", Status.skipped(true));
106 * Test calls the method, then checks returned value.<p>
107 * Has <b> OK </b> status if method returns a value that equals to
108 * corresponding object relation.<p>
109 * The following method tests are to be completed successfully before :
110 * <ul>
111 * <li> <code> setContainer() </code> : sets container for the object</li>
112 * </ul>
114 public void _getContainer() {
115 requiredMethod( "setContainer()");
116 XControlContainer setContainer = oObj.getContainer();
117 XControlContainer relContainer = (XControlContainer )
118 tEnv.getObjRelation("CONTAINER");
119 tRes.tested("getContainer()", Status.skipped(true) );
123 * Test calls the method, then checks returned sequence.<p>
124 * Has <b> OK </b> status if returned sequence is not null.<p>
126 public void _getControls() {
127 XControl[] aControl = oObj.getControls();
128 tRes.tested("getControls()", Status.skipped(true) );
132 * Test calls the method. <p>
133 * Has <b> OK </b> status if the method successfully returns
134 * and no exceptions were thrown. <p>
136 public void _autoTabOrder() {
137 oObj.autoTabOrder();
138 tRes.tested("autoTabOrder()", Status.skipped(true));
142 * Test calls the method. <p>
143 * Has <b> OK </b> status if the method successfully returns
144 * and no exceptions were thrown. <p>
146 public void _activateTabOrder() {
147 oObj.activateTabOrder();
148 tRes.tested("activateTabOrder()", Status.skipped(true));
152 * Test calls the method. <p>
153 * Has <b> OK </b> status if the method successfully returns
154 * and no exceptions were thrown. <p>
156 public void _activateFirst() {
157 oObj.activateFirst();
158 tRes.tested("activateFirst()", Status.skipped(true));
162 * Test calls the method. <p>
163 * Has <b> OK </b> status if the method successfully returns
164 * and no exceptions were thrown. <p>
166 public void _activateLast() {
167 oObj.activateLast();
168 tRes.tested("activateLast()", Status.skipped(true));