comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 256:5e1c1b7d6516

Added table and service for calculation output to UI. flys-client/trunk@1868 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 09 May 2011 14:29:53 +0000
parents 137daff2c732
children dd1dad2ff94e
comparison
equal deleted inserted replaced
255:e4f0bef52689 256:5e1c1b7d6516
74 protected List<DataList> old; 74 protected List<DataList> old;
75 protected DataList current; 75 protected DataList current;
76 76
77 protected UIProvider uiProvider; 77 protected UIProvider uiProvider;
78 78
79 protected VLayout topLayout;
79 protected VLayout oldItems; 80 protected VLayout oldItems;
80 protected VLayout currentItems; 81 protected VLayout currentItems;
81 protected Canvas helperPanel; 82 protected Canvas helperPanel;
82 83
83 public ParameterList(FLYS flys, CollectionView cView, String title) { 84 public ParameterList(FLYS flys, CollectionView cView, String title) {
86 this.cView = cView; 87 this.cView = cView;
87 this.flys = flys; 88 this.flys = flys;
88 89
89 parameterHandlers = new ArrayList<ParameterChangeHandler>(); 90 parameterHandlers = new ArrayList<ParameterChangeHandler>();
90 old = new ArrayList<DataList>(); 91 old = new ArrayList<DataList>();
92 topLayout = new VLayout();
91 oldItems = new VLayout(); 93 oldItems = new VLayout();
92 currentItems = new VLayout(); 94 currentItems = new VLayout();
93 95
94 addParameterChangeHandler(this); 96 addParameterChangeHandler(this);
95 97
109 this.flys = flys; 111 this.flys = flys;
110 this.artifact = artifact; 112 this.artifact = artifact;
111 113
112 parameterHandlers = new ArrayList<ParameterChangeHandler>(); 114 parameterHandlers = new ArrayList<ParameterChangeHandler>();
113 old = new ArrayList<DataList>(); 115 old = new ArrayList<DataList>();
116 topLayout = new VLayout();
114 oldItems = new VLayout(); 117 oldItems = new VLayout();
115 currentItems = new VLayout(); 118 currentItems = new VLayout();
116 119
117 init(); 120 init();
118 121
145 helperPanel = new Canvas(); 148 helperPanel = new Canvas();
146 149
147 rootLayout.addMember(left); 150 rootLayout.addMember(left);
148 rootLayout.addMember(helperPanel); 151 rootLayout.addMember(helperPanel);
149 152
153 topLayout.addMember(rootLayout);
150 if (artifact == null) { 154 if (artifact == null) {
151 Canvas moduleSelection = renderNew(); 155 Canvas moduleSelection = renderNew();
152 moduleSelection.setLayoutAlign(VerticalAlignment.TOP); 156 moduleSelection.setLayoutAlign(VerticalAlignment.TOP);
153 currentItems.addMember(moduleSelection); 157 currentItems.addMember(moduleSelection);
154 } 158 }
155 159
156 setPane(rootLayout); 160 setPane(topLayout);
157 } 161 }
158 162
159 163
160 protected void setArtifact(Artifact artifact) { 164 protected void setArtifact(Artifact artifact) {
161 Artifact tmp = this.artifact; 165 Artifact tmp = this.artifact;
464 setCurrentData(null, null); 468 setCurrentData(null, null);
465 } 469 }
466 470
467 addOldDatas(desc.getOldData()); 471 addOldDatas(desc.getOldData());
468 } 472 }
473
474 /**
475 * Adds a table to the parameterlist to show calculated data.
476 *
477 * @param table The table data panel.
478 */
479 public void setPanel (TableDataPanel table) {
480 Canvas c = table.create();
481 c.setHeight(400);
482 topLayout.addMember(c);
483 }
469 } 484 }
470 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 485 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org