Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java @ 1287:95ecb98c6015
Added skeleton for editor window.
flys-client/trunk@2873 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 30 Sep 2011 13:42:00 +0000 |
parents | b643622d77fe |
children | 17bff7b27052 |
comparison
equal
deleted
inserted
replaced
1286:b643622d77fe | 1287:95ecb98c6015 |
---|---|
26 import de.intevation.flys.client.shared.model.CollectionItemAttribute; | 26 import de.intevation.flys.client.shared.model.CollectionItemAttribute; |
27 | 27 |
28 import de.intevation.flys.client.client.FLYSConstants; | 28 import de.intevation.flys.client.client.FLYSConstants; |
29 import de.intevation.flys.client.client.ui.ThemePanel; | 29 import de.intevation.flys.client.client.ui.ThemePanel; |
30 import de.intevation.flys.client.client.Config; | 30 import de.intevation.flys.client.client.Config; |
31 import de.intevation.flys.client.client.ui.CollectionView; | |
31 | 32 |
32 import de.intevation.flys.client.client.services.FeedService; | 33 import de.intevation.flys.client.client.services.FeedService; |
33 import de.intevation.flys.client.client.services.FeedServiceAsync; | 34 import de.intevation.flys.client.client.services.FeedServiceAsync; |
34 import de.intevation.flys.client.client.services.CollectionItemAttributeService; | 35 import de.intevation.flys.client.client.services.CollectionItemAttributeService; |
35 import de.intevation.flys.client.client.services.CollectionItemAttributeServiceAsync; | 36 import de.intevation.flys.client.client.services.CollectionItemAttributeServiceAsync; |
42 /** The interface that provides i18n messages. */ | 43 /** The interface that provides i18n messages. */ |
43 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); | 44 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); |
44 | 45 |
45 /** The collection */ | 46 /** The collection */ |
46 protected Collection collection; | 47 protected Collection collection; |
48 | |
49 /** The collection view*/ | |
50 protected CollectionView view; | |
47 | 51 |
48 /** The service used to get collection item attributes. */ | 52 /** The service used to get collection item attributes. */ |
49 protected CollectionItemAttributeServiceAsync itemAttributeService = | 53 protected CollectionItemAttributeServiceAsync itemAttributeService = |
50 GWT.create(CollectionItemAttributeService.class); | 54 GWT.create(CollectionItemAttributeService.class); |
51 | 55 |
160 public void onFailure (Throwable caught) { | 164 public void onFailure (Throwable caught) { |
161 GWT.log("Could not get Collection item attributes."); | 165 GWT.log("Could not get Collection item attributes."); |
162 } | 166 } |
163 public void onSuccess(CollectionItemAttribute cia) { | 167 public void onSuccess(CollectionItemAttribute cia) { |
164 GWT.log("Successfully loaded collectionitem attributes."); | 168 GWT.log("Successfully loaded collectionitem attributes."); |
169 StyleEditorWindow win = new StyleEditorWindow( | |
170 collection, | |
171 cia); | |
172 win.setCollectionView(view); | |
173 win.show(); | |
165 } | 174 } |
166 }); | 175 }); |
167 } | 176 } |
177 | |
178 | |
179 public void setCollectionView (CollectionView view) { | |
180 this.view = view; | |
181 } | |
168 } | 182 } |
169 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 183 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |