comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java @ 1340:290d5687f202

#253 Implemented ThemePanel's 'remove' action. flys-client/trunk@2990 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 17 Oct 2011 15:00:12 +0000
parents aa2313e0f18d
children f6fbfdc813f0
comparison
equal deleted inserted replaced
1339:d935fd42ae0e 1340:290d5687f202
9 protected int position; 9 protected int position;
10 10
11 protected int index; 11 protected int index;
12 12
13 protected int active; 13 protected int active;
14
15 protected int visible;
14 16
15 protected String artifact; 17 protected String artifact;
16 18
17 protected String facet; 19 protected String facet;
18 20
25 27
26 public DefaultTheme( 28 public DefaultTheme(
27 int pos, 29 int pos,
28 int index, 30 int index,
29 int active, 31 int active,
32 int visible,
30 String art, 33 String art,
31 String facet, 34 String facet,
32 String description) 35 String description)
33 { 36 {
34 this.position = pos; 37 this.position = pos;
35 this.index = index; 38 this.index = index;
36 this.active = active; 39 this.active = active;
40 this.visible = visible;
37 this.artifact = art; 41 this.artifact = art;
38 this.facet = facet; 42 this.facet = facet;
39 this.description = description; 43 this.description = description;
40 } 44 }
41 45
83 public void setDescription(String description) { 87 public void setDescription(String description) {
84 this.description = description; 88 this.description = description;
85 } 89 }
86 90
87 91
92 public int getVisible() {
93 return visible;
94 }
95
96
97 public void setVisible(int visible) {
98 this.visible = visible;
99 }
100
101
88 public boolean equals(Object o) { 102 public boolean equals(Object o) {
89 if (!(o instanceof DefaultTheme)) { 103 if (!(o instanceof DefaultTheme)) {
90 return false; 104 return false;
91 } 105 }
92 106
114 128
115 if (other.index != index) { 129 if (other.index != index) {
116 return false; 130 return false;
117 } 131 }
118 132
133 if (other.visible != visible) {
134 return false;
135 }
136
119 return true; 137 return true;
120 } 138 }
121 } 139 }
122 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 140 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org