view artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyPartSelect.java @ 9264:baef46792354

Explicitely checking for ld_step, in order to misuse this component (i.e. if there are additional data items)
author gernotbelger
date Tue, 17 Jul 2018 19:48:23 +0200
parents 34dc0163ad2d
children e014eca211a3
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
 * Software engineering by Intevation GmbH
 *
 * 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.artifacts.states;

import org.apache.log4j.Logger;
import org.dive4elements.artifacts.CallContext;
import org.dive4elements.river.artifacts.resources.Resources;

public class DistanceOnlyPartSelect extends DistanceOnlySelect {

    private static Logger log = Logger.getLogger(DistanceOnlyPartSelect.class);

    @Override
    protected String getUIProvider() {
        return "distance_only_part_panel";
    }

    @Override
    protected String getTitle(final CallContext context) {
        // REMARK: that is how it should be: return Resources.getMsg(context.getMeta(), getID());
        return Resources.getMsg(context.getMeta(), "state.title.distance_part_state");
    }

}

http://dive4elements.wald.intevation.org