Class PCreditCardPanel

All Implemented Interfaces:
PIAPaymentTypePanelBean, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, Remote, EventListener, Accessible

public class PCreditCardPanel extends PIAPaymentTypePanel
A customizable panel used for displaying/updating credit card information (PIN_FLD_BILL_TYPE of 10003) for an account object and for entering in such information for a new account. Data such as the card number, expiration date, and the customer's credit card billing address are encapsulated here. This panel is used both at account creation and maintenance time.
See Also:
  • Constructor Details

    • PCreditCardPanel

      public PCreditCardPanel()
      Creates a new credit card panel.
  • Method Details

    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class PI18NPanel
    • shareInData

      public void shareInData(PModelHandle model)
      During account maintenance, retrieves shared data of interest and inserts it into the proper widgets.
      Overrides:
      shareInData in class PIAPaymentTypePanel
      Parameters:
      model - Model handle for an account.
    • shareInData

      public void shareInData()
      During account creation, retrieves shared data of interest and inserts it into the proper widgets.
      Overrides:
      shareInData in class PIAPaymentTypePanel
    • setModelHandle

      public void setModelHandle(PModelHandle pm) throws RemoteException
      Displays data for the passed-in account model handle.
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIACustomizablePanel
      Parameters:
      pm - Model handle for an account.
      Throws:
      RemoteException - thrown for errors
    • setDefault

      public void setDefault()
      Description copied from class: PIACustomizablePanel
      Establishes the current value of every Portal-aware descendant as the default value for that component.
      Specified by:
      setDefault in interface PComponentAttribute
      Overrides:
      setDefault in class PIACustomizablePanel
    • handleWizardValidationError

      public int handleWizardValidationError(com.portal.app.util.CustomerError error)
      Handles account creation validate-time errors for this panel.
      Overrides:
      handleWizardValidationError in class PIAPaymentTypePanel
      Parameters:
      error - The error.
      Returns:
      WizardValidationManager.VALIDATION_NOMATCH if no matching error field is found or WizardValidationManager.VALIDATION_IGNOREERROR if the user chooses to ignore a validation error or WizardValidationManager.VALIDATION_FIXERROR if the user chooses to fix the error or
    • handleWizardCommitError

      public boolean handleWizardCommitError(com.portal.app.util.CustomerError error)
      Handles account creation commit-time errors for this panel.
      Overrides:
      handleWizardCommitError in class PIAPaymentTypePanel
      Parameters:
      error - The error.
      Returns:
      true if this panel will handle the error; otherwise false.
    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Gets the class name for this class's controller
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIACustomizablePanel
      Returns:
      a String with the component's controller's classname
      Throws:
      RemoteException - thrown for errors
    • unregister

      public void unregister() throws RemoteException
      Description copied from class: PIACustomizablePanel
      Used to disconnect the controller from the component for all child widgets contained within this panel.
      Specified by:
      unregister in interface PClientComponent
      Overrides:
      unregister in class PIACustomizablePanel
      Throws:
      RemoteException
    • collectData

      public void collectData(PCollectDataEvent event)
      Description copied from class: PIAPaymentTypePanel
      Collects data from this panel for three different cases:
      1) During page validation when changing tabs during account creation (event.getReason() is PCollectDataEvent.FOR_VALIDATION),
      2) When saving a new account (event.getReason() is PCollectDataEvent.FOR_STORING),
      3) When updating an existing account (event.getReason() is PCollectDataEvent.FOR_DIRTY).
      Each of these three cases involves different data collection:
      1) For page validation, the additional data that needs to be collected are a FldPayinfo type-only POID (appropriate to the billing type) and the FldBillType.
      2) For saving a new account, data is required for all fields (whether the user has entered data or not), a FldPayinfo type-only POID (appropriate to the billing type) and the FldBillType.
      3) For updating an account, the additional data that needs to be collected are the FldPayinfoObj's POID and the FldBillType.
      Specified by:
      collectData in interface PCollectDataListener
      Overrides:
      collectData in class PIAPaymentTypePanel
      Parameters:
      event - The collect data event containing the reason code and model handle.
    • isClean

      public boolean isClean()
      Description copied from class: PIACustomizablePanel
      Determines if any descendant is marked DIRTY or ERROR.
      Overrides:
      isClean in class PIACustomizablePanel
      Returns:
      True if no descendant is marked DIRTY or ERROR, false otherwise.
    • resetToDefault

      public void resetToDefault()
      Description copied from class: PIACustomizablePanel
      A convenience method that resets every field on this panel.
      Specified by:
      resetToDefault in interface PComponentAttribute
      Overrides:
      resetToDefault in class PIACustomizablePanel
    • clear

      public void clear()
      Description copied from class: PIACustomizablePanel
      A convenience method that clears all Portal-aware descendants of this panel.
      Specified by:
      clear in interface PComponentAttribute
      Overrides:
      clear in class PIACustomizablePanel