Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 224:a4a68b4ee2a3
Improved the CollectionView and the ParameterList - both can be initialized with an existing artifact (parameterization).
flys-client/trunk@1669 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 12 Apr 2011 10:54:59 +0000 |
parents | e02f50a3ad59 |
children | 924da6695800 |
comparison
equal
deleted
inserted
replaced
223:964abeb76771 | 224:a4a68b4ee2a3 |
---|---|
89 parameterHandlers = new ArrayList<ParameterChangeHandler>(); | 89 parameterHandlers = new ArrayList<ParameterChangeHandler>(); |
90 old = new ArrayList<DataList>(); | 90 old = new ArrayList<DataList>(); |
91 oldItems = new VLayout(); | 91 oldItems = new VLayout(); |
92 currentItems = new VLayout(); | 92 currentItems = new VLayout(); |
93 | 93 |
94 addParameterChangeHandler(this); | |
95 | |
94 init(); | 96 init(); |
97 } | |
98 | |
99 | |
100 public ParameterList( | |
101 FLYS flys, | |
102 CollectionView cView, | |
103 String title, | |
104 Artifact artifact) | |
105 { | |
106 super(title); | |
107 | |
108 this.cView = cView; | |
109 this.flys = flys; | |
110 this.artifact = artifact; | |
111 | |
112 parameterHandlers = new ArrayList<ParameterChangeHandler>(); | |
113 old = new ArrayList<DataList>(); | |
114 oldItems = new VLayout(); | |
115 currentItems = new VLayout(); | |
116 | |
117 init(); | |
118 | |
119 addParameterChangeHandler(this); | |
120 | |
121 setArtifact(artifact); | |
95 } | 122 } |
96 | 123 |
97 | 124 |
98 protected void init() { | 125 protected void init() { |
99 HLayout rootLayout = new HLayout(); | 126 HLayout rootLayout = new HLayout(); |
118 helperPanel = new Canvas(); | 145 helperPanel = new Canvas(); |
119 | 146 |
120 rootLayout.addMember(left); | 147 rootLayout.addMember(left); |
121 rootLayout.addMember(helperPanel); | 148 rootLayout.addMember(helperPanel); |
122 | 149 |
123 Canvas moduleSelection = renderNew(); | 150 if (artifact == null) { |
124 moduleSelection.setLayoutAlign(VerticalAlignment.TOP); | 151 Canvas moduleSelection = renderNew(); |
125 currentItems.addMember(moduleSelection); | 152 moduleSelection.setLayoutAlign(VerticalAlignment.TOP); |
153 currentItems.addMember(moduleSelection); | |
154 } | |
126 | 155 |
127 setPane(rootLayout); | 156 setPane(rootLayout); |
128 } | 157 } |
129 | 158 |
130 | 159 |