comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java @ 894:5341be7dec7a

Removed the table listener for "Q" input. The table is no longer used for input assistance. (Issue203) flys-client/trunk@2739 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 14 Sep 2011 11:07:19 +0000
parents c0e13cf826d7
children 2c8f1112be37
comparison
equal deleted inserted replaced
893:89c01218172b 894:5341be7dec7a
154 * Creates a new WQInputPanel instance. 154 * Creates a new WQInputPanel instance.
155 */ 155 */
156 public WQInputPanel() { 156 public WQInputPanel() {
157 qdTable = new QDTable(); 157 qdTable = new QDTable();
158 wTable = new WTable(); 158 wTable = new WTable();
159
160 initTableListeners();
161 }
162
163
164 /**
165 * Initializes the listeners of the WQD tables.
166 */
167 protected void initTableListeners() {
168 CellClickHandler handler = new CellClickHandler() {
169 public void onCellClick(CellClickEvent e) {
170
171 if (isWMode()) {
172 return;
173 }
174
175 int idx = e.getColNum();
176 Record r = e.getRecord ();
177 double val = r.getAttributeAsDouble("value");
178
179 if (idx == 0) {
180 if (isRangeMode()) {
181 qRangePanel.setFrom(val);
182 }
183 else {
184 qArrayPanel.addValue(val);
185 }
186 }
187 else if (idx == 1) {
188 if (isRangeMode()) {
189 qRangePanel.setTo(val);
190 }
191 else {
192 qArrayPanel.addValue(val);
193 }
194 }
195 }
196 };
197
198 qdTable.addCellClickHandler(handler);
199 } 159 }
200 160
201 161
202 /** 162 /**
203 * This method calls createWidget and puts a 'next' button to the bottom. 163 * This method calls createWidget and puts a 'next' button to the bottom.

http://dive4elements.wald.intevation.org