annotate gwt-client/src/main/java/org/dive4elements/river/client/client/ui/sinfo/FlowDepthMinMaxTwinPanel.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 839b2aa84dd0
rev   line source
8993
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
2 * Software engineering by
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
3 * Björnsen Beratende Ingenieure GmbH
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
5 *
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
6 * This file is Free Software under the GNU AGPL (>=v3)
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
8 * documentation coming with Dive4Elements River for details.
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
9 */
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
10 package org.dive4elements.river.client.client.ui.sinfo;
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
11
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
12 import org.dive4elements.river.client.client.ui.DatacageTwinPanel;
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
13 import org.dive4elements.river.client.client.ui.DefaultDatacageTwinPanelInfo;
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
14 import org.dive4elements.river.client.client.ui.NilDatacageTwinPanelInfo;
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
15 import org.dive4elements.river.client.shared.model.User;
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
16
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
17 /**
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
18 * @author Gernot Belger
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
19 */
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
20 public final class FlowDepthMinMaxTwinPanel 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_flowdepthminmax_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
8993
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
29 public FlowDepthMinMaxTwinPanel(final User user) {
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, 9999, "");
8993
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
31 }
0adc6d04de95 SInfo - FlowDepthMinMax: choosing bed heights, not bed height min and max separately
gernotbelger
parents:
diff changeset
32 }

http://dive4elements.wald.intevation.org