summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-08-03 11:05:21 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-08-03 11:15:07 +0200
commitf4cadd9772ed0ff6e7f7b170080f90384d1f2318 (patch)
treef307371e6ebee8b00dd9023bf2c44cb24a2e7f77 /odk
parent65e65a93adb0210f698de77bcc0e7c0a96dff350 (diff)
fdo#67235 adapt form control code to time nanosecond API change, step 2
Change-Id: I6ed48b506bdd7b3908ce8c7dba1b74093a3ac202
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index 2b47e82e8975..a76c918504ee 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -627,7 +627,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
return xTextComponent;
}
- public XPropertySet insertTimeField(int _nPosX, int _nPosY, int _nWidth, int _nTime, int _nTimeMin, int _nTimeMax){
+ public XPropertySet insertTimeField(int _nPosX, int _nPosY, int _nWidth, long _nTime, long _nTimeMin, long _nTimeMax){
XPropertySet xTFModelPSet = null;
try{
// create a unique name by means of an own implementation...
@@ -649,9 +649,9 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
// The following properties may also be set with XMultiPropertySet but we
// use the XPropertySet interface merely for reasons of demonstration
xTFModelPSet.setPropertyValue("TimeFormat", new Short((short) 5));
- xTFModelPSet.setPropertyValue("TimeMin", new Integer(_nTimeMin));
- xTFModelPSet.setPropertyValue("TimeMax", new Integer(_nTimeMax));
- xTFModelPSet.setPropertyValue("Time", new Integer(_nTime));
+ xTFModelPSet.setPropertyValue("TimeMin", new Long(_nTimeMin));
+ xTFModelPSet.setPropertyValue("TimeMax", new Long(_nTimeMax));
+ xTFModelPSet.setPropertyValue("Time", new Long(_nTime));
} catch (com.sun.star.uno.Exception ex) {
/* perform individual exception handling here.
* Possible exception types are: