Exemplo n.º 1
0
 /** Add all the screen listeners. */
 public void addListeners() {
   super.addListeners();
   this.getMainRecord().setKeyArea(Mco.MCO_NO_KEY);
   // Add the filters behaviors
   this.getMainRecord()
       .addListener(
           new ExtractRangeFilter(
               Mco.BOOKING_ID, this.getScreenRecord().getField(CashBatchScreenRecord.BOOKING_ID)));
   this.getScreenRecord()
       .getField(CashBatchScreenRecord.BOOKING_ID)
       .addListener(new FieldReSelectHandler(this));
   this.getMainRecord()
       .addListener(
           new ExtractRangeFilter(
               Mco.AIRLINE_ID, this.getScreenRecord().getField(CashBatchScreenRecord.AIRLINE_ID)));
   this.getScreenRecord()
       .getField(CashBatchScreenRecord.AIRLINE_ID)
       .addListener(new FieldReSelectHandler(this));
   this.getMainRecord()
       .addListener(
           new ExtractRangeFilter(
               Mco.MCO_NO, this.getScreenRecord().getField(CashBatchScreenRecord.MCO_NO)));
   this.getScreenRecord()
       .getField(CashBatchScreenRecord.MCO_NO)
       .addListener(new FieldReSelectHandler(this));
   this.setEnabled(false);
 }
Exemplo n.º 2
0
 /** addListeners Method. */
 public void addListeners() {
   super.addListeners();
   this.getMainRecord().setKeyArea(Animal.NAME_KEY);
   //      this.setEditing(true);
 }