Package org.zkoss.zul.api

Examples of org.zkoss.zul.api.Bandbox


        return repeated;
    }

    public void addCriterionRequirement(MachineWorkersConfigurationUnit unit,
            Button button) {
        Bandbox bandbox = (Bandbox) button.getPreviousSibling();
        Listitem item = ((Listbox) bandbox.getFirstChild().getFirstChild())
                .getSelectedItem();
        if (item != null) {
            CriterionWithItsType criterionAndType = (CriterionWithItsType) item
                    .getValue();
            bandbox.setValue(criterionAndType.getNameAndType());
            if (checkExistingCriterion(unit, criterionAndType.getCriterion())) {
                messages.showMessage(Level.ERROR,
                        _("Criterion previously selected"));
            } else {
                machineModel.addCriterionRequirementToConfigurationUnit(unit,
                        criterionAndType.getCriterion());
                bandbox.setValue("");
            }
        }
        Util.reloadBindings(button.getNextSibling());
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.api.Bandbox

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.