Class WPaymentFormDirect

All Implemented Interfaces:
IPaymentForm, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Direct Known Subclasses:
WPaymentFormDirectDebit, WPaymentFormDirectDeposit

public abstract class WPaymentFormDirect extends PaymentFormDirect implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Abstract base payment form class for payment rule direct debit and direct deposit.
Author:
Elaine
  • Constructor Details

    • WPaymentFormDirect

      public WPaymentFormDirect(int windowNo, GridTab mTab, boolean isDebit)
      Parameters:
      windowNo -
      mTab -
      isDebit - true for direct debit, false for direct deposit
  • Method Details

    • init

      protected void init()
      Layout window
    • loadData

      public void loadData()
      Description copied from interface: IPaymentForm
      Load payment and related transaction records. Usually call from dynInit()
      Specified by:
      loadData in interface IPaymentForm
      Overrides:
      loadData in class PaymentFormDirect
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event e)
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
    • checkMandatory

      public boolean checkMandatory()
      Description copied from interface: IPaymentForm
      Mandatory field validations
      Specified by:
      checkMandatory in interface IPaymentForm
      Returns:
      true if all mandatory field have been populated
    • saveChangesInTrx

      public boolean saveChangesInTrx(String trxName)
      Description copied from interface: IPaymentForm
      Save changes to DB
      Specified by:
      saveChangesInTrx in interface IPaymentForm
      Returns:
      true if save successfully
    • showWindow

      public void showWindow()
      Description copied from interface: IPaymentForm
      Show form
      Specified by:
      showWindow in interface IPaymentForm
    • closeWindow

      public void closeWindow()
      Description copied from interface: IPaymentForm
      Close form
      Specified by:
      closeWindow in interface IPaymentForm
    • getWindow

      public Object getWindow()
      Description copied from interface: IPaymentForm
      Get instance of UI form
      Specified by:
      getWindow in interface IPaymentForm
      Returns:
      instance of UI form