teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5863: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5863: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.artifacts.states; felix@2251: felix@2251: import org.apache.log4j.Logger; felix@2251: teichmann@5867: import org.dive4elements.river.artifacts.D4EArtifact; felix@2251: felix@2251: felix@2251: /** felix@5107: * State to keep a double value and validate it against a range. felix@2251: */ felix@2251: public class InputDoubleState extends MinMaxState { felix@2251: felix@2251: private static final Logger logger = Logger.getLogger(InputDoubleState.class); felix@2251: felix@2251: felix@2251: @Override felix@2251: protected String getUIProvider() { felix@2251: return "location_panel"; felix@2251: } felix@2251: felix@2251: felix@2251: @Override teichmann@5867: protected Object getLower(D4EArtifact flys) { felix@2251: return 0; felix@2251: } felix@2251: felix@2251: felix@2251: @Override teichmann@5867: protected Object getUpper(D4EArtifact flys) { felix@2251: return 0; felix@2251: } felix@2251: felix@2251: felix@2251: @Override felix@2251: protected String getType() { felix@2251: return "double"; felix@2251: } felix@2251: } felix@2251: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :