Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java @ 1336:ceb989d64cd2
Request redraw on style attribute change.
flys-client/trunk@2981 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 17 Oct 2011 10:07:48 +0000 |
parents | aa2313e0f18d |
children | c730f0438510 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java Mon Oct 17 09:46:25 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java Mon Oct 17 10:07:48 2011 +0000 @@ -143,7 +143,7 @@ /** * Request a redraw of e.g. a Chart. */ - protected void requestRedraw() { + public void requestRedraw() { for (RedrawRequestHandler handler: redrawRequestHandlers) { handler.onRedrawRequest(new RedrawRequestEvent(Type.RESET)); } @@ -552,14 +552,23 @@ } public void onSuccess(CollectionItemAttribute cia) { GWT.log("Successfully loaded collectionitem attributes."); - StyleEditorWindow win = new StyleEditorWindow( - collection, - cia, - record); - win.setCollectionView(view); - win.show(); + showStyleEditor(cia, record); } }); } + + + protected void showStyleEditor( + CollectionItemAttribute cia, + FacetRecord record) + { + StyleEditorWindow win = new StyleEditorWindow( + collection, + cia, + record); + win.setParentElement(view.getParentElement()); + win.setThemePanel(this); + win.show(); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :