Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixQSelectPanel.java @ 2505:87ac5c532523
First part of the UI for fixing analysis parameter.
flys-client/trunk@4350 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 07 May 2012 13:22:43 +0000 |
parents | |
children | 8f528f5ae137 |
comparison
equal
deleted
inserted
replaced
2504:425bc486a40f | 2505:87ac5c532523 |
---|---|
1 package de.intevation.flys.client.client.ui.fixation; | |
2 | |
3 import java.util.List; | |
4 import java.util.ArrayList; | |
5 | |
6 import com.google.gwt.core.client.GWT; | |
7 | |
8 import com.smartgwt.client.widgets.Canvas; | |
9 | |
10 import de.intevation.flys.client.client.FLYSConstants; | |
11 | |
12 import de.intevation.flys.client.shared.model.Data; | |
13 import de.intevation.flys.client.shared.model.DataList; | |
14 | |
15 /** | |
16 * This UIProvider creates a panel for location or distance input. | |
17 * | |
18 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | |
19 */ | |
20 public class FixQSelectPanel | |
21 extends FixationPanel | |
22 { | |
23 /** The message class that provides i18n strings. */ | |
24 protected FLYSConstants MESSAGES = GWT.create(FLYSConstants.class); | |
25 | |
26 public FixQSelectPanel() { | |
27 htmlOverview = ""; | |
28 } | |
29 | |
30 public Canvas createWidget(DataList data) { | |
31 instances.put(this.artifact.getUuid(), this); | |
32 | |
33 return new Canvas(); | |
34 } | |
35 | |
36 @Override | |
37 public Canvas createOld(DataList dataList) { | |
38 return new Canvas(); | |
39 } | |
40 | |
41 | |
42 /** | |
43 * This method returns the selected data. | |
44 * | |
45 * @return the selected/inserted data. | |
46 */ | |
47 public Data[] getData() { | |
48 List<Data> data = new ArrayList<Data>(); | |
49 | |
50 return (Data[]) data.toArray(new Data[data.size()]); | |
51 } | |
52 | |
53 | |
54 @Override | |
55 public void setValues(String cid, boolean checked) { | |
56 // No user interaction, do nothing. | |
57 } | |
58 | |
59 | |
60 @Override | |
61 public boolean renderCheckboxes() { | |
62 // No selection, return false. | |
63 return false; | |
64 } | |
65 } |