Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DefaultDatacageTwinPanelInfo.java @ 8852:8f6d6d26e96f
Refaktored the DatacageTwinPanel so it is reusable.
author | gernotbelger |
---|---|
date | Thu, 18 Jan 2018 18:32:30 +0100 |
parents | |
children | 8d1df8639563 |
comparison
equal
deleted
inserted
replaced
8851:13650d8a2373 | 8852:8f6d6d26e96f |
---|---|
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 * @author Gernot Belger | |
17 */ | |
18 public final class DefaultDatacageTwinPanelInfo implements IDatacageTwinPanelInfo { | |
19 | |
20 private String factory; | |
21 private String outs; | |
22 | |
23 public DefaultDatacageTwinPanelInfo(final String factory, final String outs) { | |
24 this.factory = factory; | |
25 this.outs = outs; | |
26 } | |
27 | |
28 @Override | |
29 public String getFactory() { | |
30 return factory; | |
31 } | |
32 | |
33 @Override | |
34 public String getDataStringFactory() { | |
35 return factory; | |
36 } | |
37 | |
38 @Override | |
39 public void adjustRecommendation(Recommendation recommendation) { | |
40 recommendation.setFactory(factory); | |
41 } | |
42 | |
43 @Override | |
44 public String getOuts() { | |
45 return outs; | |
46 } | |
47 } |