Mercurial > dive4elements > river
view gwt-client/src/main/java/org/dive4elements/river/client/shared/model/FacetRecord.java @ 9416:05405292a7ca
Navigationtheme panel now shows themes of dWt and WQ charts grayed out, if the current station is outside the valid range of the theme.
author | gernotbelger |
---|---|
date | Thu, 16 Aug 2018 16:28:03 +0200 |
parents | ea9eef426962 |
children |
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde * Software engineering by Intevation GmbH * * This file is Free Software under the GNU AGPL (>=v3) * and comes with ABSOLUTELY NO WARRANTY! Check out the * documentation coming with Dive4Elements River for details. */ package org.dive4elements.river.client.shared.model; import com.smartgwt.client.widgets.grid.ListGridRecord; /** * ListGridRecord for Facets. * * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public final class FacetRecord extends ListGridRecord { /** Underlying theme. */ private final Theme theme; public FacetRecord(final Theme theme) { this.theme = theme; setActive(theme.getActive() == 1); setName(theme.getDescription()); } public Theme getTheme() { return this.theme; } public void setName(final String description) { setAttribute("name", description); } public String getName() { return getAttribute("name"); } public boolean getActive() { return getAttributeAsBoolean("active"); } public void setActive(final boolean active) { setAttribute("active", active); } }