Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java @ 575:5277f46a63c2
The description of a facet is now displayed in the ChartThemePanel.
flys-client/trunk@2141 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 17 Jun 2011 09:57:23 +0000 |
parents | a1048d310829 |
children | 374712890b94 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java Thu Jun 16 15:57:20 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java Fri Jun 17 09:57:23 2011 +0000 @@ -8,22 +8,35 @@ protected int position; + protected int index; + protected boolean active; protected String artifact; protected String facet; + protected String description; + public DefaultTheme() { } - public DefaultTheme(int pos, boolean active, String art, String facet) { - this.position = pos; - this.active = active; - this.artifact = art; - this.facet = facet; + public DefaultTheme( + int pos, + int index, + boolean active, + String art, + String facet, + String description) + { + this.position = pos; + this.index = index; + this.active = active; + this.artifact = art; + this.facet = facet; + this.description = description; } @@ -37,6 +50,11 @@ } + public int getIndex() { + return index; + } + + public boolean isActive() { return active; } @@ -57,6 +75,11 @@ } + public String getDescription() { + return description; + } + + public boolean equals(Object o) { if (!(o instanceof DefaultTheme)) { return false; @@ -80,6 +103,14 @@ return false; } + if (!other.description.equals(description)) { + return false; + } + + if (other.index != index) { + return false; + } + return true; } }