Mercurial > dive4elements > river
annotate gwt-client/src/main/java/org/dive4elements/river/client/client/ui/sinfo/FlowDepthTwinPanel.java @ 9227:84397da33d17
Allow to control specific behaviour in TwinDatacagePanel
Implemented client logic of 'intelligent datacage filtering' for SINFO
author | gernotbelger |
---|---|
date | Wed, 04 Jul 2018 18:28:08 +0200 |
parents | e3c2ae1887e8 |
children | 082e8e808902 |
rev | line source |
---|---|
8854 | 1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
8993
0adc6d04de95
SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
8875
diff
changeset
|
2 * Software engineering by |
0adc6d04de95
SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
8875
diff
changeset
|
3 * Björnsen Beratende Ingenieure GmbH |
8854 | 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.sinfo; | |
11 | |
12 import org.dive4elements.river.client.client.ui.DatacageTwinPanel; | |
13 import org.dive4elements.river.client.client.ui.DefaultDatacageTwinPanelInfo; | |
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:
8868
diff
changeset
|
14 import org.dive4elements.river.client.client.ui.NilDatacageTwinPanelInfo; |
8854 | 15 import org.dive4elements.river.client.shared.model.User; |
16 | |
17 /** | |
18 * @author Gernot Belger | |
19 */ | |
8993
0adc6d04de95
SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
8875
diff
changeset
|
20 public final class FlowDepthTwinPanel extends DatacageTwinPanel { |
9220
e3c2ae1887e8
Allow to filter contents of datacage on client side.
gernotbelger
parents:
9133
diff
changeset
|
21 |
e3c2ae1887e8
Allow to filter contents of datacage on client side.
gernotbelger
parents:
9133
diff
changeset
|
22 private static final long serialVersionUID = 1L; |
e3c2ae1887e8
Allow to filter contents of datacage on client side.
gernotbelger
parents:
9133
diff
changeset
|
23 |
e3c2ae1887e8
Allow to filter contents of datacage on client side.
gernotbelger
parents:
9133
diff
changeset
|
24 private static final DefaultDatacageTwinPanelInfo LEFT_INFO = new DefaultDatacageTwinPanelInfo(MSG.sinfo_columnlabel_soundings(), "bedheight", |
e3c2ae1887e8
Allow to filter contents of datacage on client side.
gernotbelger
parents:
9133
diff
changeset
|
25 "sinfo_flowdepth_minfo_heights"); |
e3c2ae1887e8
Allow to filter contents of datacage on client side.
gernotbelger
parents:
9133
diff
changeset
|
26 |
e3c2ae1887e8
Allow to filter contents of datacage on client side.
gernotbelger
parents:
9133
diff
changeset
|
27 private static final NilDatacageTwinPanelInfo RIGHT_INFO = new NilDatacageTwinPanelInfo(MSG.sinfo_columnlabel_waterlevels(), "sinfo_flowdepth_waterlevels"); |
e3c2ae1887e8
Allow to filter contents of datacage on client side.
gernotbelger
parents:
9133
diff
changeset
|
28 |
9133
af73fdd96920
Title current/historical diff pair; limit on entries in diff'pair twin_panel
gernotbelger
parents:
8993
diff
changeset
|
29 public FlowDepthTwinPanel(final User user, final int maxCount, final String msgMaxCount) { |
9227
84397da33d17
Allow to control specific behaviour in TwinDatacagePanel
gernotbelger
parents:
9220
diff
changeset
|
30 super(user, new FlowDepthTwinPanelValidator(), new WaterlevelSoundingSelectionController(MSG), LEFT_INFO, RIGHT_INFO, maxCount, msgMaxCount); |
8993
0adc6d04de95
SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
8875
diff
changeset
|
31 } |
8854 | 32 } |