comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java @ 5658:995320711d80

Temporary remove classification from floodmap plane theme editor (#801).
author Christian Lins <christian.lins@intevation.de>
date Thu, 11 Apr 2013 13:58:18 +0200
parents 52068f1231da
children
comparison
equal deleted inserted replaced
5657:41a71071755b 5658:995320711d80
1 package de.intevation.flys.client.client.ui; 1 package de.intevation.flys.client.client.ui;
2 2
3 import com.google.gwt.core.client.GWT; 3 import com.google.gwt.core.client.GWT;
4 import com.google.gwt.user.client.rpc.AsyncCallback; 4 import com.google.gwt.user.client.rpc.AsyncCallback;
5
5 import com.smartgwt.client.types.Alignment; 6 import com.smartgwt.client.types.Alignment;
6 import com.smartgwt.client.util.SC; 7 import com.smartgwt.client.util.SC;
7 import com.smartgwt.client.widgets.Button; 8 import com.smartgwt.client.widgets.Button;
8 import com.smartgwt.client.widgets.Canvas; 9 import com.smartgwt.client.widgets.Canvas;
9 import com.smartgwt.client.widgets.Window; 10 import com.smartgwt.client.widgets.Window;
325 DynamicForm property = createPropertyUI( 326 DynamicForm property = createPropertyUI(
326 set.getDisplayName(), 327 set.getDisplayName(),
327 set.getName(), 328 set.getName(),
328 set.getType(), 329 set.getType(),
329 set.getDefaultValue()); 330 set.getDefaultValue());
330 vl.addMember(property); 331 if (property != null) {
332 vl.addMember(property);
333 }
331 } 334 }
332 335
333 // Add settings not in whitelist above. 336 // Add settings not in whitelist above.
334 for (StyleSetting set: style.getSettings()) { 337 for (StyleSetting set: style.getSettings()) {
335 338
343 DynamicForm property = createPropertyUI( 346 DynamicForm property = createPropertyUI(
344 set.getDisplayName(), 347 set.getDisplayName(),
345 set.getName(), 348 set.getName(),
346 set.getType(), 349 set.getType(),
347 set.getDefaultValue()); 350 set.getDefaultValue());
348 vl.addMember(property); 351 if (property != null) {
352 vl.addMember(property);
353 }
349 } 354 }
350 355
351 return vl; 356 return vl;
352 } 357 }
353 358
432 valueMap.put("16", "16"); 437 valueMap.put("16", "16");
433 valueMap.put("18", "18"); 438 valueMap.put("18", "18");
434 valueMap.put("20", "20"); 439 valueMap.put("20", "20");
435 f.setValueMap(valueMap); 440 f.setValueMap(valueMap);
436 f.setValue(value); 441 f.setValue(value);
442 // FIXME: Make that work again
443 return null;
437 } 444 }
438 else if (name.contains("transparency")) { 445 else if (name.contains("transparency")) {
439 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); 446 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
440 for (int n = 10; n < 100; n += 10) { 447 for (int n = 10; n < 100; n += 10) {
441 valueMap.put(Integer.toString(n), n + "%"); 448 valueMap.put(Integer.toString(n), n + "%");

http://dive4elements.wald.intevation.org