Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java @ 1382:78542ff1f562
Update map and theme panel when new layers are added via datacage or removed by context menu.
flys-client/trunk@3155 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 03 Nov 2011 14:51:16 +0000 |
parents | 546f7f890ffa |
children | 25be27e33b77 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java Tue Nov 01 16:07:39 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java Thu Nov 03 14:51:16 2011 +0000 @@ -220,7 +220,7 @@ } FacetRecord newRecord = createRecord(theme); - list.addData(newRecord); + addFacetRecord(newRecord); String newArtifact = theme.getArtifact(); String newFacet = theme.getFacet(); @@ -242,6 +242,11 @@ } + protected void addFacetRecord(FacetRecord rec) { + list.addData(rec); + } + + protected FacetRecord createRecord(Theme theme) { return new FacetRecord(theme); }