Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java @ 1435:f6fbfdc813f0
Allow client to access artifacts data via CollectionItems and Themes.
flys-client/trunk@3396 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 13 Dec 2011 09:51:47 +0000 |
parents | 290d5687f202 |
children | 98c7a46ec5ae |
comparison
equal
deleted
inserted
replaced
1434:9115b2a28be1 | 1435:f6fbfdc813f0 |
---|---|
1 package de.intevation.flys.client.shared.model; | 1 package de.intevation.flys.client.shared.model; |
2 | |
3 import de.intevation.flys.client.shared.model.CollectionItem; | |
2 | 4 |
3 | 5 |
4 /** | 6 /** |
5 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
6 */ | 8 */ |
18 | 20 |
19 protected String facet; | 21 protected String facet; |
20 | 22 |
21 protected String description; | 23 protected String description; |
22 | 24 |
25 /** CollectionItem associated with this facet/themes artifact. */ | |
26 protected CollectionItem collectionItem; | |
27 | |
23 | 28 |
24 public DefaultTheme() { | 29 public DefaultTheme() { |
25 } | 30 } |
26 | 31 |
27 | 32 |
32 int visible, | 37 int visible, |
33 String art, | 38 String art, |
34 String facet, | 39 String facet, |
35 String description) | 40 String description) |
36 { | 41 { |
37 this.position = pos; | 42 this.position = pos; |
38 this.index = index; | 43 this.index = index; |
39 this.active = active; | 44 this.active = active; |
40 this.visible = visible; | 45 this.visible = visible; |
41 this.artifact = art; | 46 this.artifact = art; |
42 this.facet = facet; | 47 this.facet = facet; |
43 this.description = description; | 48 this.description = description; |
49 this.collectionItem = null; | |
44 } | 50 } |
45 | 51 |
46 | 52 |
47 public int getPosition() { | 53 public int getPosition() { |
48 return position; | 54 return position; |
134 return false; | 140 return false; |
135 } | 141 } |
136 | 142 |
137 return true; | 143 return true; |
138 } | 144 } |
145 | |
146 /** Get the CollectionItem representing the facets artifact. */ | |
147 @Override | |
148 public CollectionItem getCollectionItem() { | |
149 return collectionItem; | |
150 } | |
151 | |
152 /** Set the CollectionItem representing the facets artifact. */ | |
153 @Override | |
154 public void setCollectionItem(CollectionItem ci) { | |
155 this.collectionItem = ci; | |
156 } | |
139 } | 157 } |
140 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 158 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |