Package org.zkoss.zul

Examples of org.zkoss.zul.Tabbox


      smartUpdate("align", _align);
    }
  }
 
  public void invalidate() {
    Tabbox tbox = getTabbox();
    if (tbox != null && tbox.isVertical())
      tbox.invalidate();
    else
      super.invalidate();
  }
View Full Code Here


    else
      super.invalidate();
  }
  public String getZclass() {
    if (_zclass != null) return _zclass;
    final Tabbox tabbox = getTabbox();
    final String added = tabbox != null && tabbox.isVertical() ? "-ver" : "";
    return "z-tabs" + added;
  }
View Full Code Here

      newtab.setSelectedDirectly(false)//turn off first
      sel = desel = true;          //trun on later
    }

    if (super.insertBefore(child, refChild)) {
      final Tabbox tabbox = getTabbox();

      if (sel)
        if (tabbox != null) {
          tabbox.setSelectedTab(newtab);
        } else {
          newtab.setSelectedDirectly(true);
          if (desel)
            for (Iterator it = getChildren().iterator(); it.hasNext();) {
              final Tab tab = (Tab)it.next();
View Full Code Here

    return false;
  }
  public void onChildRemoved(Component child) {
    super.onChildRemoved(child);

    final Tabbox tabbox = getTabbox();
    if (tabbox != null)
      ((Tab)child).removeEventListener(Events.ON_SELECT, tabbox._listener);
  }
View Full Code Here

      ((Tab)child).removeEventListener(Events.ON_SELECT, tabbox._listener);
  }
  public void onChildAdded(Component child) {
    super.onChildAdded(child);

    final Tabbox tabbox = getTabbox();
    if (tabbox != null)
      ((Tab)child).addEventListener(Events.ON_SELECT, tabbox._listener);
  }
View Full Code Here

            return result;
        }

        private Tabbox buildChart(ResourcesLoadPanel resourcesLoadPanel,
                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,
                    timePlot);
            chartTabpanels.appendChild(loadChartPannel);
            chartComponent.appendChild(chartTabpanels);
            return chartComponent;
        }
View Full Code Here

        configuration
                .addCommandOnTask(buildAdvanceConsolidationCommand(advanceConsolidationController));

        configuration.setDoubleClickCommand(resourceAllocationCommand);
        addPrintSupport(configuration, order);
        Tabbox chartComponent = new Tabbox();
        chartComponent.setOrient("vertical");
        chartComponent.setHeight("200px");
        appendTabs(chartComponent);

        configuration.setChartComponent(chartComponent);
        configureModificators(planningState.getOrder(), configuration);
        long setConfigurationTime = System.currentTimeMillis();
        planner.setConfiguration(configuration);
        PROFILING_LOG.debug("setConfiguration on planner took: "
                + (System.currentTimeMillis() - setConfigurationTime) + " ms");
        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);

        setupLoadChart(chartLoadTimeplot, planner, changeHooker);
        setupEarnedValueChart(chartEarnedValueTimeplot, earnedValueChartFiller,
                planner, changeHooker);
View Full Code Here

        }
        boolean expandPlanningViewChart = user
                .isExpandCompanyPlanningViewCharts();
        configuration.setExpandPlanningViewCharts(expandPlanningViewChart);

        final Tabbox chartComponent = new Tabbox();
        chartComponent.setOrient("vertical");
        chartComponent.setHeight("200px");
        appendTabs(chartComponent);
        appendTabpanels(chartComponent);

        configuration.setChartComponent(chartComponent);
        if (doubleClickCommand != null) {
View Full Code Here

    private void resetSelectedTab() {
        selectedTab = null;
    }

    private void setCurrentTab() {
        Tabbox tabboxOrder = (Tabbox) editWindow.getFellowIfAny("tabboxOrder");
        if (tabboxOrder != null) {
            selectedTab = tabboxOrder.getSelectedTab();
        }
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Tabbox

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.