Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/StyleSetting.java @ 2908:cd068ff7966d
Show only style attributes in StyleEditorWindow that are not 'hidden'.
flys-client/trunk@4685 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 18 Jun 2012 11:17:29 +0000 |
parents | 92074508a387 |
children |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/StyleSetting.java Mon Jun 18 08:44:52 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/StyleSetting.java Mon Jun 18 11:17:29 2012 +0000 @@ -23,6 +23,9 @@ /**The type*/ protected String type; + /** Determines, if the property should be visible in UI or not.*/ + protected boolean hidden; + /** * Create a new StyleSetting for theme attribution. @@ -40,17 +43,19 @@ * @param type The attribute type. */ public StyleSetting( - String name, - String defaultValue, - String displayName, - String hints, - String type) + String name, + String defaultValue, + String displayName, + String hints, + String type, + boolean hidden) { - this.name = name; + this.name = name; this.defaultValue = defaultValue; - this.displayName = displayName; - this.hints = hints; - this.type = type; + this.displayName = displayName; + this.hints = hints; + this.type = type; + this.hidden = hidden; } public void setName(String name) { @@ -92,6 +97,10 @@ public String getType() { return this.type; } + + public boolean isHidden() { + return hidden; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :