Examples of Comboitem


Examples of org.zkoss.zul.Comboitem

        Iterator it = keyValueList.iterator();

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

    }
View Full Code Here

Examples of org.zkoss.zul.Comboitem

        uniIdTB.setText(form.getUniId());

        boolean mechanicBelongToCompany = false;
        Iterator companyCBItr = companyCB.getItems().iterator();
        while (companyCBItr.hasNext()) {
            Comboitem item = (Comboitem) companyCBItr.next();
            Org varCompany = (Org) item.getValue();
            if (form.getCompanyId() != null
                    && varCompany.getOrgId().equals(form.getCompanyId())) {
                companyCB.setSelectedItem(item);
                form.setCompany(varCompany); // if has company, re-link it now
                mechanicBelongToCompany = true;
View Full Code Here

Examples of org.zkoss.zul.Comboitem

        Combobox systemTypeCB = (Combobox) getFellow("system");
        Textbox maintainEventTypeTB = (Textbox) getFellow("maintainEventType");

        Iterator stItr = systemTypeCB.getItems().iterator();
        while (stItr.hasNext()) {
            Comboitem item = (Comboitem) stItr.next();
            String s = (String) item.getValue();
            if (s.equals(var.getSystemType())) {
                systemTypeCB.setSelectedItem(item);
            }
        }
       
View Full Code Here

Examples of org.zkoss.zul.Comboitem

        }
        // re-set equipment combobox
        Iterator it = equipmentList.iterator();
        while (it.hasNext()) {
            EquipmentForm ef = (EquipmentForm) it.next();
            Comboitem item = new Comboitem();
            item.setValue(ef);
            item.setLabel(ef.getEquipmentId() + " - " + ef.getEquipmentName());
            item.setParent(equipmentCB);
        }
    }
View Full Code Here

Examples of org.zkoss.zul.Comboitem

        floorTB.setText(form.getFloor());
        regionTB.setText(form.getRegion());
        Iterator systemCBItr = systemCB.getItems().iterator();
        while (systemCBItr.hasNext()) {
            Comboitem item = (Comboitem) systemCBItr.next();
            if (item.getValue().toString().equals(form.getSystemType())) {
                systemCB.setSelectedItem(item);
            }
        }
        initEquipmentBySystem();

        Iterator equipmentCBItr = equipmentCB.getItems().iterator();
        while (equipmentCBItr.hasNext()) {
            Comboitem item = (Comboitem) equipmentCBItr.next();
            Equipment equ = (Equipment) item.getValue();
            if (equ.getEquipmentId().equals(form.getEquipmentId())) {
                equipmentCB.setSelectedItem(item);
            }
        }

        Textbox supplierNameTB = (Textbox) getFellow("supplierName");
        Combobox priorityCB = (Combobox) getFellow("priority");
        Textbox propertyCodeTB = (Textbox) getFellow("propertyCode");
        Textbox descriptionTB = (Textbox) getFellow("description");


        supplierNameTB.setText(form.getSupplierShortName());
        Iterator priorityCBItr = priorityCB.getItems().iterator();
        while (priorityCBItr.hasNext()) {
            Comboitem item = (Comboitem) priorityCBItr.next();
            if (item.getValue().toString().equals(form.getPriority())) {
                priorityCB.setSelectedItem(item);
            }
        }
        propertyCodeTB.setText(form.getPropertyCode());
        descriptionTB.setText(form.getDescription());
View Full Code Here

Examples of org.zkoss.zul.Comboitem

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

        Iterator it = keyValueList.iterator();
        while (it.hasNext()) {
            Supplier s = (Supplier) it.next();
            Comboitem item = new Comboitem();
            item.setValue(s);
            item.setLabel(s.getShortName());
            item.setParent(supplierIdCB);
        }
    }
View Full Code Here

Examples of org.zkoss.zul.Comboitem

        equipmentNameTB.setText(var.getEquipmentName());

        Iterator supplierIt = supplierIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Supplier s = (Supplier) item.getValue();
            if (var.getSupplierId() != null && var.getSupplierId() == s.getSupplierId()) {
                supplierIdCB.setSelectedItem(item);
            }
        }

        pccCodeTB.setText(var.getPccCode());
        venderCodeTB.setText(var.getVenderCode());

        Textbox insideCodeTB = (Textbox) getFellow("insideCode");
        Combobox priorityCB = (Combobox) getFellow("priority");
        Doublebox latestPriceTB = (Doublebox) getFellow("latestPrice");
        Intbox inventoryAmountTB = (Intbox) getFellow("inventoryAmount");
        Combobox systemTypeCB = (Combobox) getFellow("system");

        insideCodeTB.setText(var.getInsideCode());
        Iterator priorityIt = priorityCB.getItems().iterator();
        while (priorityIt.hasNext()) {
            Comboitem item = (Comboitem) priorityIt.next();

            String priorityStr = item.getValue().toString();
            if (var.getPriority() != null && var.getPriority().equals(priorityStr)) {
                priorityCB.setSelectedItem(item);
            }
        }
        latestPriceTB.setValue(var.getLatestPrice());
        inventoryAmountTB.setValue(var.getInventoryAmount());

        Iterator stItr = systemTypeCB.getItems().iterator();
        while (stItr.hasNext()) {
            Comboitem item = (Comboitem) stItr.next();
            String s = (String) item.getValue();
            if (s.equals(var.getSystemType())) {
                systemTypeCB.setSelectedItem(item);
            }
        }
    }
View Full Code Here

Examples of org.zkoss.zul.Comboitem


        Iterator it = keyValueList.iterator();
        while (it.hasNext()) {
            Parameter p = (Parameter) it.next();
            Comboitem item = new Comboitem();
            item.setValue(p.getParaName());
            item.setLabel(p.getParaValue());
            item.setParent(paraCatalogueCB);
        }
    }
View Full Code Here

Examples of org.zkoss.zul.Comboitem


        List items = paraCatalogueCB.getItems();
        Iterator it = items.iterator();
        while (it.hasNext()) {
            Comboitem item = (Comboitem) it.next();
            if (var.getParaCatalogue().equals(item.getValue().toString())) {
                paraCatalogueCB.setSelectedItem(item);
            }

        }
        paraNameTB.setText(var.getParaName());
View Full Code Here

Examples of org.zkoss.zul.Comboitem

                    && maintainEventTypeList.size() != 0) {

                Iterator it = maintainEventTypeList.iterator();
                while (it.hasNext()) {
                    MaintainEventType maintainEventType = (MaintainEventType) it.next();
                    Comboitem item = new Comboitem();
                    item.setValue(maintainEventType);
                    item.setLabel(maintainEventType.getMaintainEventType());
                    item.setParent(maintainEventTypeCB);
                }
            }
        }
    }
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.