Package org.zkoss.zul

Examples of org.zkoss.zul.Listbox$Iter


        }

        // +++++++ now synchronize the listBox in the parent
        // zul-file
        // +++ //
        Listbox listBoxOrderArticle = orderListCtrl.getListBoxOrderArticle();
        // now synchronize the orderposition listBox
        ListModelList lml3 = (ListModelList) listBoxOrderArticle.getListModel();
        // Check if the orderPosition object is new or updated
        // -1 means that the obj is not in the list, so it's
        // new.
        if (lml3.indexOf(orderposition) == -1) {
        } else {
View Full Code Here


    this._paging.addEventListener("onPaging", new OnPagingEventListener());
    this._paging.setPageSize(getPageSize());
    this._paging.setParent(divCenter);

    // Listbox
    this.listbox = new Listbox();
    this.listbox.setStyle("border: none;");
    this.listbox.setHeight("100%");
    this.listbox.setVisible(true);
    this.listbox.setParent(divCenter);
    this.listbox.setItemRenderer(new SearchBoxItemRenderer());
View Full Code Here

    bl.setParent(panelchildren);
    final Center center = new Center();
    center.setParent(bl);
    center.setBorder("0");

    this.lbTotalCount = new Listbox();
    this.lbTotalCount.setVflex(true);
    this.lbTotalCount.setMultiple(false);
    this.lbTotalCount.setWidth("99.5%");
    this.lbTotalCount.setHeight("99.5%");
    this.lbTotalCount.setParent(center);
View Full Code Here

    bl.setParent(panelchildren);
    final Center center = new Center();
    center.setParent(bl);
    center.setBorder("0");

    this.lbMonthlyCount = new Listbox();
    this.lbMonthlyCount.setVflex(true);
    this.lbMonthlyCount.setMultiple(false);
    this.lbMonthlyCount.setWidth("99.5%");
    this.lbMonthlyCount.setHeight("99.5%");
    // lb.setParent(panelchildrenSecLoginLogStatistikCenter);
View Full Code Here

    bl.setParent(panelchildren);
    final Center center = new Center();
    center.setParent(bl);
    center.setBorder("0");

    this.lbDailyCount = new Listbox();
    this.lbDailyCount.setVflex(true);
    this.lbDailyCount.setMultiple(false);
    this.lbDailyCount.setWidth("99.5%");
    this.lbDailyCount.setHeight("99.5%");
    // lb.setParent(panelchildrenSecLoginLogStatistikCenter);
View Full Code Here

    divCenter2.setWidth("100%");
    divCenter2.setHeight("100%");
    divCenter2.setParent(center2);

    // Listbox
    this.listbox = new Listbox();
    // listbox.setStyle("border: none;");
    this.listbox.setHeight("290px");
    this.listbox.setVisible(true);
    this.listbox.setParent(divCenter2);
    this.listbox.setItemRenderer(new SearchBoxItemRenderer());
View Full Code Here

    final Book book = spreadsheet.getBook();
    if (book == null) {
      return;
    }
    try {
      Listbox rdw_rangeList = (Listbox) Path
          .getComponent("//p1/rangeDeleteWin/rdw_rangeList");

      Listitem st = rdw_rangeList.getSelectedItem();
      if (st != null) {
        String rangeName = st.getLabel();
        book.removeName(rangeName);
      }
View Full Code Here

    final Book book = spreadsheet.getBook();
    if (book == null) {
      return;
    }
    try {
      Listbox rcw_rangeList = (Listbox) Path
          .getComponent("//p1/rangeChooseWin/rcw_rangeList");

      Listitem st = rcw_rangeList.getSelectedItem();
      Name range;
      Rect rect;
      if (st != null) {
        String rangeName = st.getLabel();
        range = book.getName(rangeName);
View Full Code Here

    final Book book = spreadsheet.getBook();
    if (book == null) {
      return;
    }
    try {
      Listbox rangeList;

      if (type.equals("add")) {
        rangeList = (Listbox) Path
            .getComponent("//p1/rangeAddWin/raw_rangeList");
      } else if (type.equals("delete")) {
        rangeList = (Listbox) Path
            .getComponent("//p1/rangeDeleteWin/rdw_rangeList");
      } else if (type.equals("choose")) {
        rangeList = (Listbox) Path
            .getComponent("//p1/rangeChooseWin/rcw_rangeList");
      } else {
        return;
      }
     
      Listitem st = rangeList.getSelectedItem();
      Name range;
      Rect rect;
      if (st != null) {
        String rangeName = st.getLabel();
        range = book.getName(rangeName);
View Full Code Here

  }
 
  public void openFormatList(String listId) {
    String[] myList = {"mfn_general","mfn_number","mfn_currency","mfn_accounting","mfn_date","mfn_time","mfn_percentage","mfn_fraction","mfn_scientific","mfn_text","mfn_special"};
    for(int i = 0; i< myList.length; i++){
      Listbox lb = (Listbox) self.getFellow(myList[i]);
      if(lb != null){
        if(listId.equals(myList[i])){
          lb.setVisible(true);
          lb.setSelectedIndex(0);
          selectedCategory = lb;
        }else{
          lb.setVisible(false);
        }
      }       
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Listbox$Iter

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.