Class PActiveAccountManager

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

public class PActiveAccountManager extends PIACustomizablePanel implements VetoableChangeListener
This component manages the display of account data. Each time a request is made to display an account, this component will create a tabbed pane for that account and display it. However, if an account has previously been displayed this component will redisplay that account as it was when it was last viewed. Note that tabbed panes will be maintained internally by this component until they are "closed" by the CSR at which time they will be recycled.
Version:
%version: 18 % %date_modified: Fri Feb 08 17:04:48 2002 %
Author:
kapono
See Also:
  • Constructor Details

    • PActiveAccountManager

      public PActiveAccountManager()
      Creates an instance of the account manager
  • Method Details

    • getContextForCurrentAccount

      public PAccountViewContext getContextForCurrentAccount()
      Retrieves the context for the currently visible PAccountView component.
      Returns:
      the context for the current account view, or null if there is no active account
    • setContextForCurrentAccount

      public void setContextForCurrentAccount(PAccountViewContext ctx)
      If this bean is in compare mode, this method can be used to establish the current account's context. Normally, this is managed internally but in compare mode the actual view components are extracted and placed in a separate container. However, the system still goes through this component to determine the active account. This method exposes the hook for the compare feature/container to maintain the current context.
      In non-compare mode, calling this method has no effect and is essentially a no-op.
      Parameters:
      The - new account view context
    • turnOnCompareMode

      public void turnOnCompareMode(boolean compareMode)
      Will eventually be used for the account comparison feature - TBD
      Parameters:
      scope -
    • extractView

      public PAccountView extractView(PModelHandle pm)
      Retrieves the AccountView component associated with the PModelHandle.
      Parameters:
      The - model handel whose view component you desire
      Returns:
      The view for the model handle
    • insertView

      public void insertView(PAccountView act)
      Inserts a previously extracted view. Used for comparing accounts.
      Parameters:
      The - view to insert
    • openView

      public void openView(PModelHandle pm)
      Causes a new account view to be opened for the given PModelHandle if one does not exist. If it already exists that view is made visible.
      Parameters:
      pm - The PModelHandle representing an Portal account. A view for this account will be made visible.
    • closeView

      public void closeView(PModelHandle pm)
      Causes the account view associated with the PModelHandle to be closed
      Parameters:
      The - PModelHandle representing the account view to close
    • vetoableChange

      public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException
      This method gets called before a tab switch occurs
      Specified by:
      vetoableChange in interface VetoableChangeListener
      Parameters:
      evt - a PropertyChangeEvent object describing the event source and the property that has changed.
      Throws:
      PropertyVetoException - if the recipient wishes the property change to be rolled back.