Package org.sgx.yuigwt.yui.widget.tabview

Examples of org.sgx.yuigwt.yui.widget.tabview.TabView.selectChild()


       
        history.addValue("tab", newTabIndex==0 ? null : newTabIndex+"");
      }
    });    
   
    tb.selectChild(parseInt(history.get("tab"), 0));
    Y.on("history:change", new EventCallback<HistoryEvent>() {
      @Override
      public void call(HistoryEvent e) {
        // Ignore changes we make ourselves, since we don't need
          // to update the selection state for those. We're only
View Full Code Here


          // when the user clicks the browser's back or forward buttons.
        if(e.src().equals(Y.HistoryHash().SRC_HASH())) {
          if(e.changed().objGetObj("tab")!=null) {
            //e.changed.tab.newVal is a string containing the tab index
            int i = parseInt(e.changed().objGetObj("tab").objGetString("newVal"), 0);         
            tb.selectChild(i);
          }
          else if(e.removed().objGetString("tab")!=null) {
            // The tab selection was removed in the new state, so
              // select the first tab by default.
            tb.selectChild(0);
View Full Code Here

            tb.selectChild(i);
          }
          else if(e.removed().objGetString("tab")!=null) {
            // The tab selection was removed in the new state, so
              // select the first tab by default.
            tb.selectChild(0);
          }
          else {
          }
        }
      }
View Full Code Here

    getNavContent().setStyles(Style.create().overflow("scroll"));

    drawAccordionTest(Y, Y.one("#testcategories"));
    drawAllTest(Y, Y.one("#testall"));

    tb.selectChild(0);

  }

  private void drawAllTest(YuiGalleryContext Y, Node parent) {
View Full Code Here

      TabConfig.create().label("from markup").content(Y.one("#sometabcontent")),
    }));
   
    tb.render(parent);
   
    tb.selectChild(1);
   
//    Y.newButton(ButtonConfig.create().label("add new tab").render(parent).
//      on("click", new EventCallback<ButtonEvent>() {       
//        @Override
//        public void call(ButtonEvent e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.