Mercurial > hg > STI-GWT
comparison war/scripts/sti/DataObject.js @ 16:775477d89709
added get for timestamp and timespan
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 26 Nov 2012 14:41:38 +0100 |
parents | cf06b77a8bbd |
children | 8b58d9bc0bb6 |
comparison
equal
deleted
inserted
replaced
15:175c1eecaf84 | 16:775477d89709 |
---|---|
82 else { | 82 else { |
83 return ( SimileAjax.DateTime.getTimeString(this.granularity,this.timeSpan.start)+" - "+SimileAjax.DateTime.getTimeString(this.granularity,this.timeSpan.end)); | 83 return ( SimileAjax.DateTime.getTimeString(this.granularity,this.timeSpan.start)+" - "+SimileAjax.DateTime.getTimeString(this.granularity,this.timeSpan.end)); |
84 } | 84 } |
85 }, | 85 }, |
86 | 86 |
87 /** | |
88 * return the string representation of the timeStamp | |
89 * @return the string representation of the timeStamp | |
90 */ | |
91 getTimeStampString: function(){ | |
92 if( this.timeStamp != undefined ){ | |
93 return SimileAjax.DateTime.getTimeString(this.granularity,this.timeStamp)+""; | |
94 } | |
95 return(undefined); | |
96 }, | |
97 | |
98 /** | |
99 * return the string representation of the timeStamp | |
100 * @return the string representation of the timeStamp | |
101 */ | |
102 getTimeSpanStartString: function(){ | |
103 if( this.timeSpan != undefined ){ | |
104 return SimileAjax.DateTime.getTimeString(this.granularity,this.timeSpan.start)+""; | |
105 } | |
106 return(undefined); | |
107 }, | |
108 | |
109 /** | |
110 * return the string representation of the timeStamp | |
111 * @return the string representation of the timeStamp | |
112 */ | |
113 getTimeSpanEndString: function(){ | |
114 if( this.timeSpan != undefined ){ | |
115 return SimileAjax.DateTime.getTimeString(this.granularity,this.timeSpan.end)+""; | |
116 } | |
117 return(undefined); | |
118 }, | |
119 | |
87 isSelected: function(){ | 120 isSelected: function(){ |
88 if( this.percentage > 0 || this.hoverSelect ){ | 121 if( this.percentage > 0 || this.hoverSelect ){ |
89 return true; | 122 return true; |
90 } | 123 } |
91 return false; | 124 return false; |