Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
8874:7ebe5d463740 | 8875:8d1df8639563 |
---|---|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by | |
3 * Björnsen Beratende Ingenieure GmbH | |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | |
5 * | |
6 * This file is Free Software under the GNU AGPL (>=v3) | |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
8 * documentation coming with Dive4Elements River for details. | |
9 */ | |
10 package org.dive4elements.river.client.client.ui; | |
11 | |
12 import org.dive4elements.river.client.client.ui.DatacageTwinPanel.IDatacageTwinPanelInfo; | |
13 import org.dive4elements.river.client.shared.model.Recommendation; | |
14 | |
15 /** | |
16 * An info implementation that does NOT tweak any factories. | |
17 * | |
18 * @author Gernot Belger | |
19 */ | |
20 public final class NilDatacageTwinPanelInfo implements IDatacageTwinPanelInfo { | |
21 | |
22 private final String outs; | |
23 | |
24 public NilDatacageTwinPanelInfo(final String outs) { | |
25 this.outs = outs; | |
26 } | |
27 | |
28 @Override | |
29 public String getFactory(final String originalFactory) { | |
30 return originalFactory; | |
31 } | |
32 | |
33 | |
34 @Override | |
35 public String getDataStringFactory(final Recommendation recommendation) { | |
36 return recommendation.getFactory(); | |
37 } | |
38 | |
39 @Override | |
40 public void adjustRecommendation(final Recommendation recommendation) { | |
41 /* does nothing */ | |
42 } | |
43 | |
44 @Override | |
45 public String getOuts() { | |
46 return this.outs; | |
47 } | |
48 } |