comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java @ 1327:8a93fb299e64

#288 Added legend symbols to the MapThemePanel. flys-client/trunk@2971 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 14 Oct 2011 12:46:46 +0000
parents c4c957a9c092
children aa2313e0f18d
comparison
equal deleted inserted replaced
1326:974c6b3700de 1327:8a93fb299e64
191 191
192 if (theme == null) { 192 if (theme == null) {
193 continue; 193 continue;
194 } 194 }
195 195
196 list.addData(new FacetRecord(theme)); 196 list.addData(createRecord(theme));
197 } 197 }
198 198
199 fireOutputParameterChanged(); 199 fireOutputParameterChanged();
200 }
201
202
203 protected ListGridRecord createRecord(Theme theme) {
204 return new FacetRecord(theme);
200 } 205 }
201 206
202 207
203 /** 208 /**
204 * This method triggers the CollectionAttributeService. Based on the current 209 * This method triggers the CollectionAttributeService. Based on the current
236 241
237 /** 242 /**
238 * Create and configure the Grid to display. 243 * Create and configure the Grid to display.
239 */ 244 */
240 protected ListGrid createGrid() { 245 protected ListGrid createGrid() {
241 ListGrid grid = new ListGrid(); 246 ListGrid grid = createNewGrid();
242 grid.addRowContextClickHandler(new RowContextClickHandler() { 247 grid.addRowContextClickHandler(new RowContextClickHandler() {
243 public void onRowContextClick(RowContextClickEvent event) { 248 public void onRowContextClick(RowContextClickEvent event) {
244 ListGridRecord[] records = list.getSelection(); 249 ListGridRecord[] records = list.getSelection();
245 250
246 Menu menu = null; 251 Menu menu = null;
263 } 268 }
264 } 269 }
265 }); 270 });
266 271
267 return grid; 272 return grid;
273 }
274
275
276 protected ListGrid createNewGrid() {
277 return new ListGrid();
268 } 278 }
269 279
270 280
271 /** 281 /**
272 * A method that removes all records from theme grid. 282 * A method that removes all records from theme grid.

http://dive4elements.wald.intevation.org