Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/InfoPanel.java @ 6191:9b521dfb8920
Pass the FLYS instance to the InfoPanel class.
It will be needed for the SSO wiki links.
Part of flys/issue1265
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 04 Jun 2013 17:38:35 +0200 |
parents | ea9eef426962 |
children | 165020640d7b |
comparison
equal
deleted
inserted
replaced
6190:7aadc0e2e3fa | 6191:9b521dfb8920 |
---|---|
12 | 12 |
13 import com.smartgwt.client.types.Overflow; | 13 import com.smartgwt.client.types.Overflow; |
14 import com.smartgwt.client.widgets.Canvas; | 14 import com.smartgwt.client.widgets.Canvas; |
15 import com.smartgwt.client.widgets.layout.SectionStackSection; | 15 import com.smartgwt.client.widgets.layout.SectionStackSection; |
16 import com.smartgwt.client.widgets.layout.VLayout; | 16 import com.smartgwt.client.widgets.layout.VLayout; |
17 import org.dive4elements.river.client.client.FLYS; | |
17 import org.dive4elements.river.client.client.FLYSConstants; | 18 import org.dive4elements.river.client.client.FLYSConstants; |
18 import org.dive4elements.river.client.client.services.RiverInfoService; | 19 import org.dive4elements.river.client.client.services.RiverInfoService; |
19 import org.dive4elements.river.client.client.services.RiverInfoServiceAsync; | 20 import org.dive4elements.river.client.client.services.RiverInfoServiceAsync; |
20 import org.dive4elements.river.client.client.ui.RiverInfoPanel; | 21 import org.dive4elements.river.client.client.ui.RiverInfoPanel; |
21 import org.dive4elements.river.client.shared.model.DataList; | 22 import org.dive4elements.river.client.shared.model.DataList; |
23 | 24 |
24 /** | 25 /** |
25 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> | 26 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> |
26 */ | 27 */ |
27 public abstract class InfoPanel extends VLayout { | 28 public abstract class InfoPanel extends VLayout { |
29 | |
30 /** The instance of FLYS */ | |
31 protected FLYS flys; | |
28 | 32 |
29 /** SectionStackSection where this InfoPanel belongs in*/ | 33 /** SectionStackSection where this InfoPanel belongs in*/ |
30 protected SectionStackSection section; | 34 protected SectionStackSection section; |
31 | 35 |
32 /** Name of the river */ | 36 /** Name of the river */ |
42 | 46 |
43 protected InfoListGrid listgrid; | 47 protected InfoListGrid listgrid; |
44 | 48 |
45 public final static String SECTION_ID = "InfoPanelSection"; | 49 public final static String SECTION_ID = "InfoPanelSection"; |
46 | 50 |
47 public InfoPanel(InfoListGrid listgrid) { | 51 public InfoPanel(FLYS flys, InfoListGrid listgrid) { |
48 SectionStackSection section = new SectionStackSection(); | 52 SectionStackSection section = new SectionStackSection(); |
49 section.setExpanded(false); | 53 section.setExpanded(false); |
50 section.setTitle(getSectionTitle()); | 54 section.setTitle(getSectionTitle()); |
51 section.setName(SECTION_ID); | 55 section.setName(SECTION_ID); |
52 section.setID(SECTION_ID); | 56 section.setID(SECTION_ID); |
53 | 57 |
54 setOverflow(Overflow.HIDDEN); | 58 setOverflow(Overflow.HIDDEN); |
55 setStyleName("infopanel"); | 59 setStyleName("infopanel"); |
60 | |
61 this.flys = flys; | |
56 | 62 |
57 section.setHidden(true); | 63 section.setHidden(true); |
58 section.setItems(this); | 64 section.setItems(this); |
59 this.section = section; | 65 this.section = section; |
60 this.listgrid = listgrid; | 66 this.listgrid = listgrid; |