String strCommand = button.getButtonCommand(); if (strCommand.equalsIgnoreCase(MenuConstants.BACK))
if (strCommand.equalsIgnoreCase(this.getButtonCommand())) if (sourceSField == this)
if (strCommand.equalsIgnoreCase(this.getButtonCommand())) if (sourceSField == this)
if (sField instanceof SCannedBox) String strCommand = ((SCannedBox)sField).getButtonCommand(); if ((Product.INVENTORY_DETAIL.equals(strCommand)) || (Product.PRICING_DETAIL.equals(strCommand)))
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); for (int i = 0; ;i++) { ScreenField sField = (ScreenField)this.getRecord(TransactionType.TRANSACTION_TYPE_FILE).getField(TransactionType.SOURCE_TRX_STATUS_ID).getComponent(i); if (sField == null) break; if (sField instanceof SCannedBox) { String strCommand = Utility.addURLParam(null, DBParams.COMMAND, ((SCannedBox)sField).getButtonCommand()); BaseField field = this.getRecord(TransactionType.TRANSACTION_TYPE_FILE).getField(TransactionType.TRX_DESC_ID); strCommand = Utility.addURLParam(strCommand, field.getFieldName(), field.toString()); field = this.getRecord(TransactionType.TRANSACTION_TYPE_FILE).getField(TransactionType.TRX_SYSTEM_ID); strCommand = Utility.addURLParam(strCommand, field.getFieldName(), field.toString()); ((SCannedBox)sField).setButtonCommand(strCommand); } } Record recTrxStatus = ((ReferenceField)this.getMainRecord().getField(TransactionType.SOURCE_TRX_STATUS_ID)).getReferenceRecord(this); this.getMainRecord().getField(TransactionType.SOURCE_TRX_STATUS_ID).addListener(new MoveOnChangeHandler(this.getMainRecord().getField(TransactionType.SOURCE_PREFERRED_SIGN), recTrxStatus.getField(TrxStatus.PREFERRED_SIGN))); this.getMainRecord().getField(TransactionType.SOURCE_TRX_STATUS_ID).addListener(new MoveOnChangeHandler(this.getMainRecord().getField(TransactionType.SOURCE_TRX_DESC_ID), recTrxStatus.getField(TrxStatus.TRX_DESC_ID))); } /**
if (sField instanceof SCannedBox) String strCommand = Utility.addURLParam(null, DBParams.COMMAND, ((SCannedBox)sField).getButtonCommand()); BaseField field = this.getRecord(TransactionType.TRANSACTION_TYPE_FILE).getField(TransactionType.TRX_DESC_ID); BaseField fldSrc = field;
if (sField instanceof SCannedBox) String strCommand = ((SCannedBox)sField).getButtonCommand(); if (Hotel.MEAL_DETAIL.equals(strCommand)) this.getRecord(Hotel.HOTEL_FILE).addListener(new EnableOnValidHandler(sField, true, false));