1*ef39d40dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*ef39d40dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ef39d40dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ef39d40dSAndrew Rist * distributed with this work for additional information 6*ef39d40dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ef39d40dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ef39d40dSAndrew Rist * "License"); you may not use this file except in compliance 9*ef39d40dSAndrew Rist * with the License. You may obtain a copy of the License at 10*ef39d40dSAndrew Rist * 11*ef39d40dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ef39d40dSAndrew Rist * 13*ef39d40dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ef39d40dSAndrew Rist * software distributed under the License is distributed on an 15*ef39d40dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ef39d40dSAndrew Rist * KIND, either express or implied. See the License for the 17*ef39d40dSAndrew Rist * specific language governing permissions and limitations 18*ef39d40dSAndrew Rist * under the License. 19*ef39d40dSAndrew Rist * 20*ef39d40dSAndrew Rist *************************************************************/ 21*ef39d40dSAndrew Rist 22*ef39d40dSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir package ifc.awt; 25cdf0e10cSrcweir 26cdf0e10cSrcweir import lib.MultiMethodTest; 27cdf0e10cSrcweir import lib.Status; 28cdf0e10cSrcweir 29cdf0e10cSrcweir import com.sun.star.awt.XControl; 30cdf0e10cSrcweir import com.sun.star.awt.XControlContainer; 31cdf0e10cSrcweir import com.sun.star.awt.XTabController; 32cdf0e10cSrcweir import com.sun.star.awt.XTabControllerModel; 33cdf0e10cSrcweir 34cdf0e10cSrcweir /** 35cdf0e10cSrcweir * This interface is DEPRECATED !!! 36cdf0e10cSrcweir * All test results are SKIPPED.OK now. 37cdf0e10cSrcweir * Testing <code>com.sun.star.awt.XTabController</code> 38cdf0e10cSrcweir * interface methods : 39cdf0e10cSrcweir * <ul> 40cdf0e10cSrcweir * <li><code> activateFirst()</code></li> 41cdf0e10cSrcweir * <li><code> activateLast()</code></li> 42cdf0e10cSrcweir * <li><code> activateTabOrder()</code></li> 43cdf0e10cSrcweir * <li><code> autoTabOrder()</code></li> 44cdf0e10cSrcweir * <li><code> getContainer()</code></li> 45cdf0e10cSrcweir * <li><code> getCotrols()</code></li> 46cdf0e10cSrcweir * <li><code> getModel()</code></li> 47cdf0e10cSrcweir * <li><code> setContainer()</code></li> 48cdf0e10cSrcweir * <li><code> setModel()</code></li> 49cdf0e10cSrcweir * </ul><p> 50cdf0e10cSrcweir * This test needs the following object relations : 51cdf0e10cSrcweir * <ul> 52cdf0e10cSrcweir * <li> <code>'MODEL'</code> : <code>XTabControllerModel</code> a model for 53cdf0e10cSrcweir * the object</li> 54cdf0e10cSrcweir * <li> <code>'CONTAINER'</code> : <code>XControlContainer</code> a container 55cdf0e10cSrcweir * for the object</li> 56cdf0e10cSrcweir * <ul> <p> 57cdf0e10cSrcweir * @see com.sun.star.awt.XTabController 58cdf0e10cSrcweir */ 59cdf0e10cSrcweir public class _XTabController extends MultiMethodTest { 60cdf0e10cSrcweir public XTabController oObj = null; 61cdf0e10cSrcweir 62cdf0e10cSrcweir /** 63cdf0e10cSrcweir * Test calls the method with object relation 'MODEL' as a parameter.<p> 64cdf0e10cSrcweir * Has <b> OK </b> status if the method successfully returns 65cdf0e10cSrcweir * and no exceptions were thrown. <p> 66cdf0e10cSrcweir */ _setModel()67cdf0e10cSrcweir public void _setModel() { 68cdf0e10cSrcweir oObj.setModel( (XTabControllerModel) tEnv.getObjRelation("MODEL")); 69cdf0e10cSrcweir tRes.tested("setModel()", Status.skipped(true) ); 70cdf0e10cSrcweir } 71cdf0e10cSrcweir 72cdf0e10cSrcweir /** 73cdf0e10cSrcweir * Test calls the method, then checks returned value.<p> 74cdf0e10cSrcweir * Has <b> OK </b> status if method returns a value that equals to 75cdf0e10cSrcweir * corresponding object relation.<p> 76cdf0e10cSrcweir * The following method tests are to be completed successfully before : 77cdf0e10cSrcweir * <ul> 78cdf0e10cSrcweir * <li> <code> setModel() </code> : sets model for the object </li> 79cdf0e10cSrcweir * </ul> 80cdf0e10cSrcweir */ _getModel()81cdf0e10cSrcweir public void _getModel() { 82cdf0e10cSrcweir requiredMethod("setModel()"); 83cdf0e10cSrcweir XTabControllerModel setModel = oObj.getModel(); 84cdf0e10cSrcweir tRes.tested("getModel()", Status.skipped(true)); 85cdf0e10cSrcweir } 86cdf0e10cSrcweir 87cdf0e10cSrcweir /** 88cdf0e10cSrcweir * Test calls the method with object relation 'CONTAINER' as a parameter.<p> 89cdf0e10cSrcweir * Has <b> OK </b> status if the method successfully returns 90cdf0e10cSrcweir * and no exceptions were thrown. <p> 91cdf0e10cSrcweir */ _setContainer()92cdf0e10cSrcweir public void _setContainer() { 93cdf0e10cSrcweir oObj.setContainer( (XControlContainer) 94cdf0e10cSrcweir tEnv.getObjRelation("CONTAINER")); 95cdf0e10cSrcweir tRes.tested("setContainer()", Status.skipped(true)); 96cdf0e10cSrcweir } 97cdf0e10cSrcweir 98cdf0e10cSrcweir /** 99cdf0e10cSrcweir * Test calls the method, then checks returned value.<p> 100cdf0e10cSrcweir * Has <b> OK </b> status if method returns a value that equals to 101cdf0e10cSrcweir * corresponding object relation.<p> 102cdf0e10cSrcweir * The following method tests are to be completed successfully before : 103cdf0e10cSrcweir * <ul> 104cdf0e10cSrcweir * <li> <code> setContainer() </code> : sets container for the object</li> 105cdf0e10cSrcweir * </ul> 106cdf0e10cSrcweir */ _getContainer()107cdf0e10cSrcweir public void _getContainer() { 108cdf0e10cSrcweir requiredMethod( "setContainer()"); 109cdf0e10cSrcweir XControlContainer setContainer = oObj.getContainer(); 110cdf0e10cSrcweir XControlContainer relContainer = (XControlContainer ) 111cdf0e10cSrcweir tEnv.getObjRelation("CONTAINER"); 112cdf0e10cSrcweir tRes.tested("getContainer()", Status.skipped(true) ); 113cdf0e10cSrcweir } 114cdf0e10cSrcweir 115cdf0e10cSrcweir /** 116cdf0e10cSrcweir * Test calls the method, then checks returned sequence.<p> 117cdf0e10cSrcweir * Has <b> OK </b> status if returned sequence is not null.<p> 118cdf0e10cSrcweir */ _getControls()119cdf0e10cSrcweir public void _getControls() { 120cdf0e10cSrcweir XControl[] aControl = oObj.getControls(); 121cdf0e10cSrcweir tRes.tested("getControls()", Status.skipped(true) ); 122cdf0e10cSrcweir } 123cdf0e10cSrcweir 124cdf0e10cSrcweir /** 125cdf0e10cSrcweir * Test calls the method. <p> 126cdf0e10cSrcweir * Has <b> OK </b> status if the method successfully returns 127cdf0e10cSrcweir * and no exceptions were thrown. <p> 128cdf0e10cSrcweir */ _autoTabOrder()129cdf0e10cSrcweir public void _autoTabOrder() { 130cdf0e10cSrcweir oObj.autoTabOrder(); 131cdf0e10cSrcweir tRes.tested("autoTabOrder()", Status.skipped(true)); 132cdf0e10cSrcweir } 133cdf0e10cSrcweir 134cdf0e10cSrcweir /** 135cdf0e10cSrcweir * Test calls the method. <p> 136cdf0e10cSrcweir * Has <b> OK </b> status if the method successfully returns 137cdf0e10cSrcweir * and no exceptions were thrown. <p> 138cdf0e10cSrcweir */ _activateTabOrder()139cdf0e10cSrcweir public void _activateTabOrder() { 140cdf0e10cSrcweir oObj.activateTabOrder(); 141cdf0e10cSrcweir tRes.tested("activateTabOrder()", Status.skipped(true)); 142cdf0e10cSrcweir } 143cdf0e10cSrcweir 144cdf0e10cSrcweir /** 145cdf0e10cSrcweir * Test calls the method. <p> 146cdf0e10cSrcweir * Has <b> OK </b> status if the method successfully returns 147cdf0e10cSrcweir * and no exceptions were thrown. <p> 148cdf0e10cSrcweir */ _activateFirst()149cdf0e10cSrcweir public void _activateFirst() { 150cdf0e10cSrcweir oObj.activateFirst(); 151cdf0e10cSrcweir tRes.tested("activateFirst()", Status.skipped(true)); 152cdf0e10cSrcweir } 153cdf0e10cSrcweir 154cdf0e10cSrcweir /** 155cdf0e10cSrcweir * Test calls the method. <p> 156cdf0e10cSrcweir * Has <b> OK </b> status if the method successfully returns 157cdf0e10cSrcweir * and no exceptions were thrown. <p> 158cdf0e10cSrcweir */ _activateLast()159cdf0e10cSrcweir public void _activateLast() { 160cdf0e10cSrcweir oObj.activateLast(); 161cdf0e10cSrcweir tRes.tested("activateLast()", Status.skipped(true)); 162cdf0e10cSrcweir } 163cdf0e10cSrcweir } 164cdf0e10cSrcweir 165