Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageWidgetData.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 | |
children |
comparison
equal
deleted
inserted
replaced
9219:8642a76f22be | 9220:e3c2ae1887e8 |
---|---|
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.shared.model.Artifact; | |
13 import org.dive4elements.river.client.shared.model.User; | |
14 | |
15 /** | |
16 * Holds all data that configures the {@link DatacageWidget} | |
17 * | |
18 * @author Gernot Belger | |
19 */ | |
20 public class DatacageWidgetData { | |
21 | |
22 private final Artifact artifact; | |
23 private final User user; | |
24 private final String outs; | |
25 private final String parameters; | |
26 private final boolean showButton; | |
27 private final String columnLabel; | |
28 | |
29 public DatacageWidgetData(final Artifact artifact, final User user) { | |
30 this(artifact, user, null); | |
31 } | |
32 | |
33 public DatacageWidgetData(final Artifact artifact, final User user, final String outs) { | |
34 this(artifact, user, outs, true); | |
35 } | |
36 | |
37 public DatacageWidgetData(final Artifact artifact, final User user, final String outs, final boolean showButton) { | |
38 this(artifact, user, outs, null, showButton); | |
39 } | |
40 | |
41 public DatacageWidgetData(final Artifact artifact, final User user, final String outs, final String parameters, final boolean showButton) { | |
42 this(artifact, user, outs, parameters, showButton, null); | |
43 } | |
44 | |
45 public DatacageWidgetData(final Artifact artifact, final User user, final String outs, final String parameters, final boolean showButton, | |
46 final String columnLabel) { | |
47 this.artifact = artifact; | |
48 this.user = user; | |
49 this.outs = outs; | |
50 this.parameters = parameters; | |
51 this.showButton = showButton; | |
52 this.columnLabel = columnLabel; | |
53 } | |
54 | |
55 public Artifact getArtifact() { | |
56 return this.artifact; | |
57 } | |
58 | |
59 public User getUser() { | |
60 return this.user; | |
61 } | |
62 | |
63 public String getOuts() { | |
64 return this.outs; | |
65 } | |
66 | |
67 public String getParameters() { | |
68 return this.parameters; | |
69 } | |
70 | |
71 public boolean isShowButton() { | |
72 return this.showButton; | |
73 } | |
74 | |
75 public String getColumnLabel() { | |
76 return this.columnLabel; | |
77 } | |
78 } |