/** * Add the behaviors needed to read the bundles in the addBundle method. */ public void addBundleBehaviors(Record recBundle, Record recBundleDetail, Record recItem) { if (recItem != null) recBundleDetail.getField(BundleDetail.BROCHURE_ID).addListener(new ReadSecondaryHandler(recItem)); recBundleDetail.addListener(new SubFileFilter(recBundle)); } /**
/** * Add behaviors to this session. */ public void addListeners() { super.addListeners(); Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE); this.getRecord(BookingLine.BOOKING_LINE_FILE).addListener(new SubFileFilter(recBooking, true)); }
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ItineraryScreenRecord.TOUR_ID)).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.getRecord(Booking.BOOKING_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); this.getRecord(ApTrx.AP_TRX_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ItineraryScreenRecord.TOUR_ID)).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.getRecord(Booking.BOOKING_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); this.getRecord(ApTrx.AP_TRX_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); this.getMainRecord().addListener(new UpdateTrxGroupHandler(null, null)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); // Link the screen field to the passed in record ((ReferenceField)this.getScreenRecord().getField(ProductScreenRecord.PRODUCT_ID)).syncReference(this.getHeaderRecord()); // Sub file stuff this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); } /**
/** * AddSubFileFilter Method. */ public void addSubFileFilter() { // Override this if it is not correct. SubFileFilter listener = null; this.getMainRecord().addListener(listener = new SubFileFilter(this.getHeaderRecord())); if (!this.getMainRecord().getKeyArea().getField(DBConstants.MAIN_KEY_FIELD).isNullable()) listener.setFilterIfNull(true); // If the header record's key can't be null, don't display any detail if new record }
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); // Link the screen field to the passed in record ((ReferenceField)this.getScreenRecord().getField(ProductScreenRecord.PRODUCT_ID)).syncReference(this.getHeaderRecord()); // Sub file stuff this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); // Link the screen field to the passed in record ((ReferenceField)this.getScreenRecord().getField(HotelScreenRecord.PRODUCT_ID)).syncReference(this.getHeaderRecord()); // Sub file stuff FileListener subFileBehavior = new SubFileFilter(this.getRecord(Hotel.HOTEL_FILE)); this.getRecord(HotelMealPricing.HOTEL_MEAL_PRICING_FILE).addListener(subFileBehavior); } /**
/** * AddSubFileFilter Method. */ public void addSubFileFilter() { this.getMainRecord().setKeyArea(AcctDetailDist.ACCT_DETAIL_DIST_GROUP_ID_KEY); this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord().getField(AcctDetailDist.ACCT_DETAIL_DIST_GROUP_ID), AcctDetailDist.ACCT_DETAIL_DIST_GROUP_ID, null, null, null, null)); this.getHeaderRecord().getField(AcctDetailDist.ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().setKeyArea(TrxStatus.TRX_DESC_ID_KEY); this.getMainRecord().addListener(new SubFileFilter(this.getScreenRecord().getField(TrxStatusScreenRecord.TRX_DESC_ID), TrxStatus.TRX_DESC_ID, null, null, null, null)); this.getMainRecord().addListener(new UpdateTrxStatusHandler(null, null)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); this.getMainRecord().getField(PaymentHistory.LINKED_TRX_ID).addListener(new ReadLinkedTrxHandler(this.getRecord(BankTrx.BANK_TRX_FILE))); this.setEnabled(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); this.getMainRecord().getField(PaymentHistory.LINKED_TRX_ID).addListener(new ReadLinkedTrxHandler(this.getRecord(BankTrx.BANK_TRX_FILE))); this.setEnabled(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); this.getHeaderRecord().getField(AcctDetail.ID).addListener(new FieldReSelectHandler(this)); this.setEditing(false); this.setAppending(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().setKeyArea(TrxStatus.TRX_DESC_ID_KEY); this.getMainRecord().addListener(new SubFileFilter(this.getScreenRecord().getField(TrxStatusScreenRecord.TRX_DESC_ID), TrxStatus.TRX_DESC_ID, null, null, null, null)); this.getScreenRecord().getField(TrxStatusScreenRecord.TRX_DESC_ID).addListener(new FieldReSelectHandler(this)); this.getMainRecord().addListener(new UpdateTrxStatusHandler(null, null)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(CashBatch.BANK_ACCT_ID).addListener(new InitFieldHandler(this.getRecord(ArControl.AR_CONTROL_FILE).getField(ArControl.AR_BANK_ACCT_ID))); this.getMainRecord().setKeyArea(CashBatch.USER_ID_KEY); this.getMainRecord().addListener(new SubFileFilter(this.getScreenRecord().getField(CashBatchScreenRecord.USER_ID), CashBatch.USER_ID, null, null, null, null)); this.getScreenRecord().getField(CashBatchScreenRecord.USER_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(CashBatch.BANK_ACCT_ID).addListener(new InitFieldHandler(this.getRecord(ArControl.AR_CONTROL_FILE).getField(ArControl.AR_BANK_ACCT_ID))); this.getScreenRecord().getField(CashBatchScreenRecord.USER_ID).moveFieldToThis(this.getMainRecord().getField(CashBatch.USER_ID)); this.getMainRecord().setKeyArea(CashBatch.USER_ID_KEY); this.getMainRecord().addListener(new SubFileFilter(this.getScreenRecord().getField(CashBatchScreenRecord.USER_ID), CashBatch.USER_ID, null, null, null, null)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); this.getRecord(CashBatchDist.CASH_BATCH_DIST_FILE).addListener(new SubCountHandler(this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE), CashBatchDist.AMOUNT, false, true)); this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE).addListener(new CalcBalanceHandler(this.getScreenRecord().getField(CashBatchScreenRecord.END_BALANCE), this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE), this.getRecord(CashBatchDetail.CASH_BATCH_DETAIL_FILE).getField(CashBatchDetail.AMOUNT), true)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); this.getRecord(McoBatchDist.MCO_BATCH_DIST_FILE).addListener(new SubCountHandler(this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE), Mco.NET, false, true)); this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE).addListener(new CalcBalanceHandler(this.getScreenRecord().getField(CashBatchScreenRecord.END_BALANCE), this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE), this.getRecord(Mco.MCO_FILE).getField(Mco.NET), true)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord())); this.getRecord(CreditCardBatchDist.CREDIT_CARD_BATCH_DIST_FILE).addListener(new SubCountHandler(this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE), CreditCard.NET, false, true)); this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE).addListener(new CalcBalanceHandler(this.getScreenRecord().getField(CashBatchScreenRecord.END_BALANCE), this.getScreenRecord().getField(CashBatchScreenRecord.CHANGE_BALANCE), this.getRecord(CreditCard.CREDIT_CARD_FILE).getField(CreditCard.NET), true)); } /**