Mercurial > dive4elements > river
diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java @ 7934:71a2e408adca
Moved info stack section to top level widget (parameterlist).
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 17 Jun 2014 09:47:45 +0200 |
parents | 2a97d9c3413a |
children | b1ff606f01ee |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java Tue Jun 17 09:45:48 2014 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java Tue Jun 17 09:47:45 2014 +0200 @@ -11,6 +11,7 @@ import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; +import com.smartgwt.client.types.Overflow; import com.smartgwt.client.types.VerticalAlignment; import com.smartgwt.client.types.VisibilityMode; import com.smartgwt.client.util.SC; @@ -225,6 +226,7 @@ stack.setHeight100(); stack.setCanResizeSections(true); stack.setVisibilityMode(VisibilityMode.MULTIPLE); + stack.setOverflow(Overflow.SCROLL); // This canvas is used to render helper widgets. final SectionStackSection helperSection = new SectionStackSection(); @@ -256,6 +258,7 @@ public void addMember(Canvas component) { super.addMember(component); tableSection.setExpanded(true); + stack.getSection(InfoPanel.SECTION_ID).setExpanded(false); } @Override @@ -979,12 +982,17 @@ GWT.log("ParameterList - showInfoPanel"); /* Don't add InfoPanel twice */ - SectionStackSection exists = stack.getSection(InfoPanel.SECTION_ID); - if (exists == null) { - stack.addSection(infoPanel.getSection(), 0); + SectionStackSection info = stack.getSection(InfoPanel.SECTION_ID); + if (info == null) { + info = new SectionStackSection(); + info.setTitle(infoPanel.getSectionTitle()); + info.setID(InfoPanel.SECTION_ID); + info.setName(InfoPanel.SECTION_ID); + info.setItems(infoPanel); + stack.addSection(info, 0); } - infoPanel.show(); + info.setExpanded(true); } private void hideInfoPanel() { @@ -1017,16 +1025,5 @@ hideInfoPanel(); } } - - /** - * Allow to close all folds of the info panel. - * This is necessary e.g. if a csv result should be shown. - */ - public void contractInfoPanel() { - if (infoPanel != null) { - infoPanel.contract(); - } - } - } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :