Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java @ 4981:0e6e44e6725f
flys-client: (first draft) In GaugeInfo show link to show main values.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 14 Feb 2013 09:32:29 +0100 |
parents | c0a275c581fb |
children | 8c9567dd2e60 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Thu Feb 14 09:29:51 2013 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Thu Feb 14 09:32:29 2013 +0100 @@ -35,9 +35,12 @@ import de.intevation.flys.client.shared.model.Artifact; import de.intevation.flys.client.shared.model.Collection; import de.intevation.flys.client.shared.model.CollectionItem; +import de.intevation.flys.client.shared.model.GaugeInfo; import de.intevation.flys.client.shared.model.River; import de.intevation.flys.client.shared.model.User; +import de.intevation.flys.client.client.ui.wq.WAutoTable; + import java.util.ArrayList; import java.util.List; import java.util.MissingResourceException; @@ -434,6 +437,27 @@ }); } + + /** Opens a window with Main Values from gauge. */ + public void newGaugeMainValueTable(GaugeInfo gauge) { + Window mainValueView = new Window(); + mainValueView.addItem(new WAutoTable(gauge.getRiverName(), + new double[] {gauge.getKmStart(), gauge.getKmEnd()})); + mainValueView.setWidth(1010); + mainValueView.setHeight(700); + + mainValueView.setMaximized(true); + + mainValueView.setCanDragReposition(true); + mainValueView.setCanDragResize(true); + mainValueView.setShowMaximizeButton(true); + mainValueView.setKeepInParentRect(true); + + // TODO i18n + mainValueView.setTitle("Stammdaten " + gauge.getName() + " (" + gauge.getRiverName() + ")" ); + workspace.addChild(mainValueView); + } + public void newGaugeDischargeCurve(String river, Long gaugeref) { Config config = Config.getInstance();