view flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java @ 3528:b5825159250e

Add isSelected method to Module classes flys-client/trunk@5331 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 31 Aug 2012 13:21:26 +0000
parents 1f293ada93d0
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