Class PTechDetails

All Implemented Interfaces:
PAccountViewPage, PCCPage, DeferralChangeListener, HoldingsChangeListener, ServiceChangeListener, StatusChangeListener, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ActionListener, ContainerListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener
Direct Known Subclasses:
PSubscriptionServicePage

The top-level container for service and device data display. Contains a table listing the services and devices owned by the given account, and a grouping of panels displaying the extended service/device data for each object. As services/devices are selected in the table, the associated detail data is displayed in a separate panel below the table.
Version:
%version: 22 % %date_modified: Tue May 28 11:56:49 2002 %
Author:
kapono
See Also:
  • Field Details

  • Constructor Details

    • PTechDetails

      public PTechDetails()
      Creates a new technical details panel, displaying a tree-table of service and device relationships.
  • Method Details

    • addNotify

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

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

      public void setModelHandle(PModelHandle data) throws RemoteException
      Establishes the new data to display.
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIACustomizablePanel
      Parameters:
      data - the new PModelHandle from which to extract information
      accountModelHandle - account model handle.
      Throws:
      RemoteException - thrown for errors
    • setDefaultSelection

      public void setDefaultSelection()
      Selects a default row (the 1st row) if there is at least one row.
    • refresh

      public void refresh()
      Description copied from class: PMaintenancePage
      Called when the page should be immediately refreshed - typically as a result of the Reset action being invoked by the user.
      Specified by:
      refresh in interface PAccountViewPage
      Overrides:
      refresh in class PMaintenancePage
    • 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
    • deferralChange

      public void deferralChange(DeferralChangeEvent e)
      Event handler for DeferralChangeEvent.
      Specified by:
      deferralChange in interface DeferralChangeListener
      Parameters:
      e - a DeferralChangeEvent
    • statusChange

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

      public void serviceChange(ServiceChangeEvent e)
      Called when data for a service changes
      Specified by:
      serviceChange in interface ServiceChangeListener
      Parameters:
      e -
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Called when an item is selected from the Actions menu.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - the action event.
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Called when the row selection changes in the tree-table.
      Specified by:
      valueChanged in interface ListSelectionListener
      Parameters:
      e - the list selection event.
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      In service view, if Status column is selected or Deferred Actions column is selected and there is at lease one deferred action, then control will be redirected to the corresponding page.
      Specified by:
      mouseClicked in interface MouseListener
      Parameters:
      e - the mouse event.
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener
    • 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
    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Retrieves the server-side component for this page
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIACustomizablePanel
      Returns:
      The controller for this page
      Throws:
      RemoteException - thrown for errors
    • recycle

      public void recycle()
      Cleans up the table and prepares it for reuse.
      Specified by:
      recycle in interface PCCPage
      Overrides:
      recycle in class PMaintenancePage
    • 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
    • getDataAt

      public PModelHandle getDataAt(int row)
      Retrieves the data for the given row
      Parameters:
      row - The row to retrieve data for
      Returns:
      The currently selected service or device model handle
    • addAdditionalActions

      protected void addAdditionalActions(PAddOnAction[] actions)
      Called to append actions to the end of the service page's Action menu for bill display.
      In most cases you can retrieve the component the action class is monitoring (getServiceDisplay()) and pass it in to the PAddOnAction constructor. This particular page however defers the creation of the JTreeTable until its really needed so it will be null initially. For this page only, the PAddOnAction instances should be created using the null arg constructor. This page will be responsible for passing in the JTreeTable instance once it is created.
       public class MyTechPage extends PTechDetails {
              public MyTechPage() {
              PAddOnAction[] actions = new PAddOnAction[2];
              actions[0] = new MyTechActionA();
              actions[1] = new MyTechActionB();
              addAdditionalActions(actions);
              }
       }
       class MyTechActionA extends PAddOnAction {
              public MyTechActionA(PTechDetails tt) {
                      super(tt);
              }
      
              public String getMenuLabel() {
                      return "Tech Action A";
              }
       }
       
      Parameters:
      actions - The array of PAddOnAction instances to append
    • getServiceDisplay

      protected JTreeTable getServiceDisplay()
      Returns:
      The component used to display services and devices
    • purchaseService

      protected void purchaseService(ActionEvent e)
    • showServiceHistory

      protected void showServiceHistory(ActionEvent e)
    • setPageView

      public void setPageView(String page_view)
      specifically called from SubscriptionService Page to make some of the menuitems invisible
      Parameters:
      page_view - type of page (e.g. SUBSCRIPTION_PAGE_VIEW)
    • jbInit

      protected void jbInit() throws Exception
      Throws:
      Exception
    • loadServiceDeviceData

      public void loadServiceDeviceData()
      This method process the Input Flist and putting in to HashMap service POID is a key and Vector is value. Device values are added in to the Vector
    • loadServiceDeviceData

      public void loadServiceDeviceData(PModelHandle pmhSelectedServices)
      This method loads the devices data in case of threshold exceeded.
      Parameters:
      pmhSelectedServices -
    • getDevandMembersvcsFromServ

      public PModelHandle[] getDevandMembersvcsFromServ(PModelHandle pm)
      Getting Device details invalid input: '&' Member Services of a Subscription Service.
      Parameters:
      pm - PModelHandle of the Service Poid
      Returns:
      PModelHandle[]
    • getDevFromServ

      public PModelHandle[] getDevFromServ(PModelHandle pm)
      Getting Device from Service
      Parameters:
      pm - PModelHandle
      Returns:
      PModelHandle[]
    • getServFromDev

      public PModelHandle[] getServFromDev(PModelHandle pm)
      Getting Service from Device
      Parameters:
      pm - PModelHandle
      Returns:
      PModelHandle[]