bjoern@3514: package de.intevation.flys.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 :