Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
4980:e70ff0a600a3 | 4981:0e6e44e6725f |
---|---|
33 import de.intevation.flys.client.client.ui.FLYSWorkspace; | 33 import de.intevation.flys.client.client.ui.FLYSWorkspace; |
34 import de.intevation.flys.client.client.ui.ProjectList; | 34 import de.intevation.flys.client.client.ui.ProjectList; |
35 import de.intevation.flys.client.shared.model.Artifact; | 35 import de.intevation.flys.client.shared.model.Artifact; |
36 import de.intevation.flys.client.shared.model.Collection; | 36 import de.intevation.flys.client.shared.model.Collection; |
37 import de.intevation.flys.client.shared.model.CollectionItem; | 37 import de.intevation.flys.client.shared.model.CollectionItem; |
38 import de.intevation.flys.client.shared.model.GaugeInfo; | |
38 import de.intevation.flys.client.shared.model.River; | 39 import de.intevation.flys.client.shared.model.River; |
39 import de.intevation.flys.client.shared.model.User; | 40 import de.intevation.flys.client.shared.model.User; |
41 | |
42 import de.intevation.flys.client.client.ui.wq.WAutoTable; | |
40 | 43 |
41 import java.util.ArrayList; | 44 import java.util.ArrayList; |
42 import java.util.List; | 45 import java.util.List; |
43 import java.util.MissingResourceException; | 46 import java.util.MissingResourceException; |
44 import java.util.Set; | 47 import java.util.Set; |
430 @Override | 433 @Override |
431 public void onSuccess(Artifact artifact) { | 434 public void onSuccess(Artifact artifact) { |
432 GWT.log("Successfully created a new artifact."); | 435 GWT.log("Successfully created a new artifact."); |
433 } | 436 } |
434 }); | 437 }); |
438 } | |
439 | |
440 | |
441 /** Opens a window with Main Values from gauge. */ | |
442 public void newGaugeMainValueTable(GaugeInfo gauge) { | |
443 Window mainValueView = new Window(); | |
444 mainValueView.addItem(new WAutoTable(gauge.getRiverName(), | |
445 new double[] {gauge.getKmStart(), gauge.getKmEnd()})); | |
446 mainValueView.setWidth(1010); | |
447 mainValueView.setHeight(700); | |
448 | |
449 mainValueView.setMaximized(true); | |
450 | |
451 mainValueView.setCanDragReposition(true); | |
452 mainValueView.setCanDragResize(true); | |
453 mainValueView.setShowMaximizeButton(true); | |
454 mainValueView.setKeepInParentRect(true); | |
455 | |
456 // TODO i18n | |
457 mainValueView.setTitle("Stammdaten " + gauge.getName() + " (" + gauge.getRiverName() + ")" ); | |
458 workspace.addChild(mainValueView); | |
435 } | 459 } |
436 | 460 |
437 public void newGaugeDischargeCurve(String river, Long gaugeref) { | 461 public void newGaugeDischargeCurve(String river, Long gaugeref) { |
438 Config config = Config.getInstance(); | 462 Config config = Config.getInstance(); |
439 | 463 |