Mercurial > dive4elements > river
changeset 260:dd1dad2ff94e
Remove the data table on step back.
flys-client/trunk@1875 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 10 May 2011 10:57:57 +0000 |
parents | 50a95db68e66 |
children | f3ea644800c4 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java |
diffstat | 3 files changed, 27 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Tue May 10 10:03:00 2011 +0000 +++ b/flys-client/ChangeLog Tue May 10 10:57:57 2011 +0000 @@ -1,3 +1,9 @@ +2011-05-10 Raimund Renkert <rrenkert@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/ParameterList.java, + src/main/java/de/intevation/flys/client/client/ui/CollectionView.java: + Remove the data table on step back. + 2011-05-10 Raimund Renkert <rrenkert@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/CollectionView.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue May 10 10:03:00 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue May 10 10:57:57 2011 +0000 @@ -275,6 +275,9 @@ setArtifact(art); clearOutputTabs(); + if (parameterList.hasPanel()) { + parameterList.removePanel(); + } Collection c = getCollection(); if (outs != null && c == null) {
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Tue May 10 10:03:00 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Tue May 10 10:57:57 2011 +0000 @@ -80,6 +80,7 @@ protected VLayout oldItems; protected VLayout currentItems; protected Canvas helperPanel; + protected Canvas tablePanel; public ParameterList(FLYS flys, CollectionView cView, String title) { super(title); @@ -127,6 +128,7 @@ protected void init() { HLayout rootLayout = new HLayout(); + tablePanel = new Canvas(); rootLayout.setMembersMargin(20); VLayout left = new VLayout(); @@ -477,9 +479,22 @@ * @param table The table data panel. */ public void setPanel (TableDataPanel table) { - Canvas c = table.create(); - c.setHeight(400); - topLayout.addMember(c); + tablePanel = table.create(); + tablePanel.setHeight(400); + topLayout.addMember(tablePanel); + } + + + /** + * Removes the table from the parameter list. + */ + public void removePanel() { + topLayout.removeMember(tablePanel); + } + + + public boolean hasPanel() { + return topLayout.hasMember(tablePanel); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :