view flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java @ 4249:7a889098bcc6

Extend the client RiverInfo model to support MeasurementStations Add method to receive the MeasurementStations from a RiverInfo. Also add methods to set the GaugeInfo and MeasurementStation to the DefaultRiverInfo.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 24 Oct 2012 17:00:37 +0200
parents b5825159250e
children
line wrap: on
line source
package de.intevation.flys.client.shared.model;

public class DefaultModule implements Module {

    private String name;
    private String localname;
    private boolean selected = false;

    public DefaultModule() {
    }

    public DefaultModule(String name, String localname, boolean selected) {
        this.name = name;
        this.localname = localname;
        this.selected = selected;
    }

    /**
     * Returns the name of the module
     */
    public String getName() {
        return this.name;
    }

    /**
     * Returns the localized name of the module
     */
    public String getLocalizedName() {
        return this.localname;
    }

    /**
     * Returns true if the module should be selected
     */
    public boolean isSelected() {
        return this.selected;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :

http://dive4elements.wald.intevation.org