Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SectionStackSection Controls do not show up

    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) {
    &#194;&#160; &#194;&#160; &#194;&#160; &#194;&#160; &#194;&#160; &#194;&#160; setContents(status + ": <span style='color:green;font-weight:bold'>Normal</span><br>");
    &#194;&#160; &#194;&#160; &#194;&#160; &#194;&#160; }
    &#194;&#160; &#194;&#160; }&#194;&#160; &#194;&#160;

    #2
    The problem has been fixed now, you will find the patch applied to the next nightly build that will be released in a few hours.
    Thanks for your feedback.

    Comment


      #3
      Originally posted by Isomorphic View Post
      The problem has been fixed now, you will find the patch applied to the next nightly build that will be released in a few hours.
      Thanks for your feedback.
      Again, THANK YOU for such a quick turn around for a fix! I have verified that last nights build fixed the problem.

      By the way, how do I remove all the unicode insertions into the thread posts?
      Last edited by michaeljseo; 18 Sep 2015, 06:18.

      Comment


        #4
        Hi michaeljseo,

        I don't see a new version of 5.1d (neither Power nor LGPL nor EnterpriseEval). How did you obtain it?

        Best regards
        Blama

        Comment


          #5
          Isomorphic: The OP is using SNAPSHOT_v10.1d_2015-09-17/Enterprise Deployment 2015-09-17. This nightly also does not exist for Power, LGPL, EnterpriseEval. Is there some problem with the release of the builds?

          Best regards
          Blama

          Comment


            #6
            Originally posted by Blama View Post
            Hi michaeljseo,

            I don't see a new version of 5.1d (neither Power nor LGPL nor EnterpriseEval). How did you obtain it?

            Best regards
            Blama
            Ooops, I forgot to note that the latest nightly build is still pointing to the 17th. &#194;&#160;I had to:
            • Go to previous builds page and not use the convenient get last nights build.
            • Go to your version and get the 9-18 build

            Comment


              #7
              Hm, http://www.smartclient.com/builds/Sm...EnterpriseEval shows 2015-09-15 as latest version.

              Comment


                #8
                Yes, some of the builds have failed the last couple of nights - we're looking into it.

                Comment


                  #9
                  Originally posted by Blama View Post
                  Hm, http://www.smartclient.com/builds/Sm...EnterpriseEval shows 2015-09-15 as latest version.
                  I got mine from:

                  http://www.smartclient.com/builds/Sm....1d/Enterprise

                  Comment

                  Working...
                  X