Package org.zkoss.zul

Examples of org.zkoss.zul.Tab


    // Change the BindingListModel.
    if (getOfficeListCtrl().getBinder() != null) {
      getOfficeListCtrl().getPagedBindingListWrapper().setSearchObject(soOffice);

      // get the current Tab for later checking if we must change it
      Tab currentTab = tabbox_OfficeMain.getSelectedTab();

      // check if the tab is one of the Detail tabs. If so do not
      // change the selection of it
      if (!currentTab.equals(tabOfficeList)) {
        tabOfficeList.setSelected(true);
      } else {
        currentTab.setSelected(true);
      }
    }

  }
View Full Code Here


      // Change the BindingListModel.
      if (getOfficeListCtrl().getBinder() != null) {
        getOfficeListCtrl().getPagedBindingListWrapper().setSearchObject(soOffice);

        // get the current Tab for later checking if we must change it
        Tab currentTab = tabbox_OfficeMain.getSelectedTab();

        // check if the tab is one of the Detail tabs. If so do not
        // change the selection of it
        if (!currentTab.equals(tabOfficeList)) {
          tabOfficeList.setSelected(true);
        } else {
          currentTab.setSelected(true);
        }
      }
    }
  }
View Full Code Here

      // Change the BindingListModel.
      if (getOfficeListCtrl().getBinder() != null) {
        getOfficeListCtrl().getPagedBindingListWrapper().setSearchObject(soOffice);

        // get the current Tab for later checking if we must change it
        Tab currentTab = tabbox_OfficeMain.getSelectedTab();

        // check if the tab is one of the Detail tabs. If so do not
        // change the selection of it
        if (!currentTab.equals(tabOfficeList)) {
          tabOfficeList.setSelected(true);
        } else {
          currentTab.setSelected(true);
        }
      }
    }
  }
View Full Code Here

      // Change the BindingListModel.
      if (getOfficeListCtrl().getBinder() != null) {
        getOfficeListCtrl().getPagedBindingListWrapper().setSearchObject(soOffice);

        // get the current Tab for later checking if we must change it
        Tab currentTab = tabbox_OfficeMain.getSelectedTab();

        // check if the tab is one of the Detail tabs. If so do not
        // change the selection of it
        if (!currentTab.equals(tabOfficeList)) {
          tabOfficeList.setSelected(true);
        } else {
          currentTab.setSelected(true);
        }
      }

    }
  }
View Full Code Here

   */
  private void doEdit(Event event) {
    // logger.debug(event.toString());

    // get the current Tab for later checking if we must change it
    Tab currentTab = tabbox_OfficeMain.getSelectedTab();

    // check first, if the tabs are created, if not than create it
    if (getOfficeDetailCtrl() == null) {
      Events.sendEvent(new Event("onSelect", tabOfficeDetail, null));
      // if we work with spring beanCreation than we must check a little
      // bit deeper, because the Controller are preCreated ?
    } else if (getOfficeDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", tabOfficeDetail, null));
    }

    // check if the tab is one of the Detail tabs. If so do not change the
    // selection of it
    if (!currentTab.equals(tabOfficeDetail)) {
      tabOfficeDetail.setSelected(true);
    } else {
      currentTab.setSelected(true);
    }

    // remember the old vars
    doStoreInitValues();

View Full Code Here

     * Check, if all tabs with data binded components are created So we work
     * with spring BeanCreation we must check a little bit deeper, because
     * the Controller are preCreated ? After that, go back to the
     * current/selected tab.
     */
    Tab currentTab = tabbox_OfficeMain.getSelectedTab();

    if (getOfficeDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event(Events.ON_SELECT, tabOfficeDetail, null));
    }

    // go back to selected tab
    currentTab.setSelected(true);

    // Check which button is clicked and calculate the rowIndex
    if (((ForwardEvent) event).getOrigin().getTarget() == btnNext) {
      if (index < (blml.size() - 1)) {
        index = index + 1;
View Full Code Here

    if (getArticleListCtrl().getBinder() != null) {
      getArticleListCtrl().getPagedBindingListWrapper().clearFilters();

      // get the current Tab for later checking if we must change it
      final Tab currentTab = tabbox_ArticleMain.getSelectedTab();

      // check if the tab is one of the Detail tabs. If so do not
      // change the selection of it
      if (!currentTab.equals(tabArticleList)) {
        tabArticleList.setSelected(true);
      } else {
        currentTab.setSelected(true);
      }
    }
  }
View Full Code Here

        // Change the BindingListModel.
        getArticleListCtrl().getPagedBindingListWrapper().setSearchObject(so);

        // get the current Tab for later checking if we must change it
        final Tab currentTab = this.tabbox_ArticleMain.getSelectedTab();

        // check if the tab is one of the Detail tabs. If so do not
        // change the selection of it
        if (!currentTab.equals(this.tabArticleList)) {
          tabArticleList.setSelected(true);
        } else {
          currentTab.setSelected(true);
        }
      }
    }
  }
View Full Code Here

        // Change the BindingListModel.
        getArticleListCtrl().getPagedBindingListWrapper().setSearchObject(so);

        // get the current Tab for later checking if we must change it
        final Tab currentTab = this.tabbox_ArticleMain.getSelectedTab();

        // check if the tab is one of the Detail tabs. If so do not
        // change the selection of it
        if (!currentTab.equals(this.tabArticleList)) {
          tabArticleList.setSelected(true);
        } else {
          currentTab.setSelected(true);
        }
      }
    }
  }
View Full Code Here

   */
  private void doEdit(Event event) {
    // logger.debug(event.toString());

    // get the current Tab for later checking if we must change it
    final Tab currentTab = this.tabbox_ArticleMain.getSelectedTab();

    // check first, if the tabs are created, if not than create it
    if (getArticleDetailCtrl() == null) {
      Events.sendEvent(new Event("onSelect", tabArticleDetail, null));
      // if we work with spring beanCreation than we must check a little
      // bit deeper, because the Controller are preCreated ?
    } else if (getArticleDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", tabArticleDetail, null));
    }

    // check if the tab is one of the Detail tabs. If so do not change the
    // selection of it
    if (!currentTab.equals(this.tabArticleDetail)) {
      tabArticleDetail.setSelected(true);
    } else {
      currentTab.setSelected(true);
    }

    // remember the old vars
    doStoreInitValues();

View Full Code Here

TOP

Related Classes of org.zkoss.zul.Tab

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.