Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedFacet.java @ 1715:a70e0cbc5e02
Added support for removing themes from output.
flys-artifacts/trunk@2989 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 17 Oct 2011 14:55:45 +0000 |
parents | 238145ef67da |
children | eb35570df0e8 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedFacet.java Mon Oct 17 13:00:24 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedFacet.java Mon Oct 17 14:55:45 2011 +0000 @@ -27,6 +27,9 @@ /** A property that determines if this facet is active or not. */ protected int active; + /** A property that determines if this facet is visible or not. */ + protected int visible; + public ManagedFacet() { } @@ -36,13 +39,15 @@ String desc, String uuid, int pos, - int active) + int active, + int visible) { super(index, name, desc); this.uuid = uuid; this.position = pos; this.active = active; + this.visible = visible; } @@ -66,6 +71,16 @@ } + public void setVisible(int visible) { + this.visible = visible; + } + + + public int getVisible() { + return visible; + } + + public String getArtifact() { return uuid; } @@ -84,6 +99,7 @@ ec.addAttr(facet, "active", String.valueOf(getActive()), true); ec.addAttr(facet, "index", String.valueOf(getIndex()), true); ec.addAttr(facet, "description", getDescription(), true); + ec.addAttr(facet, "visible", String.valueOf(getVisible()), true); return facet; }