comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 3346:f2039d030b5e

Cosmetics, docs. flys-client/trunk@5016 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 16 Jul 2012 08:37:24 +0000
parents 69a498896c9c
children 08f8524a81ad
comparison
equal deleted inserted replaced
3345:e7d820bb053c 3346:f2039d030b5e
205 final SectionStack stack = new SectionStack(); 205 final SectionStack stack = new SectionStack();
206 stack.setHeight100(); 206 stack.setHeight100();
207 stack.setCanResizeSections(true); 207 stack.setCanResizeSections(true);
208 stack.setVisibilityMode(VisibilityMode.MULTIPLE); 208 stack.setVisibilityMode(VisibilityMode.MULTIPLE);
209 209
210 // This canvas is used to render helper widgets 210 // This canvas is used to render helper widgets.
211 final SectionStackSection helperSection = new SectionStackSection(); 211 final SectionStackSection helperSection = new SectionStackSection();
212 helperSection.setExpanded(false); 212 helperSection.setExpanded(false);
213 helperSection.setTitle(MSG.helperPanelTitle()); 213 helperSection.setTitle(MSG.helperPanelTitle());
214 helperPanel = new VLayout() { 214 helperPanel = new VLayout() {
215 public void addMember(Canvas component) { 215 public void addMember(Canvas component) {
224 }; 224 };
225 helperPanel.setWidth100(); 225 helperPanel.setWidth100();
226 helperPanel.setHeight100(); 226 helperPanel.setHeight100();
227 helperSection.setItems(helperPanel); 227 helperSection.setItems(helperPanel);
228 228
229 // This canvas is used to render calculation results 229 // This canvas is used to render calculation results.
230 final SectionStackSection tableSection = new SectionStackSection(); 230 final SectionStackSection tableSection = new SectionStackSection();
231 tableSection.setExpanded(false); 231 tableSection.setExpanded(false);
232 tableSection.setTitle(MSG.calcTableTitle()); 232 tableSection.setTitle(MSG.calcTableTitle());
233 tablePanel = new VLayout() { 233 tablePanel = new VLayout() {
234 public void addMember(Canvas component) { 234 public void addMember(Canvas component) {
249 249
250 return stack; 250 return stack;
251 } 251 }
252 252
253 253
254 /** Sets and forwards artifact. */
254 protected void setArtifact(Artifact artifact) { 255 protected void setArtifact(Artifact artifact) {
255 setArtifact(artifact, true); 256 setArtifact(artifact, true);
256 } 257 }
257 258
258 259
320 "river", 321 "river",
321 MSG.river_selection(), 322 MSG.river_selection(),
322 null, 323 null,
323 items); 324 items);
324 325
325 LinkSelection widget = new LinkSelection(); 326 LinkSelection widget = new LinkSelection();
326 HasStepForwardHandlers handler = (HasStepForwardHandlers) widget; 327 HasStepForwardHandlers handler = (HasStepForwardHandlers) widget;
327 328
328 widget.setContainer(helperPanel); 329 widget.setContainer(helperPanel);
329 330
330 handler.addStepForwardHandler(new StepForwardHandler() { 331 handler.addStepForwardHandler(new StepForwardHandler() {
346 setTitle(newTitle); 347 setTitle(newTitle);
347 348
348 Config config = Config.getInstance(); 349 Config config = Config.getInstance();
349 final String locale = config.getLocale(); 350 final String locale = config.getLocale();
350 351
351 final Data[] feedData = new Data[] { data[1] }; 352 final Data[] feedData = new Data[] { data[1] };
352 353
353 artifactService.create( 354 artifactService.create(
354 locale, module.toLowerCase(), null, 355 locale, module.toLowerCase(), null,
355 new AsyncCallback<Artifact>() { 356 new AsyncCallback<Artifact>() {
356 public void onFailure(Throwable caught) { 357 public void onFailure(Throwable caught) {
580 * @param event The StepForwardEvent. 581 * @param event The StepForwardEvent.
581 */ 582 */
582 public void onStepForward(StepForwardEvent event) { 583 public void onStepForward(StepForwardEvent event) {
583 GWT.log("CollectionView - onStepForward()"); 584 GWT.log("CollectionView - onStepForward()");
584 585
585 Config config = Config.getInstance(); 586 Config config = Config.getInstance();
586 String locale = config.getLocale(); 587 String locale = config.getLocale();
587 588
588 forwardService.go(locale, artifact, event.getData(), 589 forwardService.go(locale, artifact, event.getData(),
589 new AsyncCallback<Artifact>() { 590 new AsyncCallback<Artifact>() {
590 public void onFailure(Throwable caught) { 591 public void onFailure(Throwable caught) {
591 GWT.log("Could not feed the artifact."); 592 GWT.log("Could not feed the artifact.");

http://dive4elements.wald.intevation.org