Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java @ 3528:b5825159250e
Add isSelected method to Module classes
flys-client/trunk@5331 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 31 Aug 2012 13:21:26 +0000 |
parents | 1f293ada93d0 |
children |
comparison
equal
deleted
inserted
replaced
3527:6ededa5aa803 | 3528:b5825159250e |
---|---|
2 | 2 |
3 public class DefaultModule implements Module { | 3 public class DefaultModule implements Module { |
4 | 4 |
5 private String name; | 5 private String name; |
6 private String localname; | 6 private String localname; |
7 private boolean selected = false; | |
7 | 8 |
8 public DefaultModule() { | 9 public DefaultModule() { |
9 } | 10 } |
10 | 11 |
11 public DefaultModule(String name, String localname) { | 12 public DefaultModule(String name, String localname, boolean selected) { |
12 this.name = name; | 13 this.name = name; |
13 this.localname = localname; | 14 this.localname = localname; |
15 this.selected = selected; | |
14 } | 16 } |
15 | 17 |
16 /** | 18 /** |
17 * Returns the name of the module | 19 * Returns the name of the module |
18 */ | 20 */ |
24 * Returns the localized name of the module | 26 * Returns the localized name of the module |
25 */ | 27 */ |
26 public String getLocalizedName() { | 28 public String getLocalizedName() { |
27 return this.localname; | 29 return this.localname; |
28 } | 30 } |
31 | |
32 /** | |
33 * Returns true if the module should be selected | |
34 */ | |
35 public boolean isSelected() { | |
36 return this.selected; | |
37 } | |
29 } | 38 } |
30 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 : | 39 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 : |