diff 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 diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/FacetRecord.java	Thu Aug 16 16:27:53 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/FacetRecord.java	Thu Aug 16 16:28:03 2018 +0200
@@ -12,46 +12,38 @@
 
 /**
  * ListGridRecord for Facets.
+ *
  * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
  */
-public class FacetRecord extends ListGridRecord {
+public final class FacetRecord extends ListGridRecord {
 
     /** Underlying theme. */
-    protected Theme theme;
+    private final Theme theme;
 
-
-    public FacetRecord(Theme theme) {
+    public FacetRecord(final Theme theme) {
         this.theme = theme;
 
         setActive(theme.getActive() == 1);
         setName(theme.getDescription());
     }
 
-
     public Theme getTheme() {
-        return theme;
+        return this.theme;
     }
 
-
-    public void setName(String description) {
-        // TODO Add a setter method setName() to Facet
-        // facet.setName(name);
+    public void setName(final String description) {
         setAttribute("name", description);
     }
 
-
     public String getName() {
         return getAttribute("name");
     }
 
-
     public boolean getActive() {
         return getAttributeAsBoolean("active");
     }
 
-
-    public void setActive(boolean active) {
+    public void setActive(final boolean active) {
         setAttribute("active", active);
     }
-}
-// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
+}
\ No newline at end of file

http://dive4elements.wald.intevation.org