List of usage examples for com.google.gwt.core.client JsDate getMonth
public final native int getMonth() ;
0 (January) to 6 December. From source file:gov.nist.spectrumbrowser.client.DailyStatsChart.java
License:Open Source License
public DailyStatsChart(SpectrumBrowser spectrumBrowser, SpectrumBrowserShowDatasets spectrumBrowserShowDatasets, ArrayList<SpectrumBrowserScreen> navigation, String sensorId, double latitude, double longitude, double altitude, long minTime, int days, String sys2detect, long minFreq, long maxFreq, long subBandMinFreq, long subBandMaxFreq, String measurementType, VerticalPanel verticalPanel) { super.setNavigation(verticalPanel, navigation, spectrumBrowser, END_LABEL); this.lat = latitude; this.lon = longitude; this.alt = altitude; this.navigation = new ArrayList<SpectrumBrowserScreen>(navigation); this.navigation.add(this); this.spectrumBrowserShowDatasets = spectrumBrowserShowDatasets; this.spectrumBrowser = spectrumBrowser; this.verticalPanel = verticalPanel; mMinFreq = minFreq;/*w w w . j a v a 2 s. c o m*/ mMaxFreq = maxFreq; mSubBandMinFreq = subBandMinFreq; mSubBandMaxFreq = subBandMaxFreq; this.sys2detect = sys2detect; JsDate jsDate = JsDate.create(minTime * 1000); int month = jsDate.getMonth(); int day = jsDate.getDay(); int year = jsDate.getFullYear(); logger.finer("StartDate is " + year + "/" + month + "/" + day); mMinTime = minTime; mMeasurementType = measurementType; mSensorId = sensorId; this.days = days; spectrumBrowserShowDatasets.freeze(); spectrumBrowser.getSpectrumBrowserService().getDailyMaxMinMeanStats(sensorId, latitude, longitude, altitude, minTime, days, sys2detect, minFreq, maxFreq, mSubBandMinFreq, mSubBandMaxFreq, this); }