Class PPaymentPage

All Implemented Interfaces:
PAccountViewPage, PCCPage, HierarchyChangeListener, PaymentChangeListener, ServiceChangeListener, PSpreadSheetListener, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ActionListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener

This page displays the payments that have been applied to an account. It also has a section that diplays the payment type, billing cycle and next billing cycle. There is another section for tax setup.
Author:
pashok
See Also:
  • Field Details

    • actionItems

      protected JMenuItem[] actionItems
    • CMB_PAYMENT_TYPE

      public static final int CMB_PAYMENT_TYPE
      See Also:
    • CMB_HIERARCHY_TYPE

      public static final int CMB_HIERARCHY_TYPE
      See Also:
  • Constructor Details

    • PPaymentPage

      public PPaymentPage()
      Creates a new payment screen
  • Method Details

    • addNotify

      public void addNotify()
      Overridden to register for payment change events
      Overrides:
      addNotify in class JComponent
    • refresh

      public void refresh()
      put your documentation comment here
      Specified by:
      refresh in interface PAccountViewPage
      Overrides:
      refresh in class PMaintenancePage
    • removeNotify

      public void removeNotify()
      Overridden to unregister for payment change events
      Overrides:
      removeNotify in class JComponent
    • paymentChange

      public void paymentChange(PaymentChangeEvent pe)
      Called when the payment info changes
      Specified by:
      paymentChange in interface PaymentChangeListener
      Parameters:
      pe - the payment change event
    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Description copied from class: PIACustomizablePanel
      Retrieves the class name of this component's controller, in this case, null.
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIACustomizablePanel
      Returns:
      the controller for this class
      Throws:
      RemoteException
    • dumpFlist

      public void dumpFlist(PModelHandle pm) throws RemoteException
      Throws:
      RemoteException
    • setModelHandle

      public void setModelHandle(PModelHandle pm) throws RemoteException
      Updates the page with new data
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIACustomizablePanel
      Parameters:
      pm - the model handle
      Throws:
      RemoteException - thrown for errors
    • initializeActionsMenu

      public void initializeActionsMenu()
    • getPayMethods

      public Vector getPayMethods()
      gets the payment methods for the current account
      Returns:
      Vector
    • getCardType

      public static String getCardType(String cardNumber, int cardTyp)
      To identify the type of card
      Parameters:
      cardNumber -
      Returns:
    • setCreditCardPerm

      public static String setCreditCardPerm(String ccNumber)
      This method is used to mask the credit card number.
    • setDebitCardPerm

      public static String setDebitCardPerm(String ddNumber)
      This method is used to mask the debit card account number.
    • save

      public void save() throws PSaveException
      Description copied from class: PMaintenancePage
      This is the hook for an encapsulating container to indicate this panel should save itself, if necessary. If the page wishes to signal a save failure it should throw a PSaveException. This is a no-op in this class.

      Subclasses should override this
      Specified by:
      save in interface PAccountViewPage
      Overrides:
      save in class PMaintenancePage
      Throws:
      PSaveException
    • resetUnsavedChanges

      public void resetUnsavedChanges()
      This method is responsible for undo'ing the changes made to the page and resetting back to the original.
      Specified by:
      resetUnsavedChanges in interface PAccountViewPage
      Overrides:
      resetUnsavedChanges in class PMaintenancePage
    • hasUnsavedChanges

      public boolean hasUnsavedChanges()
      Description copied from class: PMaintenancePage
      Determines if the user has made changes to the data on this page and not committed them to Portal yet.
      This implementation defaults to calling isDirty() in the base class.
      Specified by:
      hasUnsavedChanges in interface PAccountViewPage
      Overrides:
      hasUnsavedChanges in class PMaintenancePage
      Returns:
      true if this page contains unsaved changes; false otherwise
    • serviceChange

      public void serviceChange(ServiceChangeEvent e)
      Event handler for ServiceChangeEvent.
      Specified by:
      serviceChange in interface ServiceChangeListener
      Parameters:
      e - a StatusChangeEvent
    • selectionChanged

      public void selectionChanged(PSpreadSheetEvent pe)
      put your documentation comment here
      Specified by:
      selectionChanged in interface PSpreadSheetListener
      Parameters:
      pe -
    • addAdditionalActions

      protected void addAdditionalActions(PAddOnAction[] actions)
      Called to add actions to the payment display component. This results in a new Action dropdown (if this is the first time the method is called). The existing export action is appended to the menu followed by the user specified PAddOnAction instances. Your subclass should look like the following:
       public class MyPaymentPage extends PPaymentPage {
              public MyPaymentPage() {
                      PAddOnAction[] actions = new PAddOnAction[1];
                      actions[0] = new MyPaymentAction_A();
                      addAdditionalActions(actions);
              }
       }
      
       class MyPaymentAction_A extends PAddOnAction {
              public MyPaymentAction_A() {
              }
      
              public String getMenuLabel() {
                      return "Payment Action A";
              }
       }
       
      Parameters:
      actions - The array of PAddOnAction instances to append
    • constructFormatString

      public String constructFormatString(String sFormatString, int[] iDiallowedList)
      Constructs a format string that excludes exemption types that are present in the exemption table.
    • primaryToSecondary

      public void primaryToSecondary(int from, int to)
      Changes the display from primary to the secondary currency.
      Specified by:
      primaryToSecondary in interface PAccountViewPage
      Overrides:
      primaryToSecondary in class PMaintenancePage
      Parameters:
      from - The currency currently displayed
      to - The currency to convert to and display
    • revertToPrimary

      public void revertToPrimary(int primary)
      Changes the display to the primary currency.
      Specified by:
      revertToPrimary in interface PAccountViewPage
      Specified by:
      revertToPrimary in interface PComponentAttribute
      Overrides:
      revertToPrimary in class PMaintenancePage
      Parameters:
      primary - The primary currency
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      put your documentation comment here
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e -
    • hierarchyChange

      public void hierarchyChange(HierarchyChangeEvent e)
      listen to nge event
      Specified by:
      hierarchyChange in interface HierarchyChangeListener
      Parameters:
      e - a HierarchyChangeEvent encapsulating the event information
    • refreshPayments

      public void refreshPayments()
      Refreshes the payment combobox when a new payment method is added
    • recycle

      public void recycle()
      Description copied from class: PMaintenancePage
      Used to make this page available for reuse.

      Subclasses should override this, but also call super.recycle()
      Specified by:
      recycle in interface PCCPage
      Overrides:
      recycle in class PMaintenancePage
    • disableBillingCycleAndTaxSetupLink

      protected void disableBillingCycleAndTaxSetupLink()
      This method can be used in the extended customized page if the Bill and Tax link needs to be disabled.
    • enableBillingCycleAndTaxSetupLink

      protected void enableBillingCycleAndTaxSetupLink()
      This method can be used in the extended customized page if the Bill and Tax link needs to be enabled.
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Specified by:
      valueChanged in interface ListSelectionListener
    • enteringPage

      public void enteringPage()
      Description copied from class: PMaintenancePage
      This method will be called right after a page is made visible via a drilldown. The default implementation inspects the currency being used to display data for the client at large and compares it to the currency used by the panel. If they differ primaryToSecondary() is called.
      This implementation also looks at the internal refresh flag to determine if a subclass has indicated the page is out of date. If it is, this method invokes the setModelHandle() method with the current PModelHandle.

      Subclasses that override this method should call super.enteringPage()
      Specified by:
      enteringPage in interface PCCPage
      Overrides:
      enteringPage in class PMaintenancePage