comparison 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
comparison
equal deleted inserted replaced
1714:004b1b0838d6 1715:a70e0cbc5e02
25 protected int position; 25 protected int position;
26 26
27 /** A property that determines if this facet is active or not. */ 27 /** A property that determines if this facet is active or not. */
28 protected int active; 28 protected int active;
29 29
30 /** A property that determines if this facet is visible or not. */
31 protected int visible;
32
30 public ManagedFacet() { 33 public ManagedFacet() {
31 } 34 }
32 35
33 public ManagedFacet( 36 public ManagedFacet(
34 String name, 37 String name,
35 int index, 38 int index,
36 String desc, 39 String desc,
37 String uuid, 40 String uuid,
38 int pos, 41 int pos,
39 int active) 42 int active,
43 int visible)
40 { 44 {
41 super(index, name, desc); 45 super(index, name, desc);
42 46
43 this.uuid = uuid; 47 this.uuid = uuid;
44 this.position = pos; 48 this.position = pos;
45 this.active = active; 49 this.active = active;
50 this.visible = visible;
46 } 51 }
47 52
48 53
49 public void setPosition(int pos) { 54 public void setPosition(int pos) {
50 this.position = pos; 55 this.position = pos;
64 public int getActive() { 69 public int getActive() {
65 return active; 70 return active;
66 } 71 }
67 72
68 73
74 public void setVisible(int visible) {
75 this.visible = visible;
76 }
77
78
79 public int getVisible() {
80 return visible;
81 }
82
83
69 public String getArtifact() { 84 public String getArtifact() {
70 return uuid; 85 return uuid;
71 } 86 }
72 87
73 88
82 ec.addAttr(facet, "facet", getName(), true); 97 ec.addAttr(facet, "facet", getName(), true);
83 ec.addAttr(facet, "pos", String.valueOf(getPosition()), true); 98 ec.addAttr(facet, "pos", String.valueOf(getPosition()), true);
84 ec.addAttr(facet, "active", String.valueOf(getActive()), true); 99 ec.addAttr(facet, "active", String.valueOf(getActive()), true);
85 ec.addAttr(facet, "index", String.valueOf(getIndex()), true); 100 ec.addAttr(facet, "index", String.valueOf(getIndex()), true);
86 ec.addAttr(facet, "description", getDescription(), true); 101 ec.addAttr(facet, "description", getDescription(), true);
102 ec.addAttr(facet, "visible", String.valueOf(getVisible()), true);
87 103
88 return facet; 104 return facet;
89 } 105 }
90 106
91 public void set(ManagedFacet other) { 107 public void set(ManagedFacet other) {

http://dive4elements.wald.intevation.org