I need to hide the expand/collapse icon displayed in the header of SectionStackSections added to a SectionStack. I'm calling SectionStack.setShowExpandControls(Boolean.FALSE) but they still appear. I cannot call SectionStackSection.setCanCollapse(Boolean.FALSE) on the individual SectionStackSections because it prevents mouse clicks on their headers from being fired and thus detected in a corresponding SectionHeaderClickHandler. Is there a bug in this API or am I interpreting its' usage incorrectly. If so, is there another way to hide these icons? Thanks.
Code Snippet:
Code Snippet:
Code:
protected Layout createMainCanvas() { Layout mainLayout = new HLayout(); mainLayout.setWidth("100%"); mainLayout.setHeight("*"); Layout navigatorLayout = new VLayout(); navigatorLayout.setWidth("20%"); navigatorLayout.setShowResizeBar(true); mainLayout.addMember(navigatorLayout); SectionStack navigatorStack = new SectionStack(); navigatorStack.setVisibilityMode(VisibilityMode.MUTEX); navigatorStack.setShowExpandControls(Boolean.FALSE); navigatorStack.setWidth("100%"); navigatorStack.setHeight("180px"); navigatorLayout.addMember(navigatorStack); String imgHTML = Canvas.imgHTML("analytic.png"); String title = "<span>" + imgHTML + " Analytics</span>"; final SectionStackSection analyticsSection = new SectionStackSection(title); navigatorStack.addSection(analyticsSection); navigatorStack.addSectionHeaderClickHandler(new SectionHeaderClickHandler() { @Override public void onSectionHeaderClick(SectionHeaderClickEvent event) { if (event != null) { event.cancel(); if (event.getSection() == analyticsSection) { // Process click... } } } }); }
Comment