comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 1388:4b177fd52f06

Expand the map selection section in helper panel on project start. flys-client/trunk@3205 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 09 Nov 2011 17:07:36 +0000
parents 89a47098bcbd
children bc06a671ef60
comparison
equal deleted inserted replaced
1387:3cbc7fbfff0e 1388:4b177fd52f06
200 setPane(topLayout); 200 setPane(topLayout);
201 } 201 }
202 202
203 203
204 protected SectionStack createSectionStack() { 204 protected SectionStack createSectionStack() {
205 SectionStack stack = new SectionStack(); 205 final SectionStack stack = new SectionStack();
206 stack.setHeight100(); 206 stack.setHeight100();
207 stack.setCanResizeSections(true); 207 stack.setCanResizeSections(true);
208 stack.setVisibilityMode(VisibilityMode.MULTIPLE); 208 stack.setVisibilityMode(VisibilityMode.MULTIPLE);
209 209
210 // This canvas is used to render helper widgets 210 // This canvas is used to render helper widgets
212 helperSection.setExpanded(false); 212 helperSection.setExpanded(false);
213 helperSection.setTitle(MSG.helperPanelTitle()); 213 helperSection.setTitle(MSG.helperPanelTitle());
214 helperPanel = new VLayout() { 214 helperPanel = new VLayout() {
215 public void addMember(Canvas component) { 215 public void addMember(Canvas component) {
216 super.addMember(component); 216 super.addMember(component);
217 helperSection.setExpanded(true); 217 stack.expandSection(helperSection.getID());
218 } 218 }
219 219
220 public void removeMembers(Canvas[] components) { 220 public void removeMembers(Canvas[] components) {
221 super.removeMembers(components); 221 super.removeMembers(components);
222 helperSection.setExpanded(false); 222 helperSection.setExpanded(false);

http://dive4elements.wald.intevation.org