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.UnoControlProgressBarModel</code> 31 * service properties : 32 * <ul> 33 * <li><code> BackgroundColor</code></li> 34 * <li><code> Border</code></li> 35 * <li><code> DefaultControl</code></li> 36 * <li><code> Enabled</code></li> 37 * <li><code> FillColor</code></li> 38 * <li><code> HelpText</code></li> 39 * <li><code> HelpURL</code></li> 40 * <li><code> Printable</code></li> 41 * <li><code> ProgressValue</code></li> 42 * <li><code> ProgressValueMax</code></li> 43 * <li><code> ProgressValueMin</code></li> 44 * </ul> <p> 45 * Properties testing is automated by <code>lib.MultiPropertyTest</code>. 46 * @see com.sun.star.awt.UnoControlProgressBarModel 47 */ 48 public class _UnoControlProgressBarModel extends MultiPropertyTest { 49 50 /** 51 * This property can be VOID, and in case if it is so new 52 * value must defined. 53 */ _BackgroundColor()54 public void _BackgroundColor() { 55 testProperty("BackgroundColor", new PropertyTester() { 56 protected Object getNewValue(String p, Object old) { 57 return utils.isVoid(old) ? new Integer(1234) : null ; 58 } 59 }) ; 60 } 61 62 /** 63 * This property can be VOID, and in case if it is so new 64 * value must defined. 65 */ _FillColor()66 public void _FillColor() { 67 testProperty("FillColor", new PropertyTester() { 68 protected Object getNewValue(String p, Object old) { 69 return utils.isVoid(old) ? new Integer(4321) : null ; 70 } 71 }) ; 72 } 73 74 /** 75 * This property can be VOID, and in case if it is so new 76 * value must defined. 77 */ _ProgressValue()78 public void _ProgressValue() { 79 testProperty("ProgressValue", new PropertyTester() { 80 protected Object getNewValue(String p, Object old) { 81 return utils.isVoid(old) ? new Integer(10) : null ; 82 } 83 }) ; 84 } 85 } 86 87