Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/minfo/BedMultiPeriodPanel.java @ 3705:f84ed73311f2
Added UI for minfo bed quality calculation and added new services for overview
charts.
flys-client/trunk@5444 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 12 Sep 2012 14:32:17 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3704:1ea53a363db4 | 3705:f84ed73311f2 |
---|---|
1 package de.intevation.flys.client.client.ui.minfo; | |
2 | |
3 import com.smartgwt.client.widgets.Canvas; | |
4 import com.smartgwt.client.widgets.events.ResizedEvent; | |
5 import com.smartgwt.client.widgets.events.ResizedHandler; | |
6 import com.smartgwt.client.widgets.layout.VLayout; | |
7 | |
8 import de.intevation.flys.client.client.ui.MultiPeriodPanel; | |
9 | |
10 public class BedMultiPeriodPanel | |
11 extends MultiPeriodPanel | |
12 implements ResizedHandler { | |
13 protected BedCampaignChart chartContainer1; | |
14 protected BedloadCampaignChart chartContainer2; | |
15 | |
16 public BedMultiPeriodPanel() { | |
17 } | |
18 | |
19 @Override | |
20 protected Canvas createHelper() { | |
21 chartContainer1 = new BedCampaignChart(artifact, this); | |
22 chartContainer2 = new BedloadCampaignChart(artifact, this); | |
23 VLayout layout = new VLayout(); | |
24 layout.addMember(chartContainer1); | |
25 layout.addMember(chartContainer2); | |
26 return layout; | |
27 } | |
28 | |
29 @Override | |
30 public void onResized(ResizedEvent re) { | |
31 chartContainer1.update(); | |
32 chartContainer2.update(); | |
33 } | |
34 } |