Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/NilDatacageTwinPanelInfo.java @ 9220:e3c2ae1887e8
Allow to filter contents of datacage on client side.
Allow to override column label of datacage
Some code cleanup
author | gernotbelger |
---|---|
date | Wed, 04 Jul 2018 12:00:51 +0200 |
parents | 8d1df8639563 |
children |
comparison
equal
deleted
inserted
replaced
9219:8642a76f22be | 9220:e3c2ae1887e8 |
---|---|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde | 1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by | 2 * Software engineering by |
3 * Björnsen Beratende Ingenieure GmbH | 3 * Björnsen Beratende Ingenieure GmbH |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | 4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
5 * | 5 * |
6 * This file is Free Software under the GNU AGPL (>=v3) | 6 * This file is Free Software under the GNU AGPL (>=v3) |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
12 import org.dive4elements.river.client.client.ui.DatacageTwinPanel.IDatacageTwinPanelInfo; | 12 import org.dive4elements.river.client.client.ui.DatacageTwinPanel.IDatacageTwinPanelInfo; |
13 import org.dive4elements.river.client.shared.model.Recommendation; | 13 import org.dive4elements.river.client.shared.model.Recommendation; |
14 | 14 |
15 /** | 15 /** |
16 * An info implementation that does NOT tweak any factories. | 16 * An info implementation that does NOT tweak any factories. |
17 * | 17 * |
18 * @author Gernot Belger | 18 * @author Gernot Belger |
19 */ | 19 */ |
20 public final class NilDatacageTwinPanelInfo implements IDatacageTwinPanelInfo { | 20 public final class NilDatacageTwinPanelInfo implements IDatacageTwinPanelInfo { |
21 | 21 |
22 private final String outs; | 22 private final String outs; |
23 private final String columnLabel; | |
23 | 24 |
24 public NilDatacageTwinPanelInfo(final String outs) { | 25 public NilDatacageTwinPanelInfo(final String columnLabel, final String outs) { |
25 this.outs = outs; | 26 this.columnLabel = columnLabel; |
26 } | 27 this.outs = outs; |
27 | 28 } |
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 | 29 |
39 @Override | 30 @Override |
40 public void adjustRecommendation(final Recommendation recommendation) { | 31 public String getFactory(final String originalFactory) { |
32 return originalFactory; | |
33 } | |
34 | |
35 | |
36 @Override | |
37 public String getDataStringFactory(final Recommendation recommendation) { | |
38 return recommendation.getFactory(); | |
39 } | |
40 | |
41 @Override | |
42 public void adjustRecommendation(final Recommendation recommendation) { | |
41 /* does nothing */ | 43 /* does nothing */ |
42 } | 44 } |
43 | 45 |
44 @Override | 46 @Override |
45 public String getOuts() { | 47 public String getOuts() { |
46 return this.outs; | 48 return this.outs; |
47 } | 49 } |
50 | |
51 @Override | |
52 public String getColumnLabel() { | |
53 return this.columnLabel; | |
54 } | |
48 } | 55 } |