protected final void oncmbAnaesTypeValueSet(Object value) { java.util.ArrayList listOfValues = this.form.lyr1().tabSearch().cmbAnaesType().getValues(); if (value == null) { if (listOfValues != null && listOfValues.size() > 0) { for (int x = 0; x < listOfValues.size(); x++) { ims.clinical.vo.lookups.AnaestheticType existingInstance = (ims.clinical.vo.lookups.AnaestheticType) listOfValues.get(x); if (!existingInstance.isActive()) { bindcmbAnaesTypeLookup(); return; } } } } else if (value instanceof ims.clinical.vo.lookups.AnaestheticType) { ims.clinical.vo.lookups.AnaestheticType instance = (ims.clinical.vo.lookups.AnaestheticType) value; if (listOfValues != null) { if (listOfValues.size() == 0) bindcmbAnaesTypeLookup(); for (int x = 0; x < listOfValues.size(); x++) { ims.clinical.vo.lookups.AnaestheticType existingInstance = (ims.clinical.vo.lookups.AnaestheticType) listOfValues.get(x); if (existingInstance.equals(instance)) return; } } this.form .lyr1() .tabSearch() .cmbAnaesType() .newRow(instance, instance.getText(), instance.getImage(), instance.getTextColor()); } }