tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / qadevOOo / tests / java / ifc / awt / _UnoControlCurrencyFieldModel.java
blob5698cab3f363f909b4d5326bd84df673315c263e
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 @Override
58 protected Object getNewValue(String prop, Object old) {
59 return utils.isVoid(old) ? Integer.valueOf(6543) : null ;
61 }) ;
64 /**
65 * This property can be void, so if old value is <code> null </code>
66 * new value must be specified.
68 public void _Tabstop() {
69 testProperty("Tabstop", new PropertyTester() {
70 @Override
71 protected Object getNewValue(String prop, Object old) {
72 return utils.isVoid(old) ? Boolean.TRUE : null ;
74 }) ;
77 /**
78 * This property can be VOID, and in case if it is so new
79 * value must defined.
81 public void _BorderColor() {
82 testProperty("BorderColor", new PropertyTester() {
83 @Override
84 protected Object getNewValue(String p, Object old) {
85 return utils.isVoid(old) ? Integer.valueOf(1234) : null ;
87 }) ;
90 /**
91 * This property can be void, so if old value is <code> null </code>
92 * new value must be specified.
94 public void _TextColor() {
95 testProperty("TextColor", new PropertyTester() {
96 @Override
97 protected Object getNewValue(String prop, Object old) {
98 return utils.isVoid(old) ? Integer.valueOf(123) : null ;
100 }) ;
104 * This property can be void, so if old value is <code> null </code>
105 * new value must be specified.
107 public void _TextLineColor() {
108 testProperty("TextLineColor", new PropertyTester() {
109 @Override
110 protected Object getNewValue(String prop, Object old) {
111 return utils.isVoid(old) ? Integer.valueOf(123) : null ;
113 }) ;
117 * This property can be void, so if old value is <code> null </code>
118 * new value must be specified.
120 public void _Value() {
121 testProperty("Value", new PropertyTester() {
122 @Override
123 protected Object getNewValue(String prop, Object old) {
124 return utils.isVoid(old) ? Double.valueOf(777) :
125 super.getNewValue(prop, old) ;
127 }) ;