comparison 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
comparison
equal deleted inserted replaced
1335:82c1b76fd854 1336:ceb989d64cd2
141 141
142 142
143 /** 143 /**
144 * Request a redraw of e.g. a Chart. 144 * Request a redraw of e.g. a Chart.
145 */ 145 */
146 protected void requestRedraw() { 146 public void requestRedraw() {
147 for (RedrawRequestHandler handler: redrawRequestHandlers) { 147 for (RedrawRequestHandler handler: redrawRequestHandlers) {
148 handler.onRedrawRequest(new RedrawRequestEvent(Type.RESET)); 148 handler.onRedrawRequest(new RedrawRequestEvent(Type.RESET));
149 } 149 }
150 } 150 }
151 151
550 public void onFailure (Throwable caught) { 550 public void onFailure (Throwable caught) {
551 SC.warn(MSG.getString(caught.getMessage())); 551 SC.warn(MSG.getString(caught.getMessage()));
552 } 552 }
553 public void onSuccess(CollectionItemAttribute cia) { 553 public void onSuccess(CollectionItemAttribute cia) {
554 GWT.log("Successfully loaded collectionitem attributes."); 554 GWT.log("Successfully loaded collectionitem attributes.");
555 StyleEditorWindow win = new StyleEditorWindow( 555 showStyleEditor(cia, record);
556 collection,
557 cia,
558 record);
559 win.setCollectionView(view);
560 win.show();
561 } 556 }
562 }); 557 });
558 }
559
560
561 protected void showStyleEditor(
562 CollectionItemAttribute cia,
563 FacetRecord record)
564 {
565 StyleEditorWindow win = new StyleEditorWindow(
566 collection,
567 cia,
568 record);
569 win.setParentElement(view.getParentElement());
570 win.setThemePanel(this);
571 win.show();
563 } 572 }
564 } 573 }
565 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 574 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org