view gwt-client/src/main/java/org/dive4elements/river/client/client/ui/sinfo/FlowDepthTwinPanel.java @ 9231:082e8e808902

Finetuning intelligent waterlevel-sounding select. Soundings without year are never shown. All involed datacage elements are assumed to have a 'year' attribute
author gernotbelger
date Fri, 06 Jul 2018 13:09:25 +0200
parents 84397da33d17
children
line wrap: on
line source
/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
 * Software engineering by
 *  Björnsen Beratende Ingenieure GmbH
 *  Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
 *
 * This file is Free Software under the GNU AGPL (>=v3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out the
 * documentation coming with Dive4Elements River for details.
 */
package org.dive4elements.river.client.client.ui.sinfo;

import org.dive4elements.river.client.client.ui.DatacageTwinPanel;
import org.dive4elements.river.client.client.ui.DefaultDatacageTwinPanelInfo;
import org.dive4elements.river.client.client.ui.NilDatacageTwinPanelInfo;
import org.dive4elements.river.client.shared.model.User;

/**
 * @author Gernot Belger
 */
public final class FlowDepthTwinPanel extends DatacageTwinPanel {

    private static final long serialVersionUID = 1L;

    private static final DefaultDatacageTwinPanelInfo SOUNDING_INFO = new DefaultDatacageTwinPanelInfo(MSG.sinfo_columnlabel_soundings(), "bedheight",
            "sinfo_flowdepth_minfo_heights");

    private static final NilDatacageTwinPanelInfo WATERLEVEL_INFO = new NilDatacageTwinPanelInfo(MSG.sinfo_columnlabel_waterlevels(),
            "sinfo_flowdepth_waterlevels");

    public FlowDepthTwinPanel(final User user, final int maxCount, final String msgMaxCount) {
        super(user, new FlowDepthTwinPanelValidator(), new WaterlevelSoundingSelectionController(MSG), SOUNDING_INFO, WATERLEVEL_INFO, maxCount, msgMaxCount);
    }
}

http://dive4elements.wald.intevation.org