Example #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);
 }
Example #2
0
 /** Initialize class fields. */
 public void init(
     Record record,
     ScreenLocation itsLocation,
     BasePanel parentScreen,
     Converter fieldConverter,
     int iDisplayFieldDesc,
     Map<String, Object> properties) {
   super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties);
 }
Example #3
0
 /** Add the navigation button(s) to the left of the grid row. */
 public void addNavButtons() {
   BaseApplication application = (BaseApplication) this.getTask().getApplication();
   new SCannedBox(
       this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR),
       this,
       null,
       ScreenConstants.DEFAULT_DISPLAY,
       null,
       null,
       AcctDetailDist.DIST_DISTRIBUTION,
       AcctDetailDist.DIST_DISTRIBUTION,
       application
           .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
           .getString(AcctDetailDist.DIST_DISTRIBUTION));
   super.addNavButtons();
 }
Example #4
0
 /** Add button(s) to the toolbar. */
 public void addToolbarButtons(ToolScreen toolScreen) {
   super.addToolbarButtons(toolScreen);
   BaseApplication application = (BaseApplication) this.getTask().getApplication();
   new SCannedBox(
       toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
       toolScreen,
       null,
       ScreenConstants.DEFAULT_DISPLAY,
       null,
       application
           .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
           .getString(AcctDetailDist.DIST_DISTRIBUTION),
       AcctDetailDist.DIST_DISTRIBUTION,
       AcctDetailDist.DIST_DISTRIBUTION,
       null);
 }