comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/wq/QDTable.java @ 3543:14774fb42054

Issue 808. Updated wq input in winfo module. flys-client/trunk@5356 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 04 Sep 2012 12:10:01 +0000
parents 5659b5e8c9a8
children 3b9f6765d9dc
comparison
equal deleted inserted replaced
3542:9647a6548320 3543:14774fb42054
34 setShowHeaderContextMenu(false); 34 setShowHeaderContextMenu(false);
35 setShowRecordComponents(true); 35 setShowRecordComponents(true);
36 setShowRecordComponentsByCell(true); 36 setShowRecordComponentsByCell(true);
37 setEmptyMessage(MESSAGE.empty_table()); 37 setEmptyMessage(MESSAGE.empty_table());
38 38
39 ListGridField addMax = new ListGridField("max", ""); 39 ListGridField addMax = new ListGridField("max", MESSAGE.from());
40 addMax.setType(ListGridFieldType.ICON); 40 addMax.setType(ListGridFieldType.ICON);
41 addMax.setWidth(30); 41 addMax.setWidth(30);
42 addMax.setCellIcon(baseUrl + MESSAGE.markerRed()); 42 addMax.setCellIcon(baseUrl + MESSAGE.markerRed());
43 43
44 ListGridField addMin = new ListGridField("min", ""); 44 ListGridField addMin = new ListGridField("min", MESSAGE.to());
45 addMin.setType(ListGridFieldType.ICON); 45 addMin.setType(ListGridFieldType.ICON);
46 addMin.setWidth(30); 46 addMin.setWidth(30);
47 addMin.setCellIcon(baseUrl + MESSAGE.markerGreen()); 47 addMin.setCellIcon(baseUrl + MESSAGE.markerGreen());
48
49 ListGridField select = new ListGridField("select", MESSAGE.selection());
50 select.setType(ListGridFieldType.ICON);
51 select.setWidth(70);
52 select.setCellIcon(baseUrl + MESSAGE.markerGreen());
48 53
49 ListGridField name = new ListGridField("name", MESSAGE.discharge()); 54 ListGridField name = new ListGridField("name", MESSAGE.discharge());
50 name.setType(ListGridFieldType.TEXT); 55 name.setType(ListGridFieldType.TEXT);
51 name.setWidth("*"); 56 name.setWidth("*");
52 57
74 } 79 }
75 } 80 }
76 }); 81 });
77 value.setWidth("20%"); 82 value.setWidth("20%");
78 83
79 setFields(addMax, addMin, name, type, value); 84 setFields(addMax, addMin, select, name, type, value);
80 } 85 }
81 86
82 public void hideIconFields () { 87 public void hideIconFields () {
83 hideField("max"); 88 hideField("max");
84 hideField("min"); 89 hideField("min");
90 hideField("select");
85 lockClick = true; 91 lockClick = true;
86 } 92 }
87 93
88 94
89 public void showIconFields() { 95 public void showIconFields() {
90 showField("max"); 96 showField("max");
91 showField("min"); 97 showField("min");
98 hideField("select");
92 lockClick = false; 99 lockClick = false;
100 }
101
102 public void showSelect() {
103 showField("select");
104 hideField("max");
105 hideField("min");
93 } 106 }
94 107
95 public boolean isLocked() { 108 public boolean isLocked() {
96 return lockClick; 109 return lockClick;
97 } 110 }

http://dive4elements.wald.intevation.org