Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java @ 1292:bdc270ea6195
Edited item attributes are saved and send to the server on accept.
flys-client/trunk@2898 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 05 Oct 2011 16:29:14 +0000 |
parents | 17bff7b27052 |
children | d9cb362b8b34 |
comparison
equal
deleted
inserted
replaced
1291:1d04f35b2cc0 | 1292:bdc270ea6195 |
---|---|
145 public void activateTheme(Theme theme, boolean active) { | 145 public void activateTheme(Theme theme, boolean active) { |
146 theme.setActive(active ? 1 : 0); | 146 theme.setActive(active ? 1 : 0); |
147 } | 147 } |
148 | 148 |
149 | 149 |
150 protected void getItemAttributes(FacetRecord record) { | 150 protected void getItemAttributes(final FacetRecord record) { |
151 Config config = Config.getInstance(); | 151 Config config = Config.getInstance(); |
152 String url = config.getServerUrl(); | 152 String url = config.getServerUrl(); |
153 String locale = config.getLocale(); | 153 String locale = config.getLocale(); |
154 | 154 |
155 String artifact = record.getTheme().getArtifact(); | 155 String artifact = record.getTheme().getArtifact(); |
165 } | 165 } |
166 public void onSuccess(CollectionItemAttribute cia) { | 166 public void onSuccess(CollectionItemAttribute cia) { |
167 GWT.log("Successfully loaded collectionitem attributes."); | 167 GWT.log("Successfully loaded collectionitem attributes."); |
168 StyleEditorWindow win = new StyleEditorWindow( | 168 StyleEditorWindow win = new StyleEditorWindow( |
169 collection, | 169 collection, |
170 cia); | 170 cia, |
171 record); | |
171 win.setCollectionView(view); | 172 win.setCollectionView(view); |
172 win.show(); | 173 win.show(); |
173 } | 174 } |
174 }); | 175 }); |
175 } | 176 } |