# HG changeset patch # User Sebastian Kruse # Date 1353937298 -3600 # Node ID 775477d897092f4ae87a27c5e7121293ba6ff66d # Parent 175c1eecaf8409f55b03fa659bbc86ed8d8fa8a2 added get for timestamp and timespan diff -r 175c1eecaf84 -r 775477d89709 war/scripts/sti/DataObject.js --- a/war/scripts/sti/DataObject.js Mon Nov 26 14:40:43 2012 +0100 +++ b/war/scripts/sti/DataObject.js Mon Nov 26 14:41:38 2012 +0100 @@ -84,6 +84,39 @@ } }, + /** + * return the string representation of the timeStamp + * @return the string representation of the timeStamp + */ + getTimeStampString: function(){ + if( this.timeStamp != undefined ){ + return SimileAjax.DateTime.getTimeString(this.granularity,this.timeStamp)+""; + } + return(undefined); + }, + + /** + * return the string representation of the timeStamp + * @return the string representation of the timeStamp + */ + getTimeSpanStartString: function(){ + if( this.timeSpan != undefined ){ + return SimileAjax.DateTime.getTimeString(this.granularity,this.timeSpan.start)+""; + } + return(undefined); + }, + + /** + * return the string representation of the timeStamp + * @return the string representation of the timeStamp + */ + getTimeSpanEndString: function(){ + if( this.timeSpan != undefined ){ + return SimileAjax.DateTime.getTimeString(this.granularity,this.timeSpan.end)+""; + } + return(undefined); + }, + isSelected: function(){ if( this.percentage > 0 || this.hoverSelect ){ return true;