annotate gwt-client/src/main/java/org/dive4elements/river/client/client/ui/NilDatacageTwinPanelInfo.java @ 8875:8d1df8639563

Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
author gernotbelger
date Thu, 08 Feb 2018 18:46:34 +0100
parents
children e3c2ae1887e8
rev   line source
8875
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
2 * Software engineering by
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
3 * Björnsen Beratende Ingenieure GmbH
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
5 *
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
6 * This file is Free Software under the GNU AGPL (>=v3)
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
8 * documentation coming with Dive4Elements River for details.
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
9 */
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
10 package org.dive4elements.river.client.client.ui;
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
11
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
12 import org.dive4elements.river.client.client.ui.DatacageTwinPanel.IDatacageTwinPanelInfo;
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
13 import org.dive4elements.river.client.shared.model.Recommendation;
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
14
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
15 /**
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
16 * An info implementation that does NOT tweak any factories.
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
17 *
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
18 * @author Gernot Belger
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
19 */
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
20 public final class NilDatacageTwinPanelInfo implements IDatacageTwinPanelInfo {
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
21
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
22 private final String outs;
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
23
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
24 public NilDatacageTwinPanelInfo(final String outs) {
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
25 this.outs = outs;
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
26 }
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
27
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
28 @Override
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
29 public String getFactory(final String originalFactory) {
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
30 return originalFactory;
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
31 }
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
32
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
33
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
34 @Override
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
35 public String getDataStringFactory(final Recommendation recommendation) {
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
36 return recommendation.getFactory();
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
37 }
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
38
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
39 @Override
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
40 public void adjustRecommendation(final Recommendation recommendation) {
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
41 /* does nothing */
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
42 }
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
43
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
44 @Override
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
45 public String getOuts() {
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
46 return this.outs;
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
47 }
8d1df8639563 Fixed: strange tweak in w-diferences panel always returned staticwkms factory instead of the original one. In sinfo we need the original one though.
gernotbelger
parents:
diff changeset
48 }

http://dive4elements.wald.intevation.org