Interface PAppContext

All Known Subinterfaces:
CustomerCenterContext, PAccountCreationWizardContext, PCustomerCenterContext, PPurchaseOfferingWizardContext, PValidatingWizardContext
All Known Implementing Classes:
PAccountCreationWizard, PCustomerCenterInternals, PPurchaseOfferingWizard, PValidatingWizard

public interface PAppContext
PAppContext is an interface that provides an entry point for specific panels to request global application services. All application and applet main panels must implement this interface.
Version:
2
Author:
Larry Lynch-Freshner
  • Field Details

    • NORMALIZE

      static final int NORMALIZE
      Constant used to return a component to its normal size.
      See Also:
    • MAXIMIZE

      static final int MAXIMIZE
      Constant used to increase a component to its maximum size.
      See Also:
    • MINIMIZE

      static final int MINIMIZE
      Constant used to decrease a component to its minimum size.
      See Also:
    • MORESPACE

      static final int MORESPACE
      Constant used to increase a component's size
      See Also:
    • LESSSPACE

      static final int LESSSPACE
      Constant used to decrease a component's size
      See Also:
  • Method Details

    • setOverlay

      void setOverlay(Component comp)
      Overlays a component on top of the current (primary) application panel.
      Parameters:
      comp - the component to add to the application
    • changeSize

      void changeSize(Component comp, int spaceNeeded)
      Changes the size of a component to the size specified in the parameter.
      Parameters:
      comp - the component to change
      spaceNeeded - a constant that describes how to change the component's size
    • setStatus

      void setStatus(String status)
      Sets the string, if any, to display in the status bar.
      Parameters:
      status - the new status text
    • addActions

      void addActions(Vector tools)
      Adds a vector of PBASAction from the application menu, toolbar, or both.
      Parameters:
      tools - a Vector of PBASAction objects
    • removeActions

      void removeActions(Vector tools)
      Removes a vector of PBASAction from the application menu, toolbar, or both.
      Parameters:
      tools - a Vector of PBASAction objects
    • getAppName

      String getAppName()
      Gets the current application name.
      Returns:
      A String that contains the application's name.
    • focusOn

      void focusOn(Component comp)
      Ensures that a panel is shown, then gives it focus.
      Parameters:
      comp - the component that gets focus
    • addContextChangedListener

      void addContextChangedListener(PContextChangedListener l)
      Parameters:
      l - a PContextChangedListener
    • removeContextChangedListener

      void removeContextChangedListener(PContextChangedListener l)
      Parameters:
      l - a PContextChangedListener
    • fireContextChangedEvent

      boolean fireContextChangedEvent(PContextChangedEvent event)
      Parameters:
      event - a PContextChangedEvent event
      Returns:
      False for an okToExit event, true otherwise.