comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/MapPrintPanel.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 890f708b18d6
children
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
49 49
50 private static final String MAPFISH_MAPTITLE = "mapfish_mapTitle"; 50 private static final String MAPFISH_MAPTITLE = "mapfish_mapTitle";
51 private static final String MAPFISH_RANGE = "mapfish_data_range"; 51 private static final String MAPFISH_RANGE = "mapfish_data_range";
52 private static final String MAPFISH_SUBTITLE = "mapfish_data_subtitle"; 52 private static final String MAPFISH_SUBTITLE = "mapfish_data_subtitle";
53 private static final String MAPFISH_STRETCH = "mapfish_data_strech"; 53 private static final String MAPFISH_STRETCH = "mapfish_data_strech";
54 private static final String MAPFISH_INSTITUTION = "mapfish_data_institution"; 54 private static final String MAPFISH_INSTITUTION =
55 "mapfish_data_institution";
55 private static final String MAPFISH_SOURCE = "mapfish_data_source"; 56 private static final String MAPFISH_SOURCE = "mapfish_data_source";
56 private static final String MAPFISH_CREATOR = "mapfish_data_creator"; 57 private static final String MAPFISH_CREATOR = "mapfish_data_creator";
57 private static final String MAPFISH_DATEPLACE = "mapfish_data_dateplace"; 58 private static final String MAPFISH_DATEPLACE = "mapfish_data_dateplace";
58 private static final String MAPFISH_RIVER = "mapfish_data_river"; 59 private static final String MAPFISH_RIVER = "mapfish_data_river";
59 private static final String MAPFISH_LOGO = "mapfish_logo"; 60 private static final String MAPFISH_LOGO = "mapfish_logo";
78 protected SelectItem pageLogo = createPageLogoSelectItem(); 79 protected SelectItem pageLogo = createPageLogoSelectItem();
79 // protected SelectItem pageFormat = createPageFormatSelectItem(); 80 // protected SelectItem pageFormat = createPageFormatSelectItem();
80 protected MapToolbar mapToolbar; 81 protected MapToolbar mapToolbar;
81 protected MapPrintWindow parent; 82 protected MapPrintWindow parent;
82 83
83 public MapPrintPanel(Collection collection, MapToolbar mapToolbar, MapPrintWindow parent) { 84 public MapPrintPanel(
85 Collection collection,
86 MapToolbar mapToolbar,
87 MapPrintWindow parent
88 ) {
84 this.collection = collection; 89 this.collection = collection;
85 this.mapToolbar = mapToolbar; 90 this.mapToolbar = mapToolbar;
86 this.parent = parent; 91 this.parent = parent;
87 initLayout(); 92 initLayout();
88 93
315 final String loc = config.getLocale(); 320 final String loc = config.getLocale();
316 321
317 GWT.log("MapPrintPanel.updateCollection via RPC now"); 322 GWT.log("MapPrintPanel.updateCollection via RPC now");
318 323
319 List<Property> properties = new ArrayList<Property>(); 324 List<Property> properties = new ArrayList<Property>();
320 properties.add(new PropertySetting(MAPFISH_MAPTITLE, pageTitle.getValueAsString())); 325 properties.add(new PropertySetting(
321 // properties.add(new PropertySetting(MAPFISH_LAYOUT, pageFormat.getValueAsString())); 326 MAPFISH_MAPTITLE, pageTitle.getValueAsString()));
322 properties.add(new PropertySetting(MAPFISH_SUBTITLE, pageSubtitle.getValueAsString())); 327 properties.add(new PropertySetting(
323 properties.add(new PropertySetting(MAPFISH_RANGE, pageRange.getValueAsString())); 328 MAPFISH_SUBTITLE, pageSubtitle.getValueAsString()));
324 properties.add(new PropertySetting(MAPFISH_STRETCH, pageStretch.getValueAsString())); 329 properties.add(new PropertySetting(
325 properties.add(new PropertySetting(MAPFISH_INSTITUTION, pageInstitution.getValueAsString())); 330 MAPFISH_RANGE, pageRange.getValueAsString()));
326 properties.add(new PropertySetting(MAPFISH_SOURCE, pageSource.getValueAsString())); 331 properties.add(new PropertySetting(
327 properties.add(new PropertySetting(MAPFISH_CREATOR, pageCreator.getValueAsString())); 332 MAPFISH_STRETCH, pageStretch.getValueAsString()));
328 properties.add(new PropertySetting(MAPFISH_DATEPLACE, pageDatePlace.getValueAsString())); 333 properties.add(new PropertySetting(
329 properties.add(new PropertySetting(MAPFISH_LOGO, pageLogo.getValueAsString())); 334 MAPFISH_INSTITUTION, pageInstitution.getValueAsString()));
335 properties.add(new PropertySetting(
336 MAPFISH_SOURCE, pageSource.getValueAsString()));
337 properties.add(new PropertySetting(
338 MAPFISH_CREATOR, pageCreator.getValueAsString()));
339 properties.add(new PropertySetting(
340 MAPFISH_DATEPLACE, pageDatePlace.getValueAsString()));
341 properties.add(new PropertySetting(
342 MAPFISH_LOGO, pageLogo.getValueAsString()));
330 settings.setSettings("default", properties); 343 settings.setSettings("default", properties);
331 344
332 collection.addSettings("print-settings", settings); 345 collection.addSettings("print-settings", settings);
333 updater.update(collection, loc, new AsyncCallback<Collection>() { 346 updater.update(collection, loc, new AsyncCallback<Collection>() {
334 @Override 347 @Override

http://dive4elements.wald.intevation.org