Class PNewServicePage

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

Service page for Purchase Offering wizard and account creation wizard.
Version:
%version: 14.1.1 % %date_modified: Mon Nov 05 09:06:21 2001 %
Author:
dachywan
See Also:
  • Field Details

  • Constructor Details

    • PNewServicePage

      public PNewServicePage()
      Creates a new PNewServicePage
  • Method Details

    • enteringPage

      public void enteringPage()
      interface Get called whenever this page is getting the focus.
      Specified by:
      enteringPage in interface PCCPage
    • setServiceModelHandle

      public void setServiceModelHandle()
      sets ModelHandle for the Service Page
    • getControllerClassName

      public String getControllerClassName()
      Returns the controller
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIACustomizablePanel
      Returns:
      A null String.
    • leavingPage

      public void leavingPage() throws PropertyVetoException
      interface Get called when losing the focus Shares out info of interest to other pages
      Specified by:
      leavingPage in interface PWizardPage
      Throws:
      PropertyVetoException
    • collectData

      public void collectData(PCollectDataEvent event)
      interface called when wizard try to collect data from each wizard page
      Specified by:
      collectData in interface PCollectDataListener
      Specified by:
      collectData in interface PWizardPage
      Overrides:
      collectData in class PIACustomizablePanel
      Parameters:
      event - The marshal data event
      See Also:
    • getLabel

      public String getLabel()
      interface 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 and purchase offering.
      Specified by:
      getWizardHelpID in interface PWizardPage
      Returns:
      The ID associated with the helpid.acwizard.servicespage tag or the helpid.powizard.servicespage 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:
    • selectionChanged

      public void selectionChanged(PIASelectionEvent event)
      Event listener for table selection changes. Notifies the extended service container that a service was selected in the table.
      Specified by:
      selectionChanged in interface PIASelectionListener
      Parameters:
      event -
    • setModelHandle

      public void setModelHandle(PModelHandle data) throws RemoteException
      Description copied from class: PIACustomizablePanel
      Establishes the PModelHandle for this component and all its descendants.
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIACustomizablePanel
      Parameters:
      data - the new PModelHandle from which to extract information
      Throws:
      RemoteException - thrown for errors
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Event handling for the controls on the panel
      Specified by:
      actionPerformed in interface ActionListener
    • addNotify

      public void addNotify()
      Initializes the page controls with default values
      Overrides:
      addNotify in class JComponent
    • removeNotify

      public void removeNotify()
      Overrides:
      removeNotify in class JComponent
    • propertyChange

      public void propertyChange(PropertyChangeEvent event)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • setEnabled

      public void setEnabled(boolean b)
      Overrides:
      setEnabled in class JComponent
    • setVisibleDetailPanel

      protected void setVisibleDetailPanel(PIAExtendedServicesBase panel)
      Used to make the specified panel visible - this method also updates the table selection. This might be useful if you're doing your own error handling or validation and you need to make a specific panel visible to the user.
      Parameters:
      panel - The panel you to make visible
    • passValidationToWizard

      protected void passValidationToWizard(WizardValidationManager mgr) throws PValidationException
      Called after doing local validation in this class, this method passes validation off to the wizard's validation manager. Subclasses may choose to override this method if they want to perform their own validation handling. This is a convenient way to get around the default 'validation failed' dialog displayed by the wizard framework, especially if you don't want the user to leave the page. You might want to display your own message indicating the error must be fixed, and throw a PValidationException.
      Parameters:
      mgr -
      Throws:
      PValidationException
    • getDisplayedDetailPanel

      protected PIAExtendedServicesBase getDisplayedDetailPanel()
      Retrieves the currently active service/device panel.
      Returns:
      The currently active service/device panel, or null if none is selected
    • getServiceDetailPanels

      protected PIAExtendedServicesBase[] getServiceDetailPanels()
      Retrieve the extended service panels created by this page
      Returns:
      An arrary of extended service panels corresponding to the services listed in the upper table.
    • getDeviceDetailPanels

      protected PIAExtendedServicesBase[] getDeviceDetailPanels()
      Retrieve the device panels created by this page
      Returns:
    • validateOnRowChange

      protected boolean validateOnRowChange()
      Determines if this page calls hasValidData() on the current service panel as the user switches between rows in the upper table.
      Returns:
      true by default; subclass to override