Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/ThemeList.java @ 526:96e60e0a4345
Added a service stub to update/modify the attribute of a collection (used in the theme control panel).
flys-client/trunk@2005 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 25 May 2011 14:58:42 +0000 |
parents | ba238f917b94 |
children | 39d9291513cc |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/ThemeList.java Wed May 25 14:50:37 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/ThemeList.java Wed May 25 14:58:42 2011 +0000 @@ -49,5 +49,19 @@ return null; } + + + public void removeTheme(Theme theme) { + if (theme != null) { + themes.remove(theme); + } + } + + + public void addTheme(Theme theme) { + if (theme != null) { + themes.add(theme); + } + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :