Class PGeneralPage

All Implemented Interfaces:
PCCPage, PWizardPage, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PGeneralPage extends PIACustomizablePanel implements PWizardPage
An account creation page that hosts the General, Hierarchy Setup, and Sponsorship panels. Because these panels are used to collect key pieces of data that can affect data collection later on during account creation, it is expected that the user will interact with this page early in the account creation process.

This page supports the addition of custom panels within the collapsable General section and at the end below the Sponsorship section. Something along the lines of:
 public class MyGeneralPage extends PGeneralPage {
                public MyGeneralPage() {
                        addPanelToEnd(new MyCustomPanel());
                        addPanelToEnd(new MyOtherCustomPanel());
                        setCustomGeneralPanel(new YetAnotherCustomPanel());
                }
 }
 
You will also need to add the following to Customized.properties from the Customer Care SDK:
com.portal.app.cc.PContactPage.subclass=MyGeneralPage
See Also:
  • Constructor Details

    • PGeneralPage

      public PGeneralPage()
  • Method Details

    • setCustomGeneralPanel

      public void setCustomGeneralPanel(PIACustomizablePanel p)
      Adds information to the bottom of the collapsable General section of this page. Should be called only once - subsequent invocations will result in the previous panel being replaced with the new panel.
      Passing in null will result in any previously established panel being removed, but nothing will be added to take its place.
      Parameters:
      p - The panel to add
    • addPanelToEnd

      public void addPanelToEnd(PIACustomizablePanel p)
      Adds the specified panel to the end of this page. Can be called subsequent times to add multiple panels. Null arguments will be ignored by this method.
      Parameters:
      p - The panel to add
    • 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
    • leavingPage

      public void leavingPage() throws PropertyVetoException
      Delegates to contained panels.
      Specified by:
      leavingPage in interface PWizardPage
      Throws:
      PropertyVetoException
    • getLabel

      public String getLabel()
      Returns the label for this page.
      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()
      Reinitializes the page.
      Specified by:
      recycle in interface PCCPage
    • getWizardHelpID

      public String getWizardHelpID()
      Returns the help ID for this page during account creation.
      Specified by:
      getWizardHelpID in interface PWizardPage
      Returns:
      The ID associated with the helpid.acwizard.generalpage tag in the properties file.
    • 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: