Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Mon May 09 13:51:39 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Mon May 09 14:29:53 2011 +0000 @@ -76,6 +76,7 @@ protected UIProvider uiProvider; + protected VLayout topLayout; protected VLayout oldItems; protected VLayout currentItems; protected Canvas helperPanel; @@ -88,6 +89,7 @@ parameterHandlers = new ArrayList<ParameterChangeHandler>(); old = new ArrayList<DataList>(); + topLayout = new VLayout(); oldItems = new VLayout(); currentItems = new VLayout(); @@ -111,6 +113,7 @@ parameterHandlers = new ArrayList<ParameterChangeHandler>(); old = new ArrayList<DataList>(); + topLayout = new VLayout(); oldItems = new VLayout(); currentItems = new VLayout(); @@ -147,13 +150,14 @@ rootLayout.addMember(left); rootLayout.addMember(helperPanel); + topLayout.addMember(rootLayout); if (artifact == null) { Canvas moduleSelection = renderNew(); moduleSelection.setLayoutAlign(VerticalAlignment.TOP); currentItems.addMember(moduleSelection); } - setPane(rootLayout); + setPane(topLayout); } @@ -466,5 +470,16 @@ addOldDatas(desc.getOldData()); } + + /** + * Adds a table to the parameterlist to show calculated data. + * + * @param table The table data panel. + */ + public void setPanel (TableDataPanel table) { + Canvas c = table.create(); + c.setHeight(400); + topLayout.addMember(c); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :