teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5861: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5861: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.shared.model; bjoern@3514: bjoern@3514: public class DefaultModule implements Module { bjoern@3514: bjoern@3514: private String name; bjoern@3514: private String localname; bjoern@3528: private boolean selected = false; bjoern@3514: bjoern@3514: public DefaultModule() { bjoern@3514: } bjoern@3514: bjoern@3528: public DefaultModule(String name, String localname, boolean selected) { bjoern@3514: this.name = name; bjoern@3514: this.localname = localname; bjoern@3528: this.selected = selected; bjoern@3514: } bjoern@3514: bjoern@3514: /** bjoern@3514: * Returns the name of the module bjoern@3514: */ bjoern@3514: public String getName() { bjoern@3514: return this.name; bjoern@3514: } bjoern@3514: bjoern@3514: /** bjoern@3514: * Returns the localized name of the module bjoern@3514: */ bjoern@3514: public String getLocalizedName() { bjoern@3514: return this.localname; bjoern@3514: } bjoern@3528: bjoern@3528: /** bjoern@3528: * Returns true if the module should be selected bjoern@3528: */ bjoern@3528: public boolean isSelected() { bjoern@3528: return this.selected; bjoern@3528: } bjoern@3514: } bjoern@3514: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :