Class PIACAPaymentPanel

All Implemented Interfaces:
PCCPage, PWizardPage, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible
Direct Known Subclasses:
PCAConsumerPaymentPanel

public class PIACAPaymentPanel extends PIACustomizablePanel implements PropertyChangeListener, PWizardPage
Base class for an account creation wizard payment panel.
See Also:
  • Constructor Details

    • PIACAPaymentPanel

      public PIACAPaymentPanel(String infoTag)
      Creates a new PIACAPaymentPanel based on the passed in panel type name. This panel contains a panel for billing-related data and below it a PIAPanelGroup which hosts panels for each available method of payment. The name of the billing panel class and the names of the method of payment panel classes are retrieved from the properties file. The billing panel class is resourced under the tag <infoTag>.billpanel. The list of method of payment panels is resourced under the tag <infoTag>.options. (See the properties file.)
      Parameters:
      infoTag - type name of payment panel
  • Method Details

    • collectData

      public void collectData(PCollectDataEvent event)
      Collects data from the bill panel and the current method of payment panel
      Specified by:
      collectData in interface PCollectDataListener
      Specified by:
      collectData in interface PWizardPage
      Overrides:
      collectData in class PIACustomizablePanel
      Parameters:
      event - The collect data event containing the reason code and model handle.
      See Also:
    • validateWizardPage

      public void validateWizardPage() throws PValidationException
      Validates this page.
      Specified by:
      validateWizardPage in interface PWizardPage
      Throws:
      PValidationException
      See Also:
    • handleWizardCommitError

      public boolean handleWizardCommitError(com.portal.app.util.CustomerError error)
      Handles commit-time errors.
      Specified by:
      handleWizardCommitError in interface PWizardPage
      Parameters:
      error - The error.
      Returns:
      true if the page will handle the error; otherwise false.
      See Also:
    • propertyChange

      public void propertyChange(PropertyChangeEvent event)
      Looks for notification of a changed method of payment, switches to the corresponding method of payment panel, then passes along any shared data.
      Specified by:
      propertyChange in interface PropertyChangeListener
    • enteringPage

      public void enteringPage()
      Description copied from interface: PCCPage
      Called after a page is made visible via a drilldown
      Specified by:
      enteringPage in interface PCCPage
    • isValidContext

      public boolean isValidContext(PAccountViewContext ctx)
    • leavingPage

      public void leavingPage() throws PropertyVetoException
      Description copied from interface: PWizardPage
      Called before the wizard actually leaves the current page. If for some reason the implementing page does not want the wizard to leave the page, it should throw a PropertyVetoException.
      Specified by:
      leavingPage in interface PWizardPage
      Throws:
      PropertyVetoException
    • getLabel

      public String getLabel()
      Description copied from interface: PCCPage
      Retrieves the localizable text string used to identify this page. This may be used in the navigator of a wizard or in the breadcrumb trail.
      Specified by:
      getLabel in interface PCCPage
      Returns:
      The tag that will be displayed in the breadcrumb trail to reference this component.
    • recycle

      public void recycle()
      Description copied from interface: PCCPage
      This method should perform any needed cleanup before the page is reused to display data for a different account.
      Specified by:
      recycle in interface PCCPage
    • toggleCurrency

      public void toggleCurrency(int from, int to)
    • getDisplayedCurrency

      public int getDisplayedCurrency()
    • getWizardHelpID

      public String getWizardHelpID()
      Description copied from interface: PWizardPage
      Returns the Help ID for this wizard page.
      Specified by:
      getWizardHelpID in interface PWizardPage