comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadPeriodPanel.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 582e970115b6
children
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
126 new ListGridField("description", MSG.description()); 126 new ListGridField("description", MSG.description());
127 descr.setType(ListGridFieldType.TEXT); 127 descr.setType(ListGridFieldType.TEXT);
128 descr.setWidth("*"); 128 descr.setWidth("*");
129 129
130 String baseUrl = GWT.getHostPageBaseURL(); 130 String baseUrl = GWT.getHostPageBaseURL();
131 ListGridField pinFrom = new ListGridField ("fromIcon", MESSAGES.selection()); 131 ListGridField pinFrom = new ListGridField(
132 "fromIcon", MESSAGES.selection());
132 pinFrom.setWidth (60); 133 pinFrom.setWidth (60);
133 pinFrom.setType (ListGridFieldType.ICON); 134 pinFrom.setType (ListGridFieldType.ICON);
134 pinFrom.setCellIcon(baseUrl + MESSAGES.markerGreen()); 135 pinFrom.setCellIcon(baseUrl + MESSAGES.markerGreen());
135 136
136 pinFrom.addRecordClickHandler (new RecordClickHandler () { 137 pinFrom.addRecordClickHandler (new RecordClickHandler () {
167 protected Data[] getData() { 168 protected Data[] getData() {
168 validateYears(); 169 validateYears();
169 if (yearsItem != null && !yearsItem.getValueAsString().isEmpty()) { 170 if (yearsItem != null && !yearsItem.getValueAsString().isEmpty()) {
170 List<Data> data = new ArrayList<Data>(); 171 List<Data> data = new ArrayList<Data>();
171 172
172 DataItem yearsdata = new DefaultDataItem("years", "years", yearsItem.getValueAsString().trim()); 173 DataItem yearsdata = new DefaultDataItem(
174 "years", "years", yearsItem.getValueAsString().trim());
173 data.add(new DefaultData( 175 data.add(new DefaultData(
174 "years", 176 "years",
175 null, 177 null,
176 null, 178 null,
177 new DataItem[] { yearsdata })); 179 new DataItem[] { yearsdata }));
250 252
251 if (sq_ti_id.isEmpty()){ 253 if (sq_ti_id.isEmpty()){
252 GWT.log("Failed to find sq time interval id in data."); 254 GWT.log("Failed to find sq time interval id in data.");
253 } 255 }
254 256
255 sedLoadInfoService.getSedimentLoadInfo(locale, river, "single", km[0], km[1], sq_ti_id, 257 sedLoadInfoService.getSedimentLoadInfo(
258 locale, river, "single", km[0], km[1], sq_ti_id,
256 new AsyncCallback<SedimentLoadInfoObject[]>() { 259 new AsyncCallback<SedimentLoadInfoObject[]>() {
257 public void onFailure(Throwable caught) { 260 public void onFailure(Throwable caught) {
258 GWT.log("Could not recieve sediment load informations."); 261 GWT.log("Could not recieve sediment load informations.");
259 SC.warn(MSG.getString(caught.getMessage())); 262 SC.warn(MSG.getString(caught.getMessage()));
260 } 263 }

http://dive4elements.wald.intevation.org