Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.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 | bbe32496dc84 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue Apr 12 10:51:39 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue Apr 12 10:54:59 2011 +0000 @@ -102,12 +102,34 @@ addCollectionChangeHandler(this); parameterList.addParameterChangeHandler(this); - parameterList.addParameterChangeHandler(parameterList); init(); } + public CollectionView(FLYS flys, Collection collection, Artifact artifact) { + this.flys = flys; + this.tabs = new TabSet(); + this.outputTabs = new HashMap<String, OutputTab>(); + this.handlers = new ArrayList<CollectionChangeHandler>(); + this.layout = new VLayout(); + this.parameterList = new ParameterList( + flys, + this, + messages.new_project(), + artifact); + + addCollectionChangeHandler(this); + + parameterList.addParameterChangeHandler(this); + + init(); + + setCollection(collection); + setArtifact(artifact); + } + + /** * This method handles the initial layout stuff. */