Example #1
0
  /**
   * Add the toolbars that belong with this screen.
   *
   * @return The new toolbar.
   */
  public ToolScreen addToolbars() {
    ToolScreen screen = super.addToolbars();

    this.getScreenRecord()
        .getField(CashBatchScreenRecord.BOOKING_ID)
        .setupDefaultView(
            screen.getNextLocation(
                ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.ANCHOR_DEFAULT),
            screen,
            ScreenConstants.DEFAULT_DISPLAY);
    this.getScreenRecord()
        .getField(CashBatchScreenRecord.AIRLINE_ID)
        .setupDefaultView(
            screen.getNextLocation(
                ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.DONT_SET_ANCHOR),
            screen,
            ScreenConstants.DEFAULT_DISPLAY);
    this.getScreenRecord()
        .getField(CashBatchScreenRecord.MCO_NO)
        .setupDefaultView(
            screen.getNextLocation(
                ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.DONT_SET_ANCHOR),
            screen,
            ScreenConstants.DEFAULT_DISPLAY);
    return screen;
  }
Example #2
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);
 }