Mercurial > hg > STI-GWT
diff src/econnect/wp3_3/client/widgets/timeplot/StiTimeplot.java @ 28:6ec1ab4f897a
Added .toString() to force String output, otherwise this can lead to Type Exceptions (e.g. when an int is returned).
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 28 Nov 2012 16:56:38 +0100 |
parents | cf06b77a8bbd |
children |
line wrap: on
line diff
--- a/src/econnect/wp3_3/client/widgets/timeplot/StiTimeplot.java Tue Nov 27 11:57:47 2012 +0100 +++ b/src/econnect/wp3_3/client/widgets/timeplot/StiTimeplot.java Wed Nov 28 16:56:38 2012 +0100 @@ -69,26 +69,26 @@ * get actual min time */ public final native String minTime() /*-{ - return this.eds.minDate.getTime(); + return this.eds.minDate.getTime().toString(); }-*/; /** * get actual max time */ public final native String maxTime() /*-{ - return this.eds.maxDate.getTime(); + return this.eds.maxDate.getTime().toString(); }-*/; public final native String minSelTime() /*-{ if( this.leftFlagTime != null ){ - return this.leftFlagTime.getTime(); + return this.leftFlagTime.getTime().toString(); } return null; }-*/; public final native String maxSelTime() /*-{ if( this.rightFlagTime != null ){ - return this.rightFlagTime.getTime(); + return this.rightFlagTime.getTime().toString(); } return null; }-*/;