Beispiel #1
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();
 }
Beispiel #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);
 }
Beispiel #3
0
  /** Add button(s) to the toolbar. */
  public void addToolbarButtons(ToolScreen 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(ApTrx.PRODUCT_DETAIL),
        MenuConstants.FORMDETAIL,
        MenuConstants.FORMDETAIL,
        null);

    String strPaymentHistory = PaymentHistory.PAYMENT_HISTORY;
    strPaymentHistory =
        application
            .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
            .getString(strPaymentHistory);
    new SCannedBox(
        toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        strPaymentHistory,
        PaymentHistory.PAYMENT_HISTORY_ICON,
        PaymentHistory.PAYMENT_HISTORY_FILE,
        null);

    strPaymentHistory = PaymentHistory.PAYMENT_DISTRIBUTION;
    strPaymentHistory =
        application
            .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
            .getString(strPaymentHistory);
    new SCannedBox(
        toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        strPaymentHistory,
        PaymentHistory.PAYMENT_DISTRIBUTION_ICON,
        PaymentHistory.PAYMENT_DISTRIBUTION,
        null);

    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);

    String strVendor = Vendor.VENDOR_FILE + ' ' + MenuConstants.DISPLAY;
    strVendor =
        application.getResources(ResourceConstants.ACCTPAY_RESOURCE, true).getString(strVendor);
    String strTour = Tour.TOUR_FILE + ' ' + MenuConstants.DISPLAY;
    strTour = application.getResources(ResourceConstants.ACCTPAY_RESOURCE, true).getString(strTour);
    new SButtonBox(
        toolScreen.getNextLocation(ScreenConstants.FLUSH_LEFT, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        strVendor,
        MenuConstants.DISPLAY,
        Vendor.VENDOR_FILE,
        null);
    new SButtonBox(
        toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        strTour,
        MenuConstants.DISPLAY,
        Tour.TOUR_FILE,
        null);
  }