comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 4229:207de712d79d

Move addMember and removeMember methods in GaugePanel class Also rename class member variable sectionStack to section to avoid confusion.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 23 Oct 2012 15:48:18 +0200
parents 03de5c424f95
children 33b15ac17fd1
comparison
equal deleted inserted replaced
4228:fcdc0d2fdf8f 4229:207de712d79d
212 stack.setVisibilityMode(VisibilityMode.MULTIPLE); 212 stack.setVisibilityMode(VisibilityMode.MULTIPLE);
213 213
214 final SectionStackSection gaugeSection = new SectionStackSection(); 214 final SectionStackSection gaugeSection = new SectionStackSection();
215 gaugeSection.setExpanded(false); 215 gaugeSection.setExpanded(false);
216 gaugeSection.setTitle(MSG.gaugePanelTitle()); 216 gaugeSection.setTitle(MSG.gaugePanelTitle());
217 gaugePanel = new GaugePanel(flys, gaugeSection) { 217 gaugePanel = new GaugePanel(flys, gaugeSection);
218 @Override
219 public void addMember(Canvas component) {
220 super.addMember(component);
221 gaugeSection.setExpanded(true);
222 }
223
224 @Override
225 public void removeMembers(Canvas[] components) {
226 super.removeMembers(components);
227 gaugeSection.setExpanded(false);
228 }
229 };
230 gaugePanel.setWidth100(); 218 gaugePanel.setWidth100();
231 gaugePanel.setHeight100(); 219 gaugePanel.setHeight100();
232 220
233 // This canvas is used to render helper widgets. 221 // This canvas is used to render helper widgets.
234 final SectionStackSection helperSection = new SectionStackSection(); 222 final SectionStackSection helperSection = new SectionStackSection();

http://dive4elements.wald.intevation.org