comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 90:f8c240f28c2a

The title of the parameter tab will change after the module has been selectd. flys-client/trunk@1603 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 29 Mar 2011 10:11:57 +0000
parents c8cd1b918901
children 0d8203594bb4
comparison
equal deleted inserted replaced
89:131e3f23a74e 90:f8c240f28c2a
70 /** The artifact that handles the parameterization.*/ 70 /** The artifact that handles the parameterization.*/
71 protected Artifact artifact; 71 protected Artifact artifact;
72 72
73 protected TabSet tabs; 73 protected TabSet tabs;
74 74
75 /** The parameter tab.*/
76 protected Tab parameterTab;
77
78 /** The output tab.*/ 75 /** The output tab.*/
79 protected Map<String, OutputTab> outputTabs; 76 protected Map<String, OutputTab> outputTabs;
80 77
81 /** The layout.*/ 78 /** The layout.*/
82 protected Layout layout; 79 protected Layout layout;
91 public CollectionView(FLYS flys, Collection collection) { 88 public CollectionView(FLYS flys, Collection collection) {
92 this.flys = flys; 89 this.flys = flys;
93 this.collection = collection; 90 this.collection = collection;
94 91
95 this.tabs = new TabSet(); 92 this.tabs = new TabSet();
96 this.parameterTab = new Tab(messages.winfo());
97 this.outputTabs = new HashMap<String, OutputTab>(); 93 this.outputTabs = new HashMap<String, OutputTab>();
98 this.parameterList = new ParameterList(flys, this);
99 this.handlers = new ArrayList<CollectionChangeHandler>(); 94 this.handlers = new ArrayList<CollectionChangeHandler>();
100 this.layout = new VLayout(); 95 this.layout = new VLayout();
96 this.parameterList = new ParameterList(
97 flys, this, messages.new_calculation());
101 98
102 addCollectionChangeHandler(this); 99 addCollectionChangeHandler(this);
103 100
104 parameterList.addParameterChangeHandler(this); 101 parameterList.addParameterChangeHandler(this);
105 parameterList.addParameterChangeHandler(parameterList); 102 parameterList.addParameterChangeHandler(parameterList);
124 setTitle(""); 121 setTitle("");
125 122
126 addItem(layout); 123 addItem(layout);
127 124
128 layout.addMember(tabs); 125 layout.addMember(tabs);
129 tabs.addTab(parameterTab); 126 tabs.addTab(parameterList);
130
131 tabs.setTabTitle(0, messages.new_calculation());
132 tabs.updateTab(0, parameterList);
133 } 127 }
134 128
135 129
136 /** 130 /**
137 * This method triggers the CreateCollectionService to create a new 131 * This method triggers the CreateCollectionService to create a new

http://dive4elements.wald.intevation.org