Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultTheme.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultTheme.java@821a02bbfb4e |
children | 172338b1407f |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.client.shared.model; | |
2 | |
3 /** | |
4 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
5 */ | |
6 public class DefaultTheme implements Theme { | |
7 | |
8 protected int position; | |
9 | |
10 protected int index; | |
11 | |
12 protected int active; | |
13 | |
14 protected int visible; | |
15 | |
16 protected String artifact; | |
17 | |
18 protected String facet; | |
19 | |
20 protected String description; | |
21 | |
22 /** CollectionItem associated with this facet/themes artifact. */ | |
23 protected CollectionItem collectionItem; | |
24 | |
25 | |
26 public DefaultTheme() { | |
27 } | |
28 | |
29 | |
30 public DefaultTheme( | |
31 int pos, | |
32 int index, | |
33 int active, | |
34 int visible, | |
35 String art, | |
36 String facet, | |
37 String description) | |
38 { | |
39 this.position = pos; | |
40 this.index = index; | |
41 this.active = active; | |
42 this.visible = visible; | |
43 this.artifact = art; | |
44 this.facet = facet; | |
45 this.description = description; | |
46 this.collectionItem = null; | |
47 } | |
48 | |
49 | |
50 public int getPosition() { | |
51 return position; | |
52 } | |
53 | |
54 | |
55 public void setPosition(int pos) { | |
56 this.position = pos; | |
57 } | |
58 | |
59 | |
60 public int getIndex() { | |
61 return index; | |
62 } | |
63 | |
64 | |
65 public int getActive() { | |
66 return active; | |
67 } | |
68 | |
69 | |
70 public void setActive(int active) { | |
71 this.active = active; | |
72 } | |
73 | |
74 | |
75 public String getArtifact() { | |
76 return artifact; | |
77 } | |
78 | |
79 | |
80 public String getFacet() { | |
81 return facet; | |
82 } | |
83 | |
84 | |
85 public String getDescription() { | |
86 return description; | |
87 } | |
88 | |
89 | |
90 public void setDescription(String description) { | |
91 this.description = description; | |
92 } | |
93 | |
94 | |
95 public int getVisible() { | |
96 return visible; | |
97 } | |
98 | |
99 | |
100 public void setVisible(int visible) { | |
101 this.visible = visible; | |
102 } | |
103 | |
104 | |
105 public boolean equals(Object o) { | |
106 if (!(o instanceof DefaultTheme)) { | |
107 return false; | |
108 } | |
109 | |
110 DefaultTheme other = (DefaultTheme) o; | |
111 | |
112 if (other.position != position) { | |
113 return false; | |
114 } | |
115 | |
116 if (!other.artifact.equals(artifact)) { | |
117 return false; | |
118 } | |
119 | |
120 if (other.active != active) { | |
121 return false; | |
122 } | |
123 | |
124 if (!other.facet.equals(facet)) { | |
125 return false; | |
126 } | |
127 | |
128 if (!other.description.equals(description)) { | |
129 return false; | |
130 } | |
131 | |
132 if (other.index != index) { | |
133 return false; | |
134 } | |
135 | |
136 if (other.visible != visible) { | |
137 return false; | |
138 } | |
139 | |
140 return true; | |
141 } | |
142 | |
143 /** Get the CollectionItem representing the facets artifact. */ | |
144 @Override | |
145 public CollectionItem getCollectionItem() { | |
146 return collectionItem; | |
147 } | |
148 | |
149 /** Set the CollectionItem representing the facets artifact. */ | |
150 @Override | |
151 public void setCollectionItem(CollectionItem ci) { | |
152 this.collectionItem = ci; | |
153 } | |
154 } | |
155 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |