Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/sessionmodel/DefaultSessionModel.java @ 706:2659a5b1fa1e
Added a link (and a controller) to toggle between german and english language (issue254).
gnv/trunk@970 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 23 Apr 2010 07:55:05 +0000 |
parents | 89ade245ca7a |
children | a88fc6320cf8 |
comparison
equal
deleted
inserted
replaced
705:f550bd27a3f1 | 706:2659a5b1fa1e |
---|---|
5 import de.intevation.gnv.artifactdatabase.objects.ArtifactStatisticsSet; | 5 import de.intevation.gnv.artifactdatabase.objects.ArtifactStatisticsSet; |
6 import de.intevation.gnv.artifactdatabase.objects.OutputMode; | 6 import de.intevation.gnv.artifactdatabase.objects.OutputMode; |
7 | 7 |
8 import java.util.Collection; | 8 import java.util.Collection; |
9 import java.util.Iterator; | 9 import java.util.Iterator; |
10 import java.util.Locale; | |
10 | 11 |
11 import org.apache.log4j.Logger; | 12 import org.apache.log4j.Logger; |
12 | 13 |
13 /** | 14 /** |
14 * The default implementation of <code>SessionModel</code> which stores the | 15 * The default implementation of <code>SessionModel</code> which stores the |
37 | 38 |
38 private DiagrammOptions diagrammOptions = null; | 39 private DiagrammOptions diagrammOptions = null; |
39 | 40 |
40 private Collection<ArtifactStatisticsSet> statistics = null; | 41 private Collection<ArtifactStatisticsSet> statistics = null; |
41 | 42 |
43 private Locale currentLocale; | |
44 | |
42 /** | 45 /** |
43 * Constructor | 46 * Constructor |
44 */ | 47 */ |
45 public DefaultSessionModel() { | 48 public DefaultSessionModel() { |
46 super(); | 49 this(null); |
50 } | |
51 | |
52 /** | |
53 * Constructor | |
54 * | |
55 * @param currentLocale A locale used to create the user interface. | |
56 */ | |
57 public DefaultSessionModel(Locale currentLocale) { | |
58 this.currentLocale = currentLocale; | |
47 } | 59 } |
48 | 60 |
49 | 61 |
50 public void selectArtifactFactory(String artiFactFactoryId) { | 62 public void selectArtifactFactory(String artiFactFactoryId) { |
51 Collection<ArtifactObject> artifactObjects = this | 63 Collection<ArtifactObject> artifactObjects = this |
139 } | 151 } |
140 | 152 |
141 public void setStatistics(Collection<ArtifactStatisticsSet> statistics) { | 153 public void setStatistics(Collection<ArtifactStatisticsSet> statistics) { |
142 this.statistics = statistics; | 154 this.statistics = statistics; |
143 } | 155 } |
156 | |
157 public Locale getCurrentLocale() { | |
158 return currentLocale; | |
159 } | |
160 | |
161 public void setCurrentLocale(Locale currentLocale) { | |
162 this.currentLocale = currentLocale; | |
163 } | |
144 } | 164 } |
145 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 165 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |