Mercurial > dive4elements > river
annotate gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultModule.java @ 5861:172338b1407f
GWT client: Added copyright header.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 14:30:15 +0200 |
parents | 5aa05a7a34b7 |
children | ea9eef426962 |
rev | line source |
---|---|
5861
172338b1407f
GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
172338b1407f
GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
2 * Software engineering by Intevation GmbH |
172338b1407f
GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
3 * |
172338b1407f
GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
4 * This file is Free Software under the GNU AGPL (>=v3) |
172338b1407f
GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
172338b1407f
GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
6 * documentation coming with Dive4Elements River for details. |
172338b1407f
GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
7 */ |
172338b1407f
GWT client: Added copyright header.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
8 |
5835
821a02bbfb4e
Fixed internal java dependencies
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5834
diff
changeset
|
9 package org.dive4elements.river.client.shared.model; |
3514
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
10 |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
11 public class DefaultModule implements Module { |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
12 |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
13 private String name; |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
14 private String localname; |
3528
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
15 private boolean selected = false; |
3514
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
16 |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
17 public DefaultModule() { |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
18 } |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
19 |
3528
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
20 public DefaultModule(String name, String localname, boolean selected) { |
3514
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
21 this.name = name; |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
22 this.localname = localname; |
3528
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
23 this.selected = selected; |
3514
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
24 } |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
25 |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
26 /** |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
27 * Returns the name of the module |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
28 */ |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
29 public String getName() { |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
30 return this.name; |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
31 } |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
32 |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
33 /** |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
34 * Returns the localized name of the module |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
35 */ |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
36 public String getLocalizedName() { |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
37 return this.localname; |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
38 } |
3528
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
39 |
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
40 /** |
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
41 * Returns true if the module should be selected |
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
42 */ |
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
43 public boolean isSelected() { |
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
44 return this.selected; |
b5825159250e
Add isSelected method to Module classes
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
3514
diff
changeset
|
45 } |
3514
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
46 } |
1f293ada93d0
Added class representation of a module artifact
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
47 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 : |