view flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/OutliersInput.java @ 4825:f8217f1fef2e

ExtremeAccess, RangeAccess and callers: Refactored, moved getStep to RangeAccess. Inherit from RangeAccess, adjusted constructor and callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 21 Jan 2013 17:11:10 +0100
parents c63f0b4ac1b4
children
line wrap: on
line source
package de.intevation.flys.artifacts.states;

import org.apache.log4j.Logger;

import de.intevation.artifactdatabase.data.StateData;
import de.intevation.artifacts.CallContext;

/**
 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
 */
public class OutliersInput extends DefaultState {

    /** The logger used in this class. */
    private static Logger logger = Logger.getLogger(OutliersInput.class);

    public static final String PARAMETER_NAME = "outliers";


    /**
     * The default constructor that initializes an empty State object.
     */
    public OutliersInput() {
    }


    /** Tell UI how to allow for input. */
    @Override
    protected String getUIProvider() {
        return "outliers_input";
    }


    @Override
    protected String[] getDefaultsFor(CallContext context, StateData data) {
        if (data != null && data.getName().equals(PARAMETER_NAME)) {
            return new String[] {"3", "3"};
        }

        return null;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org