1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 package ifc.awt; 25 26 import lib.MultiPropertyTest; 27 import util.utils; 28 29 /** 30 * Testing <code>com.sun.star.awt.UnoControlScrollBarModel</code> 31 * service properties : 32 * <ul> 33 * <li><code> BlockIncrement</code></li> 34 * <li><code> Border</code></li> 35 * <li><code> DefaultControl</code></li> 36 * <li><code> Enabled</code></li> 37 * <li><code> HelpText</code></li> 38 * <li><code> HelpURL</code></li> 39 * <li><code> LineIncrement</code></li> 40 * <li><code> Orientation</code></li> 41 * <li><code> Printable</code></li> 42 * <li><code> ScrollValue</code></li> 43 * <li><code> ScrollValueMax</code></li> 44 * <li><code> VisibleSize</code></li> 45 * </ul> <p> 46 * Properties testing is automated by <code>lib.MultiPropertyTest</code>. 47 * @see com.sun.star.awt.UnoControlScrollBarModel 48 */ 49 public class _UnoControlScrollBarModel extends MultiPropertyTest { 50 51 /** 52 * This property can be VOID, and in case if it is so new 53 * value must defined. 54 */ _BackgroundColor()55 public void _BackgroundColor() { 56 testProperty("BackgroundColor", new PropertyTester() { 57 protected Object getNewValue(String p, Object old) { 58 return utils.isVoid(old) ? new Integer(32768) : null ; 59 } 60 }) ; 61 } 62 63 /** 64 * This property can be VOID, and in case if it is so new 65 * value must defined. 66 */ _BorderColor()67 public void _BorderColor() { 68 testProperty("BorderColor", new PropertyTester() { 69 protected Object getNewValue(String p, Object old) { 70 return utils.isVoid(old) ? new Integer(1234) : null ; 71 } 72 }) ; 73 } 74 75 /** 76 * This property can be VOID, and in case if it is so new 77 * value must defined. 78 */ _SymbolColor()79 public void _SymbolColor() { 80 testProperty("SymbolColor", new PropertyTester() { 81 protected Object getNewValue(String p, Object old) { 82 return utils.isVoid(old) ? new Integer(65324) : null ; 83 } 84 }) ; 85 } 86 87 /** 88 * This property can be VOID, and in case if it is so new 89 * value must defined. 90 */ _ScrollValue()91 public void _ScrollValue() { 92 testProperty("ScrollValue", new PropertyTester() { 93 protected Object getNewValue(String p, Object old) { 94 return utils.isVoid(old) ? new Integer(10) : new Integer(15) ; 95 } 96 }) ; 97 } 98 99 /** 100 * This property can be VOID, and in case if it is so new 101 * value must defined. 102 */ _VisibleSize()103 public void _VisibleSize() { 104 testProperty("VisibleSize", new PropertyTester() { 105 protected Object getNewValue(String p, Object old) { 106 return utils.isVoid(old) ? new Integer(10) : null ; 107 } 108 }) ; 109 } 110 } 111 112