bump product version to 4.2.0.1
[LibreOffice.git] / qadevOOo / tests / java / ifc / awt / _UnoControlCurrencyFieldModel.java
bloba776520ca430e8772fc8e6f5a248bb8a3557b79d
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 package ifc.awt;
21 import lib.MultiPropertyTest;
22 import util.utils;
24 /**
25 * Testing <code>com.sun.star.awt.UnoControlCurrencyFieldModel</code>
26 * service properties :
27 * <ul>
28 * <li><code> BackgroundColor</code></li>
29 * <li><code> Border</code></li>
30 * <li><code> CurrencySymbol</code></li>
31 * <li><code> DecimalAccuracy</code></li>
32 * <li><code> DefaultControl</code></li>
33 * <li><code> Enabled</code></li>
34 * <li><code> FontDescriptor</code></li>
35 * <li><code> ShowThousandsSeparator</code></li>
36 * <li><code> Printable</code></li>
37 * <li><code> ReadOnly</code></li>
38 * <li><code> Spin</code></li>
39 * <li><code> StrictFormat</code></li>
40 * <li><code> Tabstop</code></li>
41 * <li><code> TextColor</code></li>
42 * <li><code> Value</code></li>
43 * <li><code> ValueMax</code></li>
44 * <li><code> ValueMin</code></li>
45 * <li><code> ValueStep</code></li>
46 * </ul>
47 * @see com.sun.star.awt.UnoControlCurrencyFieldModel
49 public class _UnoControlCurrencyFieldModel extends MultiPropertyTest {
51 /**
52 * This property can be void, so if old value is <code> null </code>
53 * new value must be specified.
55 public void _BackgroundColor() {
56 testProperty("BackgroundColor", new PropertyTester() {
57 protected Object getNewValue(String prop, Object old) {
58 return utils.isVoid(old) ? new Integer(6543) : null ;
60 }) ;
63 /**
64 * This property can be void, so if old value is <code> null </code>
65 * new value must be specified.
67 public void _Tabstop() {
68 testProperty("Tabstop", new PropertyTester() {
69 protected Object getNewValue(String prop, Object old) {
70 return utils.isVoid(old) ? new Boolean(true) : null ;
72 }) ;
75 /**
76 * This property can be VOID, and in case if it is so new
77 * value must defined.
79 public void _BorderColor() {
80 testProperty("BorderColor", new PropertyTester() {
81 protected Object getNewValue(String p, Object old) {
82 return utils.isVoid(old) ? new Integer(1234) : null ;
84 }) ;
87 /**
88 * This property can be void, so if old value is <code> null </code>
89 * new value must be specified.
91 public void _TextColor() {
92 testProperty("TextColor", new PropertyTester() {
93 protected Object getNewValue(String prop, Object old) {
94 return utils.isVoid(old) ? new Integer(123) : null ;
96 }) ;
99 /**
100 * This property can be void, so if old value is <code> null </code>
101 * new value must be specified.
103 public void _TextLineColor() {
104 testProperty("TextLineColor", new PropertyTester() {
105 protected Object getNewValue(String prop, Object old) {
106 return utils.isVoid(old) ? new Integer(123) : null ;
108 }) ;
112 * This property can be void, so if old value is <code> null </code>
113 * new value must be specified.
115 public void _Value() {
116 testProperty("Value", new PropertyTester() {
117 protected Object getNewValue(String prop, Object old) {
118 return utils.isVoid(old) ? new Double(777) :
119 super.getNewValue(prop, old) ;
121 }) ;