teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5861: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5861: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.client.ui.sq; ingo@3373: ingo@3373: import com.google.gwt.core.client.GWT; ingo@3373: import com.smartgwt.client.widgets.Canvas; ingo@3373: import com.smartgwt.client.widgets.events.ResizedEvent; ingo@3373: import com.smartgwt.client.widgets.events.ResizedHandler; ingo@3373: teichmann@5835: import org.dive4elements.river.client.client.ui.PeriodPanel; ingo@3373: ingo@3373: public class SQPeriodPanel extends PeriodPanel implements ResizedHandler { ingo@3373: ingo@3373: private SQCampaignChart chartLayout; ingo@3373: ingo@3373: @Override ingo@3373: protected Canvas createHelper() { ingo@3373: GWT.log("Create new SQCampaignChart as Helper Widget"); ingo@3373: chartLayout = new SQCampaignChart(artifact, this); ingo@3373: return chartLayout; ingo@3373: } ingo@3373: ingo@3373: ingo@3373: @Override ingo@3373: public void onResized(ResizedEvent re) { ingo@3373: chartLayout.update(); ingo@3373: } ingo@3373: }