summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_forms/OTimeModel.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/OTimeModel.java')
-rw-r--r--qadevOOo/tests/java/mod/_forms/OTimeModel.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/OTimeModel.java b/qadevOOo/tests/java/mod/_forms/OTimeModel.java
index de1e17332d7f..e77eff500152 100644
--- a/qadevOOo/tests/java/mod/_forms/OTimeModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OTimeModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -135,20 +135,20 @@ public class OTimeModel extends GenericModelTest {
* @param log the log writer
*/
protected void initialize(TestParameters tParam, PrintWriter log) {
-
+
super.initialize(tParam, log);
super.m_ChangePropertyName = "Time";
-
+
super.m_kindOfControl="TimeField";
-
+
super.m_ObjectName = "stardiv.one.form.component.TimeField";
- NamedValue DataField = new NamedValue();
- DataField.Name = "DataField";
- DataField.Value = DBTools.TST_INT_F;
+ NamedValue DataField = new NamedValue();
+ DataField.Name = "DataField";
+ DataField.Value = DBTools.TST_INT_F;
super.m_propertiesToSet.add(DataField);
-
+
super.m_LCShape_Type = "FixedText";
} /**
@@ -169,19 +169,19 @@ public class OTimeModel extends GenericModelTest {
* @param log the log writer
* @return lib.TestEnvironment
*/
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
TestEnvironment tEnv = super.createTestEnvironment(Param, log);
HashSet exclude = new HashSet();
-
+
exclude.add("FormatKey");
- tEnv.addObjRelation("XUpdateBroadcaster.Checker",
+ tEnv.addObjRelation("XUpdateBroadcaster.Checker",
new Checker(m_XFormLoader, m_XPS, m_XCtrl, m_ChangePropertyName, m_ChangePropertyValue));
return tEnv;
}
-
+
static class Checker implements UpdateChecker {
private short lastItem = (short) 0;
XLoadable formLoaderF = null;
@@ -189,7 +189,7 @@ public class OTimeModel extends GenericModelTest {
XInterface ctrl = null;
String ChangePropertyName = null;
Object ChangePropertyValue = null;
-
+
public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName, Object ChangePropertyValue) {
formLoaderF = xl;
this.ps = ps;
@@ -197,7 +197,7 @@ public class OTimeModel extends GenericModelTest {
this.ChangePropertyName=ChangePropertyName;
this.ChangePropertyValue=ChangePropertyValue;
}
-
+
private int lastTime = 0;
public void update() throws com.sun.star.uno.Exception {
@@ -218,7 +218,7 @@ public class OTimeModel extends GenericModelTest {
XBoundComponent bound = (XBoundComponent) UnoRuntime.queryInterface(
XBoundComponent.class, ctrl);
XResultSetUpdate update = (XResultSetUpdate) UnoRuntime.queryInterface(
- XResultSetUpdate.class,
+ XResultSetUpdate.class,
formLoaderF);
bound.commit();
@@ -230,7 +230,7 @@ public class OTimeModel extends GenericModelTest {
Integer getT = (Integer) ps.getPropertyValue("Time");
- return (getT != null) &&
+ return (getT != null) &&
(Math.abs(getT.intValue() - lastTime) < 100);
}
}