/** * Get the component at this position. * @return The component at this position or null. */ public ScreenComponent getComponent(int iPosition) { return (ScreenComponent)super.getComponent(iPosition); } /**
/** * Free. */ public void free() { JCellRemoteComboBox box = (JCellRemoteComboBox)this.getFieldList().getField(BookingPax.PAX_CATEGORY_ID).getComponent(0); box.setRecord(null); // Don't free this record. box = (JCellRemoteComboBox)this.getFieldList().getField(BookingPax.PAX_CATEGORY_ID).getComponent(1); box.setRecord(null); // Don't free this record. super.free(); } /**
/** * Free. */ public void free() { JRemoteComboBox box = (JRemoteComboBox)this.getFieldList().getField(BookingPax.PAX_CATEGORY_ID).getComponent(CONTROL); box.setRecord(null); // Don't free this record. super.free(); } /**
/** * Get the first converter for this field (must be linked to at least one ScreenComponent for this to work). * @return The converter object (or this if there is none). */ public Converter getFieldConverter() { for (int i = 0; ; i++) { Object ojbComponent = this.getField().getComponent(i); if (ojbComponent == null) break; if (ojbComponent instanceof ScreenComponent) { Converter conv = (Converter)((ScreenComponent)ojbComponent).getConverter(); if ((conv != null) && (conv.getField() == this.getField())) return conv; // Since there is a converter in front of this field, return the converter } } return this; } /**
ScreenComponent sField = (ScreenComponent)this.getNextConverter().getField().getComponent(iSeq); if (sField == null) break; for (int iSeq2 = 0; ; iSeq2++) if (converter.getField().getComponent(iSeq2) == null) break; if (converter.getField().getComponent(iSeq2) == sField) bFound = true;
ScreenField sField = (ScreenField)this.getNextConverter().getField().getComponent(iSeq); if (sField == null) break; for (int iSeq2 = 0; ; iSeq2++) if (converter.getField().getComponent(iSeq2) == null) break; if (converter.getField().getComponent(iSeq2) == sField) bFound = true;
ScreenField sField = (ScreenField)this.getNextConverter().getField().getComponent(iSeq); if (sField == null) break; for (int iSeq2 = 0; ; iSeq2++) if (converter.getField().getComponent(iSeq2) == null) break; if (converter.getField().getComponent(iSeq2) == sField) bFound = true;
Object screenField2 = field.getComponent(i); if (!(screenField2 instanceof ScreenComponent)) break; // End of loop
Object comp = converter.getField().getComponent(i); if (comp == null) break;
/** * Free. */ public void free() { if (this.getFieldList(MealPlan.MEAL_PLAN_FILE) != null) { // Since the meal plan popup record is shared, I need to free it then disconnect it from the controls. this.getFieldList(MealPlan.MEAL_PLAN_FILE).free(); FieldList fieldList = this.getFieldList(); for (int iFieldSeq = 0; iFieldSeq < fieldList.getFieldCount(); iFieldSeq++) { FieldInfo field = fieldList.getField(iFieldSeq); Component component = null; int iIndex = 0; while ((component = (Component)field.getComponent(iIndex)) != null) { if (component instanceof JRemoteComboBox) if (((JRemoteComboBox)component).getRecord() == this.getFieldList(MealPlan.MEAL_PLAN_FILE)) ((JRemoteComboBox)component).setRecord(null); iIndex++; // Bump counter } } this.removeFieldList(this.getFieldList(MealPlan.MEAL_PLAN_FILE)); } super.free(); } /**