Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Module.java @ 3630:28be160b5870
Add a module service. It's now possible to configure the modules which are
available for a client. With the selected attribute it is possible to give
a hint for the client which module should be pre selected by default
flys-artifacts/trunk@5330 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 31 Aug 2012 13:17:16 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3629:f3717e625b0a | 3630:28be160b5870 |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 /** | |
4 * Represents a Module as is is loaded from the config | |
5 */ | |
6 public class Module { | |
7 | |
8 private String name; | |
9 private boolean selected; | |
10 | |
11 public Module(String name, boolean selected) { | |
12 this.name = name; | |
13 this.selected = selected; | |
14 } | |
15 | |
16 public String getName() { | |
17 return this.name; | |
18 } | |
19 | |
20 public boolean isSelected() { | |
21 return this.selected; | |
22 } | |
23 } | |
24 | |
25 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80: |