Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/FacetRecord.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/FacetRecord.java@821a02bbfb4e |
children | 172338b1407f |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.client.shared.model; | |
2 | |
3 import com.smartgwt.client.widgets.grid.ListGridRecord; | |
4 | |
5 /** | |
6 * ListGridRecord for Facets. | |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
8 */ | |
9 public class FacetRecord extends ListGridRecord { | |
10 | |
11 /** Underlying theme. */ | |
12 protected Theme theme; | |
13 | |
14 | |
15 public FacetRecord(Theme theme) { | |
16 this.theme = theme; | |
17 | |
18 setActive(theme.getActive() == 1); | |
19 setName(theme.getDescription()); | |
20 } | |
21 | |
22 | |
23 public Theme getTheme() { | |
24 return theme; | |
25 } | |
26 | |
27 | |
28 public void setName(String description) { | |
29 // TODO Add a setter method setName() to Facet | |
30 // facet.setName(name); | |
31 setAttribute("name", description); | |
32 } | |
33 | |
34 | |
35 public String getName() { | |
36 return getAttribute("name"); | |
37 } | |
38 | |
39 | |
40 public boolean getActive() { | |
41 return getAttributeAsBoolean("active"); | |
42 } | |
43 | |
44 | |
45 public void setActive(boolean active) { | |
46 setAttribute("active", active); | |
47 } | |
48 } | |
49 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |