Package org.zkoss.zul

Examples of org.zkoss.zul.Comboitem


        Combobox bootFlagCB = (Combobox) getFellow("BootFlag");
        Combobox activeFlag = (Combobox) getFellow("ActiveFlag");

        Iterator ServiceCBIt = serviceCB.getItems().iterator();
        while (ServiceCBIt.hasNext()) {
            Comboitem item = (Comboitem) ServiceCBIt.next();
            if (((Service) item.getValue()).getServiceId().toString().equals(form.getServiceId().toString())) {
                serviceCB.setSelectedItem(item);
                form.setService((Service) item.getValue());
            }
        }

        funNameTB.setText(form.getFunName());
        Iterator bootFlagIt = bootFlagCB.getItems().iterator();
        while (bootFlagIt.hasNext()) {
            Comboitem item = (Comboitem) bootFlagIt.next();
            if (item.getValue().toString().equals(form.getBootFlag())) {
                bootFlagCB.setSelectedItem(item);
            }
        }
        Iterator activeFlagIt = activeFlag.getItems().iterator();
        while (activeFlagIt.hasNext()) {
            Comboitem item = (Comboitem) activeFlagIt.next();
            if (item.getValue().toString().equals(form.getActiveFlag())) {
                activeFlag.setSelectedItem(item);
            }
        }

        Textbox funPathTB = (Textbox) getFellow("FunPathTB");
View Full Code Here


        sess = null;

        Iterator it = keyValueList.iterator();
        while (it.hasNext()) {
            Org o = (Org) it.next();
            Comboitem item = new Comboitem();
            item.setValue(o);
            item.setLabel(o.getOrgName());

            item.setParent(providerCB);
        }
    }
View Full Code Here

        Combobox providerCB = (Combobox) getFellow("provider");
        Iterator it = providerCB.getItems().iterator();
        while (it.hasNext()) {

            Comboitem item = (Comboitem) it.next();
            Org o = (Org) item.getValue();
            if (o.getOrgId().equals(form.getProviderId())) {
                providerCB.setSelectedItem(item);
            }
        }

        Textbox serviceNameTB = (Textbox) getFellow("serviceName");
        Textbox serviceUrlTB = (Textbox) getFellow("serviceUrl");
        Textbox parameterDescriptionTB = (Textbox) getFellow("parameterDescription");
        Textbox serviceKeyTB = (Textbox) getFellow("serviceKey");

        serviceNameTB.setText(form.getServiceName());
        serviceUrlTB.setText(form.getServiceUrl());
        parameterDescriptionTB.setText(form.getParameterDescription());
        serviceKeyTB.setText(form.getServiceKey());


        Combobox connectFrequencyCB = (Combobox) getFellow("connectFrequency");
        Iterator cfItr = connectFrequencyCB.getItems().iterator();
        while (cfItr.hasNext()) {
            Comboitem item = (Comboitem) cfItr.next();
            String connectFrequencyValue = item.getValue().toString();
            if (connectFrequencyValue.equals(form.getConnectFrequency())) {
                connectFrequencyCB.setSelectedItem(item);
            }
        }
View Full Code Here



        while (it.hasNext()) {
            Org s = (Org) it.next();
            Comboitem item = new Comboitem();
            item.setValue(s);
            item.setLabel(s.getOrgName());
            item.setParent(orgIdCB);




        }
View Full Code Here

        Textbox accountTB = (Textbox) getFellow("account");
        Textbox passwdTB = (Textbox) getFellow("passwd");

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Org s = (Org) item.getValue();

            logger.debug("" + var.getOrgId() + ", " + s.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == s.getOrgId()) {
                orgIdCB.setSelectedItem(item);
            }
View Full Code Here

        passwdTB.setText(var.getPasswd());
    }

    public void query() {
        Combobox orgIdCB = (Combobox) getFellow("orgId");
        Comboitem itemVar = orgIdCB.getSelectedItem();
        String queryString = null;
        Map para = new HashMap();

        logger.debug("--->itemVar: "+itemVar);
        if (itemVar != null) {
            queryString = orgIdCB.getSelectedItem().getLabel();
            para.put("orgName", queryString);
        } else {
            para.put("orgName", null);
        }

        refreshObjEntities(para);

        // empty all fields , except the query condition field
        UserForm emptyObj = new UserForm();
        objToView(emptyObj);

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Org s = (Org) item.getValue();

            if (queryString != null && queryString.equals(s.getOrgName())) {
                orgIdCB.setSelectedItem(item);
            }
        }
View Full Code Here

    logger.debug("para CB size:" + keyValueList.size());

    Iterator it = keyValueList.iterator();
    while (it.hasNext()) {
        Para p = (Para) it.next();
        Comboitem item = new Comboitem();
        item.setValue(p.getParaName());
        item.setLabel(p.getParaValue());
        logger.debug("-----------------insert data---------->>>>"+ p.getParaName()+
                "  "+p.getParaValue());
        item.setParent(paraCatalogueCB);
    }
}
View Full Code Here

       
        List items = paraCatalogueCB.getItems();
        Iterator it = items.iterator();
        while(it.hasNext()) {
            Comboitem item = (Comboitem)it.next();
            if(item.getValue().toString().equals(var.getParaCatalogue())) {
                paraCatalogueCB.setSelectedItem(item);
            }
           
        }
        paraNameTB.setText(var.getParaName());
View Full Code Here

    model.set(sourceIdx, dstSort);
  }
 
  public void onSelect$sortOrientationCombo () {
    boolean orientation;
    Comboitem seld = sortOrientationCombo.getSelectedItem();
    orientation = getLabel(ORIENTATION_COLUMN_KEY).equals(seld.getLabel()) ?
        SORT_TOP_TO_BOTTOM : SORT_LEFT_TO_RIGHT;
    if (sortOrientation != orientation) {
      sortOrientation = orientation;
      setAvailableSortTarget(availableSortIndex);
     
View Full Code Here

    }
   
    private void appendComboitemsBySortIndex(int index) {
      if (index < 0) { //default sort target is string
        sortNumber = false;
        appendChild(new Comboitem(getLabel(STR_ASCENDING_KEY)));
        appendChild(new Comboitem(getLabel(STR_DESCENDING_KEY)));
      } else {
        if (isAllCellNumberType(index)) {
          sortNumber = true;
          appendChild(new Comboitem(getLabel(NUM_ASCENDING_KEY)));
          appendChild(new Comboitem(getLabel(NUM_DESCENDING_KEY)));
        } else {
          sortNumber = false;
          appendChild(new Comboitem(getLabel(STR_ASCENDING_KEY)));
          appendChild(new Comboitem(getLabel(STR_DESCENDING_KEY)));
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Comboitem

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.