Update ooo320-m1
[ooovba.git] / qadevOOo / tests / java / ifc / awt / _UnoControlTimeFieldModel.java
blobf6019ef6f69f55eb56a72a7668f1ad87ee968822
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: _UnoControlTimeFieldModel.java,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 package ifc.awt;
33 import lib.MultiPropertyTest;
34 import util.utils;
37 /**
38 * Testing <code>com.sun.star.awt.UnoControlTimeFieldModel</code>
39 * service properties :
40 * <ul>
41 * <li><code> BackgroundColor</code></li>
42 * <li><code> Border</code></li>
43 * <li><code> HelpText</code></li>
44 * <li><code> HelpURL</code></li>
45 * <li><code> FontEmphasisMark</code></li>
46 * <li><code> FontRelief</code></li>
47 * <li><code> Enabled</code></li>
48 * <li><code> TimeFormat</code></li>
49 * <li><code> FontDescriptor</code></li>
50 * <li><code> Printable</code></li>
51 * <li><code> ReadOnly</code></li>
52 * <li><code> Spin</code></li>
53 * <li><code> StrictFormat</code></li>
54 * <li><code> Tabstop</code></li>
55 * <li><code> TextColor</code></li>
56 * <li><code> TextLineColor</code></li>
57 * <li><code> Time</code></li>
58 * <li><code> TimeFormat</code></li>
59 * <li><code> TimeMax</code></li>
60 * <li><code> TimeMin</code></li>
61 * </ul> <p>
62 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
63 * @see com.sun.star.awt.UnoControlTimeFieldModel
65 public class _UnoControlTimeFieldModel extends MultiPropertyTest {
67 /**
68 * This property can be VOID, and in case if it is so new
69 * value must defined.
71 public void _BackgroundColor() {
72 testProperty("BackgroundColor", new PropertyTester() {
73 protected Object getNewValue(String p, Object old) {
74 return utils.isVoid(old) ? new Integer(1234) : null ;
76 }) ;
79 /**
80 * This property can be VOID, and in case if it is so new
81 * value must defined.
83 public void _BorderColor() {
84 testProperty("BorderColor", new PropertyTester() {
85 protected Object getNewValue(String p, Object old) {
86 return utils.isVoid(old) ? new Integer(1234) : null ;
88 }) ;
91 /**
92 * This property can be VOID, and in case if it is so new
93 * value must defined.
95 public void _TextColor() {
96 testProperty("TextColor", new PropertyTester() {
97 protected Object getNewValue(String p, Object old) {
98 return utils.isVoid(old) ? new Integer(4321) : null ;
100 }) ;
104 * This property can be VOID, and in case if it is so new
105 * value must defined.
107 public void _TextLineColor() {
108 testProperty("TextLineColor", new PropertyTester() {
109 protected Object getNewValue(String p, Object old) {
110 return utils.isVoid(old) ? new Integer(4321) : null ;
112 }) ;
116 * This property can be VOID, and in case if it is so new
117 * value must defined.
119 public void _Time() {
120 testProperty("Time", new PropertyTester() {
121 protected Object getNewValue(String p, Object old) {
122 return utils.isVoid(old) ? new Integer(4321) :
123 super.getNewValue(p, old) ;
125 }) ;
129 * This property can be VOID, and in case if it is so new
130 * value must defined.
132 public void _Tabstop() {
133 testProperty("Tabstop", new PropertyTester() {
134 protected Object getNewValue(String p, Object old) {
135 return utils.isVoid(old) ? new Boolean(true) : null ;
137 }) ;