Examples of ComboItem


Examples of org.zkoss.zul.Comboitem

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

        Iterator it = keyValueList.iterator();
        while (it.hasNext()) {
            Org orgList = (Org) it.next();
            Comboitem item = new Comboitem();
            item.setValue(orgList);
            item.setLabel(orgList.getOrgName());
            item.setParent(orgIdCB);
        }
    }
View Full Code Here

Examples of org.zkoss.zul.Comboitem

    public void query() {
        // get list

        Combobox orgCB = (Combobox) this.getFellow("OrgId");
        Comboitem orgCbItem = orgCB.getSelectedItem();
        String queryOrgName = ((Org) orgCbItem.getValue()).getOrgName();
        Map para = new HashMap();
        para.put("HashMap", queryOrgName);

        System.out.println("CCCCCCCCCCCCCCCCCCCC" + queryOrgName);
        refreshObjEntities(para);
View Full Code Here

Examples of org.zkoss.zul.Comboitem

        Textbox accountTB = (Textbox) getFellow("Account");
        Textbox passwdTB = (Textbox) getFellow("Passwd");

        Iterator orgCbIt = orgCB.getItems().iterator();
        while (orgCbIt.hasNext()) {
            Comboitem orgCbItem = (Comboitem) orgCbIt.next();
            Org org = (Org) orgCbItem.getValue();

            logger.debug("" + var.getOrgId() + ", " + org.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == org.getOrgId()) {
                orgCB.setSelectedItem(orgCbItem);
            }
View Full Code Here

Examples of org.zkoss.zul.Comboitem

        // show the service
        Combobox serviceCB = (Combobox) getFellow("service");
        for (int index = 0; index < ServiceList.size(); index++) {
            Service service = (Service) ServiceList.get(index);
            Comboitem item = new Comboitem();
            item.setLabel(service.getServiceName());
            item.setValue(service);
            item.setParent(serviceCB);
        }
    }
View Full Code Here

Examples of org.zkoss.zul.Comboitem

        Combobox activeFlagCb = (Combobox) getFellow("ActiveFlag");
        Iterator activeFlagIt = activeFlagList.iterator();
        while (activeFlagIt.hasNext()) {
            FunForm activeFlag = (FunForm) activeFlagIt.next();
            Comboitem activeFlagItem = new Comboitem();
            activeFlagItem.setValue(activeFlag.getActiveFlag());
            activeFlagItem.setLabel(activeFlag.getActiveFlagString());
            activeFlagItem.setParent(activeFlagCb);
        }

        Combobox bootFlagCb = (Combobox) getFellow("BootFlag");
        Iterator bootFlagIt = bootFlagList.iterator();
        while (bootFlagIt.hasNext()) {
            FunForm bootFlag = (FunForm) bootFlagIt.next();
            Comboitem bootFlagItem = new Comboitem();
            bootFlagItem.setValue(bootFlag.getBootFlag());
            bootFlagItem.setLabel(bootFlag.getBootFlagString());
            bootFlagItem.setParent(bootFlagCb);
        }
    }
View Full Code Here

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

Examples of org.zkoss.zul.Comboitem

        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

Examples of org.zkoss.zul.Comboitem

        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

Examples of org.zkoss.zul.Comboitem



        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

Examples of org.zkoss.zul.Comboitem

        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
TOP
Copyright © 2018 www.massapi.com. 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.