Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java @ 211:b92281182c6b
Removed the FLYSMessages interface and replaced it with a FLYSConstants interface - this interface has the ability to lookup i18n strings with given keys.
flys-client/trunk@1645 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 05 Apr 2011 08:13:48 +0000 |
parents | c587903f02a4 |
children | e3ea3c74b7f5 |
comparison
equal
deleted
inserted
replaced
210:c587903f02a4 | 211:b92281182c6b |
---|---|
9 import com.smartgwt.client.widgets.events.ClickEvent; | 9 import com.smartgwt.client.widgets.events.ClickEvent; |
10 import com.smartgwt.client.widgets.events.ClickHandler; | 10 import com.smartgwt.client.widgets.events.ClickHandler; |
11 import com.smartgwt.client.widgets.layout.HLayout; | 11 import com.smartgwt.client.widgets.layout.HLayout; |
12 | 12 |
13 import de.intevation.flys.client.client.FLYS; | 13 import de.intevation.flys.client.client.FLYS; |
14 import de.intevation.flys.client.client.FLYSMessages; | 14 import de.intevation.flys.client.client.FLYSConstants; |
15 import de.intevation.flys.client.shared.model.User; | 15 import de.intevation.flys.client.shared.model.User; |
16 | 16 |
17 | 17 |
18 /** | 18 /** |
19 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 19 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
20 */ | 20 */ |
21 public class MainMenu extends HLayout { | 21 public class MainMenu extends HLayout { |
22 | 22 |
23 /** The interface that provides i18n messages. */ | 23 /** The interface that provides i18n messages. */ |
24 private FLYSMessages messages = GWT.create(FLYSMessages.class); | 24 private FLYSConstants messages = GWT.create(FLYSConstants.class); |
25 | 25 |
26 /** An instance to FLYS.*/ | 26 /** An instance to FLYS.*/ |
27 protected FLYS flys; | 27 protected FLYS flys; |
28 | 28 |
29 /** The user that is currently logged in. */ | 29 /** The user that is currently logged in. */ |
183 } | 183 } |
184 | 184 |
185 | 185 |
186 /** | 186 /** |
187 * Update the text field that shows the current user. If no user is | 187 * Update the text field that shows the current user. If no user is |
188 * currently logged in, the text will display {@link FLYSMessages.guest()}. | 188 * currently logged in, the text will display {@link FLYSConstants.guest()}. |
189 */ | 189 */ |
190 public void updateCurrentUser() { | 190 public void updateCurrentUser() { |
191 String name = currentUser != null | 191 String name = currentUser != null |
192 ? currentUser.getName() | 192 ? currentUser.getName() |
193 : messages.guest(); | 193 : messages.guest(); |