raimund@2651: package de.intevation.flys.artifacts.states.fixation; raimund@2651: raimund@2651: import org.apache.log4j.Logger; raimund@2651: raimund@2651: import org.w3c.dom.Element; raimund@2651: import org.w3c.dom.Node; raimund@2651: raimund@2651: import de.intevation.artifacts.Artifact; raimund@2651: import de.intevation.artifacts.CallContext; raimund@2651: raimund@2651: import de.intevation.artifacts.common.utils.XMLUtils; raimund@2651: raimund@2651: import de.intevation.artifactdatabase.ProtocolUtils; raimund@2651: import de.intevation.artifactdatabase.data.StateData; raimund@2651: raimund@2651: import de.intevation.flys.utils.FLYSUtils; raimund@2651: raimund@2651: import de.intevation.flys.artifacts.FLYSArtifact; raimund@2651: import de.intevation.flys.artifacts.resources.Resources; raimund@2651: import de.intevation.flys.artifacts.states.RangeState; raimund@2651: raimund@2651: raimund@2651: /** raimund@2651: * @author Raimund Renkert raimund@2651: */ raimund@2651: public class LocationSelect extends RangeState { raimund@2651: raimund@2651: /** The logger used in this class. */ raimund@2651: private static Logger logger = Logger.getLogger(LocationSelect.class); raimund@2651: raimund@2651: private static final String LOWER = "from"; raimund@2651: raimund@2651: private static final String UPPER = "to"; raimund@2651: raimund@2651: private static final String STEP = "step"; raimund@2651: raimund@2651: raimund@2651: /** raimund@2651: * The default constructor that initializes an empty State object. raimund@2651: */ raimund@2651: public LocationSelect() { raimund@2651: } raimund@2651: raimund@2651: @Override raimund@2651: protected String getUIProvider() { raimund@2651: return "fix.location_panel"; raimund@2651: } raimund@2651: raimund@2651: @Override raimund@2651: protected double[] getMinMax(Artifact artifact) { raimund@2651: FLYSArtifact flysArtifact = (FLYSArtifact) artifact; raimund@2651: return FLYSUtils.getRiverMinMax(flysArtifact); raimund@2651: } raimund@2651: raimund@2651: @Override raimund@2651: protected String getLowerField() { raimund@2651: return LOWER; raimund@2651: } raimund@2651: raimund@2651: @Override raimund@2651: protected String getUpperField() { raimund@2651: return UPPER; raimund@2651: } raimund@2651: raimund@2651: @Override raimund@2651: protected String getStepField() { raimund@2651: return STEP; raimund@2651: } raimund@2651: raimund@2651: } raimund@2651: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :