Package org.zkoss.zul

Examples of org.zkoss.zul.Tabpanels


    if (startIndex == endIndex)
      return;

    int refer = endIndex > startIndex ? endIndex + 1 : endIndex;

    Tabpanels panels = (Tabpanels) getTabbox().getTabpanels();

    Tab startTab = (Tab) getChildren().get(startIndex);
    try {
      _noResponse = true;

      if (refer == getChildren().size()) {
        panels.appendChild(startTab.getLinkedPanel());
        appendChild(startTab);
      } else {
        Tab referTab = (Tab) getChildren().get(refer);
        panels.insertBefore(startTab.getLinkedPanel(), referTab.getLinkedPanel());

        insertBefore(startTab, referTab);

      }
View Full Code Here


        Treecell tcBootFlag = (Treecell) rowChildrenData.get(3);
        String bootFlag = tcBootFlag.getLabel();


        Tabs tbs = (Tabs) getFellow("tbs");
        Tabpanels tps = (Tabpanels) getFellow("tps");

        // if bootFlat =N , db setter not want you boot this function
        // if the tab is opened, you should not open it again
        // when judging  isOpened, if the tab is opened, set selected,
        if (!"N".equals(bootFlag) && !isOpened("funTab_" + funIdStr, tbs)) {
View Full Code Here

          tab.setLabel(tabName.trim());
          tab.setClosable(true);

          tab.setParent(tabs);

          Tabpanels tabpanels = (Tabpanels) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter").getFellow("tabpanelsBoxIndexCenter");
          Tabpanel tabpanel = new Tabpanel();
          tabpanel.setHeight("100%");
          tabpanel.setStyle("padding: 0px;");
          tabpanel.setParent(tabpanels);
View Full Code Here

            tab.setLabel(tabLabel.trim());
          }
          tab.setClosable(true);
          tab.setParent(tabs);

          final Tabpanels tabpanels = (Tabpanels) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter")
              .getFellow("tabpanelsBoxIndexCenter");
          final Tabpanel tabpanel = new Tabpanel();
          tabpanel.setHeight("100%");
          tabpanel.setStyle("padding: 0px;");
          tabpanel.setParent(tabpanels);
View Full Code Here

          tab.setLabel(this.getLabel().trim());
          tab.setClosable(true);

          tab.setParent(tabs);

          final Tabpanels tabpanels = (Tabpanels) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter").getFellow("tabpanelsBoxIndexCenter");
          final Tabpanel tabpanel = new Tabpanel();
          tabpanel.setHeight("100%");
          tabpanel.setStyle("padding: 0px;");
          tabpanel.setParent(tabpanels);
View Full Code Here

          tab.setLabel(this.getLabel().trim());
          tab.setClosable(true);

          tab.setParent(tabs);

          final Tabpanels tabpanels = (Tabpanels) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter").getFellow("tabpanelsBoxIndexCenter");
          final Tabpanel tabpanel = new Tabpanel();
          tabpanel.setHeight("100%");
          tabpanel.setStyle("padding: 0px;");
          tabpanel.setParent(tabpanels);
View Full Code Here

            Tabs chartTabs = new Tabs();
            chartTabs.appendChild(new Tab(_("Load")));
            chartComponent.appendChild(chartTabs);
            chartTabs.setWidth("124px");

            Tabpanels chartTabpanels = new Tabpanels();
            Tabpanel loadChartPannel = new Tabpanel();
            // avoid adding Timeplot since it has some pending issues
            CompanyPlanningModel.appendLoadChartAndLegend(loadChartPannel,
                    timePlot);
            chartTabpanels.appendChild(loadChartPannel);
            chartComponent.appendChild(chartTabpanels);
            return chartComponent;
        }
View Full Code Here

        long preparingChartsAndMisc = System.currentTimeMillis();

        setupZoomLevelListener(planner, order);

        // Prepare tabpanels
        Tabpanels chartTabpanels = new Tabpanels();

        // Create 'Load' tab
        Timeplot chartLoadTimeplot = createEmptyTimeplot();
        chartTabpanels.appendChild(createLoadTimeplotTab(chartLoadTimeplot));

        // Create 'Earned value' tab
        Timeplot chartEarnedValueTimeplot = createEmptyTimeplot();
        this.earnedValueChartFiller = createOrderEarnedValueChartFiller(planner.getTimeTracker());
        chartTabpanels.appendChild(createEarnedValueTab(chartEarnedValueTimeplot, earnedValueChartFiller));

        // Append tab panels
        chartComponent.appendChild(chartTabpanels);
        ChangeHooker changeHooker = new ChangeHooker(configuration, saveCommand);
View Full Code Here

        chartComponent.appendChild(chartTabs);
        chartTabs.setWidth("124px");
    }

    private void appendTabpanels(Tabbox chartComponent){
        chartComponent.appendChild(new Tabpanels());
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Tabpanels

Copyright © 2018 www.massapicom. 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.