Package org.zkoss.zul

Examples of org.zkoss.zul.Tabs


        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,
View Full Code Here


        /* get an instance of the borderlayout defined in the zul-file */
        Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        Center center = bl.getCenter();
        // get the tabs component
        Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        /**
         * Check if the tab is already opened than select them and<br>
         * go out of here. If not than create them.<br>
         */

        Tab checkTab = null;
        try {
          // checkTab = (Tab) tabs.getFellow(tabName);
          checkTab = (Tab) tabs.getFellow("tab_" + tabName.trim());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

View Full Code Here

        /* get an instance of the borderlayout defined in the zul-file */
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        final Center center = bl.getCenter();
        // get the tabs component
        final Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        /**
         * Check if the tab is already opened than select them and<br>
         * go out of here. If not than create them.<br>
         */

        Tab checkTab = null;
        try {
          // checkTab = (Tab) tabs.getFellow(tabName);
          checkTab = (Tab) tabs.getFellow("tab_" + tabID.trim());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

View Full Code Here

        /* get an instance of the borderlayout defined in the zul-file */
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        final Center center = bl.getCenter();

        final Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        // Check if the tab is already open, if not than create them
        Tab checkTab = null;
        try {
          checkTab = (Tab) tabs.getFellow("tab_" + this.getId());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

View Full Code Here

        /* get an instance of the borderlayout defined in the zul-file */
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        final Center center = bl.getCenter();

        final Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        // Check if the tab is already open, if not than create them
        Tab checkTab = null;
        try {
          checkTab = (Tab) tabs.getFellow("tab_" + this.getId());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

View Full Code Here

                Emitter<Timeplot> timePlot) {
            Tabbox chartComponent = new Tabbox();
            chartComponent.setOrient("vertical");
            chartComponent.setHeight("200px");

            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,
View Full Code Here

    private void selectTab(String tabName) {
        tabSelected = tabName;
    }

    private void appendTabs(Tabbox chartComponent) {
        Tabs chartTabs = new Tabs();
        chartTabs.appendChild(createTab(_("Load"), "load_tab"));
        chartTabs.appendChild(createTab(_("Earned value"), "earned_value_tab"));

        chartComponent.appendChild(chartTabs);
        chartTabs.setSclass("charts-tabbox");
    }
View Full Code Here

        timeplot.appendChild(new Plotinfo());
        return timeplot;
    }

    private void appendTabs(Tabbox chartComponent) {
        Tabs chartTabs = new Tabs();
        chartTabs.appendChild(new Tab(_("Load")));
        chartTabs.appendChild(new Tab(_("Earned value")));

        chartComponent.appendChild(chartTabs);
        chartTabs.setWidth("124px");
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Tabs

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.