comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java @ 886:2161d3acc83f

Changed field size from fixed to percental value in helper tables. flys-client/trunk@2720 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 13 Sep 2011 12:47:54 +0000
parents dbaef661d0e5
children 89c01218172b
comparison
equal deleted inserted replaced
885:eeea6a02d62c 886:2161d3acc83f
252 MESSAGES.description()); 252 MESSAGES.description());
253 ddescr.setType(ListGridFieldType.TEXT); 253 ddescr.setType(ListGridFieldType.TEXT);
254 ddescr.setWidth("*"); 254 ddescr.setWidth("*");
255 ListGridField from = new ListGridField("from", MESSAGES.from()); 255 ListGridField from = new ListGridField("from", MESSAGES.from());
256 from.setType(ListGridFieldType.TEXT); 256 from.setType(ListGridFieldType.TEXT);
257 from.setWidth(40); 257 from.setWidth("12%");
258 ListGridField to = new ListGridField("to", MESSAGES.to()); 258 ListGridField to = new ListGridField("to", MESSAGES.to());
259 to.setType(ListGridFieldType.TEXT); 259 to.setType(ListGridFieldType.TEXT);
260 to.setWidth(40); 260 to.setWidth("12%");
261 ListGridField dside = new ListGridField("riverside", 261 ListGridField dside = new ListGridField("riverside",
262 MESSAGES.riverside()); 262 MESSAGES.riverside());
263 dside.setType(ListGridFieldType.TEXT); 263 dside.setType(ListGridFieldType.TEXT);
264 dside.setWidth(40); 264 dside.setWidth("12%");
265 265
266 ListGridField bottom = 266 ListGridField bottom =
267 new ListGridField("bottom", MESSAGES.bottom_edge()); 267 new ListGridField("bottom", MESSAGES.bottom_edge());
268 bottom.setType(ListGridFieldType.TEXT); 268 bottom.setType(ListGridFieldType.TEXT);
269 bottom.setWidth(30); 269 bottom.setWidth("10%");
270 270
271 ListGridField top = 271 ListGridField top =
272 new ListGridField("top", MESSAGES.top_edge()); 272 new ListGridField("top", MESSAGES.top_edge());
273 top.setType(ListGridFieldType.TEXT); 273 top.setType(ListGridFieldType.TEXT);
274 top.setWidth(30); 274 top.setWidth("10%");
275 275
276 distanceTable.setFields( 276 distanceTable.setFields(
277 addDistance, ddescr, from, to, dside, bottom, top); 277 addDistance, ddescr, from, to, dside, bottom, top);
278 } 278 }
279 279
326 ldescr.setType(ListGridFieldType.TEXT); 326 ldescr.setType(ListGridFieldType.TEXT);
327 ldescr.setWidth("*"); 327 ldescr.setWidth("*");
328 ListGridField lside = new ListGridField("riverside", 328 ListGridField lside = new ListGridField("riverside",
329 MESSAGES.riverside()); 329 MESSAGES.riverside());
330 lside.setType(ListGridFieldType.TEXT); 330 lside.setType(ListGridFieldType.TEXT);
331 lside.setWidth(40); 331 lside.setWidth("12%");
332 ListGridField loc = new ListGridField("from", MESSAGES.locations()); 332 ListGridField loc = new ListGridField("from", MESSAGES.locations());
333 loc.setType(ListGridFieldType.TEXT); 333 loc.setType(ListGridFieldType.TEXT);
334 loc.setWidth(40); 334 loc.setWidth("12%");
335 335
336 ListGridField bottom = 336 ListGridField bottom =
337 new ListGridField("bottom", MESSAGES.bottom_edge()); 337 new ListGridField("bottom", MESSAGES.bottom_edge());
338 bottom.setType(ListGridFieldType.TEXT); 338 bottom.setType(ListGridFieldType.TEXT);
339 bottom.setWidth(30); 339 bottom.setWidth("10%");
340 340
341 ListGridField top = 341 ListGridField top =
342 new ListGridField("top", MESSAGES.top_edge()); 342 new ListGridField("top", MESSAGES.top_edge());
343 top.setType(ListGridFieldType.TEXT); 343 top.setType(ListGridFieldType.TEXT);
344 top.setWidth(30); 344 top.setWidth("10%");
345 345
346 locationsTable.setFields(addLocation, ldescr, loc, lside, bottom, top); 346 locationsTable.setFields(addLocation, ldescr, loc, lside, bottom, top);
347 } 347 }
348 348
349 349
397 } 397 }
398 }); 398 });
399 ListGridField bottom = 399 ListGridField bottom =
400 new ListGridField("bottom", MESSAGES.bottom_edge()); 400 new ListGridField("bottom", MESSAGES.bottom_edge());
401 bottom.setType(ListGridFieldType.TEXT); 401 bottom.setType(ListGridFieldType.TEXT);
402 bottom.setWidth(30); 402 bottom.setWidth("10%");
403 403
404 ListGridField top = 404 ListGridField top =
405 new ListGridField("top", MESSAGES.top_edge()); 405 new ListGridField("top", MESSAGES.top_edge());
406 top.setType(ListGridFieldType.TEXT); 406 top.setType(ListGridFieldType.TEXT);
407 top.setWidth(30); 407 top.setWidth("10%");
408 408
409 ListGridField ldescr = new ListGridField("description", 409 ListGridField ldescr = new ListGridField("description",
410 MESSAGES.description()); 410 MESSAGES.description());
411 ldescr.setType(ListGridFieldType.TEXT); 411 ldescr.setType(ListGridFieldType.TEXT);
412 ldescr.setWidth("*"); 412 ldescr.setWidth("*");
413 ListGridField lside = new ListGridField("riverside", 413 ListGridField lside = new ListGridField("riverside",
414 MESSAGES.riverside()); 414 MESSAGES.riverside());
415 lside.setType(ListGridFieldType.TEXT); 415 lside.setType(ListGridFieldType.TEXT);
416 lside.setWidth(40); 416 lside.setWidth("12%");
417 ListGridField loc = new ListGridField("from", MESSAGES.locations()); 417 ListGridField loc = new ListGridField("from", MESSAGES.locations());
418 loc.setType(ListGridFieldType.TEXT); 418 loc.setType(ListGridFieldType.TEXT);
419 loc.setWidth(40); 419 loc.setWidth("12%");
420 420
421 locationDistanceTable.setFields( 421 locationDistanceTable.setFields(
422 addfrom, addto2, ldescr, loc, lside, bottom, top); 422 addfrom, addto2, ldescr, loc, lside, bottom, top);
423 } 423 }
424 424

http://dive4elements.wald.intevation.org