From fa509e58ac12cce9f65a3e9d23d3791cbc97749c Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Mon, 18 Jan 2010 15:53:45 +0000 Subject: [PATCH] LMS-1343 add ID for toggle button on right hand detail sections SVN: 14329 --- .../web/client/application/ui/widget/SectionsPanel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/widget/SectionsPanel.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/widget/SectionsPanel.java index 911fdcf8177..40ca5baa46a 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/widget/SectionsPanel.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/widget/SectionsPanel.java @@ -27,6 +27,8 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.framework. */ public class SectionsPanel extends ContentPanel { + public static final String PART_OF_TOGGLE_BUTTON_ID = "_button_"; + List<SectionElement> elements = new ArrayList<SectionElement>(); private final ToolBar toolbar; @@ -40,7 +42,7 @@ public class SectionsPanel extends ContentPanel this(true, viewContext); } - public SectionsPanel(boolean withShowHide, IViewContext<ICommonClientServiceAsync> viewContext) + private SectionsPanel(boolean withShowHide, IViewContext<ICommonClientServiceAsync> viewContext) { this.withShowHide = withShowHide; this.viewContext = viewContext; @@ -213,6 +215,7 @@ public class SectionsPanel extends ContentPanel private class SectionElement { + private final ToggleButton button; private SingleSectionPanel panel; @@ -256,6 +259,7 @@ public class SectionsPanel extends ContentPanel final String displayId) { final ToggleButton result = new ToggleButton(getHeading(heading, pressed)); + result.setId(displayId + PART_OF_TOGGLE_BUTTON_ID + heading); initializePressedState(result, pressed); // when user clicks toggle button we store changed settings -- GitLab