[Dive4elements-commits] [PATCH] Limit PDF map title length to 20 characters (#767)
Wald Commits
scm-commit at wald.intevation.org
Mon Jun 10 14:02:36 CEST 2013
# HG changeset patch
# User Christian Lins <christian.lins at intevation.de>
# Date 1370865752 -7200
# Node ID 54f1f4d90c7266775e02c85061dd1eb1c6576c40
# Parent 8b03a7589101769ec485f878f38a2c70e71a6130
Limit PDF map title length to 20 characters (#767).
diff -r 8b03a7589101 -r 54f1f4d90c72 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/MapPrintPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/MapPrintPanel.java Mon Jun 10 13:43:53 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/MapPrintPanel.java Mon Jun 10 14:02:32 2013 +0200
@@ -8,44 +8,42 @@
package org.dive4elements.river.client.client.ui.map;
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.rpc.AsyncCallback;
-import com.google.gwt.user.client.Window;
-
-import com.smartgwt.client.util.SC;
-import com.smartgwt.client.widgets.Canvas;
-import com.smartgwt.client.widgets.form.DynamicForm;
-import com.smartgwt.client.widgets.form.fields.TextItem;
-import com.smartgwt.client.widgets.form.fields.ButtonItem;
-import com.smartgwt.client.widgets.form.fields.SelectItem;
-import com.smartgwt.client.widgets.form.fields.events.ClickEvent;
-import com.smartgwt.client.widgets.form.fields.events.ClickHandler;
-import com.smartgwt.client.types.Alignment;
-
-import org.gwtopenmaps.openlayers.client.Bounds;
-import org.gwtopenmaps.openlayers.client.Map;
-
import org.dive4elements.river.client.client.Config;
import org.dive4elements.river.client.client.FLYSConstants;
import org.dive4elements.river.client.client.services.CollectionAttributeService;
import org.dive4elements.river.client.client.services.CollectionAttributeServiceAsync;
+import org.dive4elements.river.client.shared.model.Artifact;
+import org.dive4elements.river.client.shared.model.ArtifactDescription;
import org.dive4elements.river.client.shared.model.Collection;
+import org.dive4elements.river.client.shared.model.Data;
+import org.dive4elements.river.client.shared.model.DataItem;
+import org.dive4elements.river.client.shared.model.DataList;
import org.dive4elements.river.client.shared.model.OutputSettings;
import org.dive4elements.river.client.shared.model.Property;
import org.dive4elements.river.client.shared.model.PropertySetting;
import org.dive4elements.river.client.shared.model.Settings;
-import org.dive4elements.river.client.shared.model.Artifact;
-import org.dive4elements.river.client.shared.model.ArtifactDescription;
-import org.dive4elements.river.client.shared.model.Data;
-import org.dive4elements.river.client.shared.model.DataItem;
-import org.dive4elements.river.client.shared.model.DataList;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.smartgwt.client.types.Alignment;
+import com.smartgwt.client.util.SC;
+import com.smartgwt.client.widgets.Canvas;
+import com.smartgwt.client.widgets.form.DynamicForm;
+import com.smartgwt.client.widgets.form.fields.ButtonItem;
+import com.smartgwt.client.widgets.form.fields.SelectItem;
+import com.smartgwt.client.widgets.form.fields.TextItem;
+import com.smartgwt.client.widgets.form.fields.events.ClickEvent;
+import com.smartgwt.client.widgets.form.fields.events.ClickHandler;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.MissingResourceException;
+import org.gwtopenmaps.openlayers.client.Bounds;
+import org.gwtopenmaps.openlayers.client.Map;
+
public class MapPrintPanel extends Canvas {
private static final String MAPFISH_MAPTITLE = "mapfish_mapTitle";
@@ -138,7 +136,7 @@
this.pageCreator.setTitle(MSG.mapCreator());
this.pageDatePlace.setTitle(MSG.mapDate());
- pageTitle.setLength(30);
+ pageTitle.setLength(20);
pageSubtitle.setLength(30);
pageRange.setLength(30);
pageStretch.setLength(30);
@@ -201,6 +199,7 @@
ButtonItem btn = new ButtonItem();
btn.addClickHandler(new ClickHandler() {
+ @Override
public void onClick(ClickEvent event) {
updateCollection();
Window.open(createPrintUrl(), "_blank", "");
More information about the Dive4elements-commits
mailing list