Class PAcctHierarchyPage

All Implemented Interfaces:
PAccountViewPage, PCCPage, DeferralChangeListener, HierarchyChangeListener, PaymentChangeListener, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ActionListener, ContainerListener, ItemListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, PopupMenuListener, TreeSelectionListener

The page that displays the account hierarchy tree if an account is part of a hierarchy, otherwise displays the "No hierarchy" page.
Version:
%version: 34 % %date_modified: Mon Nov 26 14:57:57 2001 %
Author:
grace
See Also:
  • Constructor Details

    • PAcctHierarchyPage

      public PAcctHierarchyPage()
  • Method Details

    • 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
    • getCustomizerProperties

      public void getCustomizerProperties()
      Method which retrives Customized Properties for this Class.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Action Handler for this Action Menu invalid input: '&' "Move" method
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - ActionEvent
    • paymentChange

      public void paymentChange(PaymentChangeEvent pe)
      Description copied from interface: PaymentChangeListener
      Called when an event is sent out that impacts the payment type or related billing info (billing frequency, day of month, cycle)
      Specified by:
      paymentChange in interface PaymentChangeListener
      Parameters:
      pe - a PaymentChangeEvent encapsulating the event information
    • deferralChange

      public void deferralChange(DeferralChangeEvent e)
      Called when some other page performs some kind of deferral
      Specified by:
      deferralChange in interface DeferralChangeListener
      Parameters:
      e - a DeferralChangeEvent encapsulating the event information
    • setModelHandle

      public void setModelHandle(PModelHandle data) throws RemoteException
      ModelHandle setting is done in this method for this Class
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIACustomizablePanel
      Parameters:
      data - PModelHandle
      Throws:
      RemoteException
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Specified by:
      itemStateChanged in interface ItemListener
    • enteringPage

      public void enteringPage()
      Entering Page method for Hierarchy Tab.
      Specified by:
      enteringPage in interface PCCPage
      Overrides:
      enteringPage in class PMaintenancePage
    • showHideStatusPage

      public void showHideStatusPage()
      Called to show/hide statusPage from a previous move
    • addNotify

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

      public void recycle()
      For recycling while closing to avoid any unexpected results.
      Specified by:
      recycle in interface PCCPage
      Overrides:
      recycle in class PMaintenancePage
    • removeNotify

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

      public void popupMenuWillBecomeVisible(PopupMenuEvent event)
      for the PopupMenuListener interface; enable/disable the menu items depending on the current selection in the tree
      Specified by:
      popupMenuWillBecomeVisible in interface PopupMenuListener
    • popupMenuWillBecomeInvisible

      public void popupMenuWillBecomeInvisible(PopupMenuEvent event)
      Specified by:
      popupMenuWillBecomeInvisible in interface PopupMenuListener
    • popupMenuCanceled

      public void popupMenuCanceled(PopupMenuEvent event)
      Specified by:
      popupMenuCanceled in interface PopupMenuListener
    • 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
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Specified by:
      mouseClicked in interface MouseListener
    • valueChanged

      public void valueChanged(TreeSelectionEvent e)
      for the TreeSelectionListener interface
      Specified by:
      valueChanged in interface TreeSelectionListener
    • closeActionPanel

      public boolean closeActionPanel()
      Closes the displayed action panel, which could be a "Move account" panel or "Rename Hierarchy Label" panel returns false if the close action is vetoed beacsue of unsaved changes
    • 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
    • hierarchyChange

      public void hierarchyChange(HierarchyChangeEvent e)
      listen to hierarchyChange event
      Specified by:
      hierarchyChange in interface HierarchyChangeListener
      Parameters:
      e - a HierarchyChangeEvent encapsulating the event information
    • 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 MyHierarchyPage extends PAcctHierarchyPage {
              public MyHierarchyPage() {
                      PAddOnAction[] actions = new PAddOnAction[1];
                      actions[0] = new MyActionA();
                      addAdditionalActions(actions);
              }
       }
      
       class MyActionA extends PAddOnAction {
              public MyServiceActionA() {
              }
      
              public String getMenuLabel() {
                      return "Action A";
              }
       }
       
      Parameters:
      actions - The array of PAddOnAction instances to append
    • save

      public void save() throws PSaveException
      Description copied from class: PMaintenancePage
      This is the hook for an encapsulating container to indicate this panel should save itself, if necessary. If the page wishes to signal a save failure it should throw a PSaveException. This is a no-op in this class.

      Subclasses should override this
      Specified by:
      save in interface PAccountViewPage
      Overrides:
      save in class PMaintenancePage
      Throws:
      PSaveException
    • hasUnsavedChanges

      public boolean hasUnsavedChanges()
      Description copied from class: PMaintenancePage
      Determines if the user has made changes to the data on this page and not committed them to Portal yet.
      This implementation defaults to calling isDirty() in the base class.
      Specified by:
      hasUnsavedChanges in interface PAccountViewPage
      Overrides:
      hasUnsavedChanges in class PMaintenancePage
      Returns:
      true if this page contains unsaved changes; false otherwise