Class PServicePage

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

The top-level container for service data display. Contains a table listing the services owned by the given account, and a grouping of panels displaying the extended service data for each service. As services are selected in the table, the associated service detail data is displayed in a separate panel below the table.
Author:
kapono
See Also:
  • Field Details

    • mIsUserToBeNotified

      protected boolean mIsUserToBeNotified
    • mUserSelectedRow

      protected int mUserSelectedRow
    • lblThresholdExceeded

      protected JLabel lblThresholdExceeded
    • extraInfo

      protected PExtendedServicePanel extraInfo
    • btnServiceSearch

      protected JButton btnServiceSearch
    • dlgServiceSearch

      protected ServiceSearchDialog dlgServiceSearch
  • Constructor Details

    • PServicePage

      public PServicePage()
      Creates a panel that displays services purchased by the customer
  • Method Details

    • 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
    • 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. Before switching to the next page, the current page is saved (without notification to the CSR at all) by calling the page's save method (save is always called. its up to the page to determine if it really needs to be saved or not).
      Specified by:
      selectionChanged in interface PIASelectionListener
      Parameters:
      event -
    • holdingsChange

      public void holdingsChange(HoldingsChangeEvent e)
      Event handler for table HoldingsChangeEvent. Called when an event is sent out that indicates a purchase of a deal/service has been made.
      Specified by:
      holdingsChange in interface HoldingsChangeListener
      Parameters:
      e - a HoldingsChangeEvent encapsulating the event information
    • statusChange

      public void statusChange(StatusChangeEvent e)
      Event handler for StatusChagneEvent.
      Specified by:
      statusChange in interface StatusChangeListener
      Parameters:
      e - a StatusChangeEvent
    • save

      public void save() throws PSaveException
      Saves the contents of this page
      Specified by:
      save in interface PAccountViewPage
      Overrides:
      save in class PMaintenancePage
      Throws:
      PSaveException
    • 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
    • addNotify

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

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

      protected void addAdditionalActions(PAddOnAction[] actions)
      Called to add actions to the service 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 MyServicePage extends PServicePage {
              public MyServicePage() {
                      PAddOnAction[] actions = new PAddOnAction[1];
                      actions[0] = new MyServiceActionA();
                      addAdditionalActions(actions);
              }
       }
      
       class MyServiceActionA extends PAddOnAction {
              public MyServiceActionA() {
              }
      
              public String getMenuLabel() {
                      return "Action A";
              }
       }
       
      Parameters:
      actions - The array of PAddOnAction instances to append
    • getSaveables

      protected PSaveable[] getSaveables()
      Used to retrieve the panels that have been displayed below the table. The panels are retrieved as an array of PSaveable objects since they all must subclass PIAExtendedServicesBase which itself is PSaveable.
      Returns:
      array of extended service panels displayed below the table
    • mjbPurchaseProduct_actionPerformed

      protected void mjbPurchaseProduct_actionPerformed(ActionEvent e)
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • 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