Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1381:4459901e4ec0 | 1382:78542ff1f562 |
---|---|
218 if (theme == null || theme.getVisible() == 0) { | 218 if (theme == null || theme.getVisible() == 0) { |
219 continue; | 219 continue; |
220 } | 220 } |
221 | 221 |
222 FacetRecord newRecord = createRecord(theme); | 222 FacetRecord newRecord = createRecord(theme); |
223 list.addData(newRecord); | 223 addFacetRecord(newRecord); |
224 | 224 |
225 String newArtifact = theme.getArtifact(); | 225 String newArtifact = theme.getArtifact(); |
226 String newFacet = theme.getFacet(); | 226 String newFacet = theme.getFacet(); |
227 int newIndex = theme.getIndex(); | 227 int newIndex = theme.getIndex(); |
228 | 228 |
237 } | 237 } |
238 } | 238 } |
239 } | 239 } |
240 | 240 |
241 fireOutputParameterChanged(); | 241 fireOutputParameterChanged(); |
242 } | |
243 | |
244 | |
245 protected void addFacetRecord(FacetRecord rec) { | |
246 list.addData(rec); | |
242 } | 247 } |
243 | 248 |
244 | 249 |
245 protected FacetRecord createRecord(Theme theme) { | 250 protected FacetRecord createRecord(Theme theme) { |
246 return new FacetRecord(theme); | 251 return new FacetRecord(theme); |