Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Tue Oct 23 14:32:48 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Tue Oct 23 15:48:18 2012 +0200 @@ -214,19 +214,7 @@ final SectionStackSection gaugeSection = new SectionStackSection(); gaugeSection.setExpanded(false); gaugeSection.setTitle(MSG.gaugePanelTitle()); - gaugePanel = new GaugePanel(flys, gaugeSection) { - @Override - public void addMember(Canvas component) { - super.addMember(component); - gaugeSection.setExpanded(true); - } - - @Override - public void removeMembers(Canvas[] components) { - super.removeMembers(components); - gaugeSection.setExpanded(false); - } - }; + gaugePanel = new GaugePanel(flys, gaugeSection); gaugePanel.setWidth100(); gaugePanel.setHeight100();