PROBLEM Statement
In my app and in the Showcase example AccordianSections:CustomControls, the controls do not show up in the SectionStackSection headers.
Please advise.
INFORMATION
Sorry about the formatting. I tried to cut and paste from eclipse. The code is an exact copy of the showcase example referred to in the Problem statement.
In my app and in the Showcase example AccordianSections:CustomControls, the controls do not show up in the SectionStackSection headers.
Please advise.
INFORMATION
- SNAPSHOT_v10.1d_2015-09-17/Enterprise Deployment 2015-09-17
- Chrome, Safari, Firefox
Sorry about the formatting. I tried to cut and paste from eclipse. The code is an exact copy of the showcase example referred to in the Problem statement.
Code:
    public void onModuleLoad() {         final ListGrid listGrid = new ListGrid();         listGrid.setCanEdit(true);         listGrid.setEditEvent(ListGridEditEvent.CLICK);         listGrid.setFields(new ListGridField("system", "System"),                 new ListGridField("monitor", "Monitor"));         final StatusCanvas statusReport = new StatusCanvas();         ImgButton addButton = new ImgButton();         addButton.setSrc("[SKIN]actions/add.png");         addButton.setSize(16);         addButton.setShowFocused(false);         addButton.setShowRollOver(false);         addButton.setShowDown(false);         addButton.addClickHandler(new ClickHandler() {             public void onClick(ClickEvent event) {                 listGrid.startEditingNew();             }         });         ImgButton removeButton = new ImgButton();         removeButton.setSrc("[SKIN]actions/remove.png");         removeButton.setSize(16);         removeButton.setShowFocused(false);         removeButton.setShowRollOver(false);         removeButton.setShowDown(false);         removeButton.addClickHandler(new ClickHandler() {             public void onClick(ClickEvent event) {                 listGrid.removeSelectedData();             }         });         DynamicForm form = new DynamicForm();         form.setHeight(1);         form.setWidth(75);         form.setNumCols(1);         SelectItem selectItem = new SelectItem();         selectItem.setWidth(120);         selectItem.setShowTitle(false);         selectItem.setValueMap("Development", "Staging", "Production");         selectItem.setDefaultValue("Development");         selectItem.addChangeHandler(new ChangeHandler() {             public void onChange(ChangeEvent event) {                 statusReport.setNewStatus((String)event.getValue());             }         });         form.setFields(selectItem);         SectionStack sectionStack = new SectionStack();         SectionStackSection section1 = new SectionStackSection();         section1.setTitle("Monitors");         section1.setItems(listGrid);         section1.setControls(addButton, removeButton);         section1.setExpanded(true);         SectionStackSection section2 = new SectionStackSection();         section2.setTitle("Status");         section2.setItems(statusReport);         section2.setControls(form);         section2.setExpanded(true);         sectionStack.setSections(section1, section2);         sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);         sectionStack.setAnimateSections(true);         sectionStack.setWidth(300);         sectionStack.setHeight(400);         sectionStack.setOverflow(Overflow.HIDDEN);         sectionStack.draw();     }     class StatusCanvas extends Canvas {         StatusCanvas() {             setPadding(5);         }         public void setNewStatus(String status) {             setContents(status + ": <span style='color:green;font-weight:bold'>Normal</span><br>");         }     }   
Comment