Class PPaymentOptionDlg

All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class PPaymentOptionDlg extends JDialog implements ItemListener, ActionListener
This dialog is used for creating, deleting and modifying payment types
See Also:
  • Field Details

  • Constructor Details

    • PPaymentOptionDlg

      public PPaymentOptionDlg(JFrame frame, String title, boolean modal)
      constructor for the PPaymentOptionDialog class
      Parameters:
      frame - parent frame of the Dialog
      title - Name of the Dialog
      modal - which determines the modality of the Dialog
  • Method Details

    • isAccountCreation

      protected boolean isAccountCreation()
      Used by subclasses to determine if they were instantiated as part of account creation or maintenance.
      Returns:
      true if this panel is in the account creation wizard; false otherwise
    • removeNotify

      public void removeNotify()
      Overrides:
      removeNotify in class Window
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e -
    • collectData

      public void collectData(PCollectDataEvent event)
      Parameters:
      event -
    • getDeletedPayType

      public String getDeletedPayType()
      This method returns the Payment type which got deleted. This is called when the delete button is pressed.
    • btnOK_actionPerformed

      protected void btnOK_actionPerformed(ActionEvent e)
    • getNewPayInfoObject

      public Poid getNewPayInfoObject()
      Returns the poid of newly added pay info object
      Returns:
      Poid
    • getVisiblePaymentTypePanel

      protected Component getVisiblePaymentTypePanel()
      Returns the current visible payment type panel. For example if invoice payment method is currently selected then this method returns "PInvoicePOPanel"
      Returns:
      Component of type "PIAPaymentTypePanel"
    • setModelHandle

      public void setModelHandle(PModelHandle pm) throws RemoteException
      Determines the payment type from the account object represented in the model handle, and explicitely calls setModelHandle() on the panel for that payment type. This avoids exceptions in every panel that does not represent that payment type.
      Parameters:
      pm - the model handle
      Throws:
      RemoteException
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      event -
    • isNewPaymentMethodAdded

      public boolean isNewPaymentMethodAdded()
      returns true if new Payment method is added
      Returns:
      boolean
    • isPaymentMethodRemoved

      public boolean isPaymentMethodRemoved()
      returns true if a payment method is removed
      Returns:
      boolean
    • getNewPaymentMethod

      public String getNewPaymentMethod()
      returns the new Payment Method
      Returns:
      String
    • getChangedPayMethod

      public String getChangedPayMethod()
      Returns:
      String
    • getInvoiceName

      public String getInvoiceName(FList in)
      returns the Invoice Name from the passed in FList
      Parameters:
      in - FList from where the Invoice name has to be retrieved
      Returns:
      String Invoice Name
    • setPaymentPageBean

      protected void setPaymentPageBean(PPaymentPageBean paymentPageBean)
      sets the PPaymentpageBean for the dialog
      Parameters:
      paymentPageBean -
    • setPaymentPanelBean

      protected void setPaymentPanelBean(PPaymentPanelBean paymentPanelBean)
      sets the PPaymentPanelBean for the dialog
      Parameters:
      paymentPanelBean -
    • setPaymentOptionAsString

      protected void setPaymentOptionAsString(String payType)
      sets the Option in which the dialog mode is shown
      Parameters:
      payType -
    • showDialog

      protected void showDialog()
      initializes the dialog with data and makes it visible to the user
    • setCustomPanel

      protected void setCustomPanel(PIACustomizablePanel p)
      The custom panel is set to the main panel, from the subclass.
      Parameters:
      p - Panel to be displayed