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.
  • Constructor Details

    • WPaymentFormDirect

      public WPaymentFormDirect(int windowNo, GridTab mTab, boolean isDebit)
      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
      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
      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
      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()
      Specified by:
      getWindow in interface IPaymentForm
      instance of UI form