comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/GetFeatureInfo.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 ea9eef426962
children
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
67 map.removeListener(this); 67 map.removeListener(this);
68 } 68 }
69 } 69 }
70 70
71 71
72 protected void newGetFeatureInfoWindow(List<FeatureInfo> features, String title) { 72 protected void newGetFeatureInfoWindow(
73 List<FeatureInfo> features,
74 String title
75 ) {
73 if (gfiWindow != null) { 76 if (gfiWindow != null) {
74 gfiWindow.destroy(); 77 gfiWindow.destroy();
75 } 78 }
76 79
77 gfiWindow = new GetFeatureInfoWindow(features, title); 80 gfiWindow = new GetFeatureInfoWindow(features, title);
115 118
116 @Override 119 @Override
117 public void onSuccess(FeatureInfoResponse response) { 120 public void onSuccess(FeatureInfoResponse response) {
118 List<FeatureInfo> features = response.getFeatures(); 121 List<FeatureInfo> features = response.getFeatures();
119 if (features != null && !features.isEmpty()) { 122 if (features != null && !features.isEmpty()) {
120 newGetFeatureInfoWindow(features, at.getAttr("description")); 123 newGetFeatureInfoWindow(
124 features, at.getAttr("description"));
121 } else if (response.getFeatureInfoHTML() != null) { 125 } else if (response.getFeatureInfoHTML() != null) {
122 newGetFeatureInfoWindow(response.getFeatureInfoHTML(), 126 newGetFeatureInfoWindow(
127 response.getFeatureInfoHTML(),
123 at.getAttr("description")); 128 at.getAttr("description"));
124 } else { 129 } else {
125 GWT.log("GetFeatureInfo returned neither a list of features nor a string"); 130 GWT.log("GetFeatureInfo returned neither "
131 + "a list of features nor a string");
126 } 132 }
127 } 133 }
128 } 134 }
129 ); 135 );
130 break; // More intelligent handling when more then one is selected 136 break; // More intelligent handling when more then one is selected

http://dive4elements.wald.intevation.org