Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/client/ui/minfo/BedMultiPeriodPanel.java @ 4253:a1bc5b8cff0f
Refactor GaugePanel to create it's own SectionStackSection
The GaugePanel constructor now creates a SectionStackSection instead of
using a provided one.
Improve the rendering of the GaugePanel by having access to the SmartGWT wrapper
(WidgetCanvas) object for the GWT Tree (GaugeTree) directly.
Add methods to close and open the section. Also add a getter for the section.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 25 Oct 2012 13:52:58 +0200 |
parents | f84ed73311f2 |
children |
line wrap: on
line source
package de.intevation.flys.client.client.ui.minfo; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.events.ResizedEvent; import com.smartgwt.client.widgets.events.ResizedHandler; import com.smartgwt.client.widgets.layout.VLayout; import de.intevation.flys.client.client.ui.MultiPeriodPanel; public class BedMultiPeriodPanel extends MultiPeriodPanel implements ResizedHandler { protected BedCampaignChart chartContainer1; protected BedloadCampaignChart chartContainer2; public BedMultiPeriodPanel() { } @Override protected Canvas createHelper() { chartContainer1 = new BedCampaignChart(artifact, this); chartContainer2 = new BedloadCampaignChart(artifact, this); VLayout layout = new VLayout(); layout.addMember(chartContainer1); layout.addMember(chartContainer2); return layout; } @Override public void onResized(ResizedEvent re) { chartContainer1.update(); chartContainer2.update(); } }