Example usage for com.google.gwt.core.client JsDate getFullYear

List of usage examples for com.google.gwt.core.client JsDate getFullYear

Introduction

In this page you can find the example usage for com.google.gwt.core.client JsDate getFullYear.

Prototype

public final native int getFullYear() ;

Source Link

Document

Returns the four-digit year.

Usage

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;//from w w  w  . j a va2  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);

}