Class PCCLink

All Implemented Interfaces:
ActionListener, MouseListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, SwingConstants

public class PCCLink extends Link implements ActionListener
Customer Center specific Link widget implementation. This component automates the drill down behavior that occurs when selecting a traditional link component. The required information includes:
pageClass - The PAccountViewPage panel class that will be displayed when the link is selected.
trailtag - The text to display in the breadcrumb trail. This should be read from a ResourceBundle before being passed in.
tabid - The id that identifies the tab to switch to before drilling down. This property must be specified, but may be null if the drill down should occur directly from the current page.

These various property specifications automate the call to PClientContext.getContext().getAccountViewContext().switchToPage( trailtag, Class.forName(pageClass), tabid);
This link subclass may not be feasible for all situations. There may be situations where you need to pass specific information to the drilldown page prior to its display. In those situations, use the traditional com.portal.pfc.ui.Link widget.
Version:
%version: 6 % %date_modified: Tue Oct 16 20:07:18 2001 %
Author:
kapono
See Also:
  • Field Details

    • mText

      protected String mText
    • mID

      protected String mID
    • mClass

      protected Class mClass
  • Constructor Details

    • PCCLink

      public PCCLink()
      Creates a new link component
    • PCCLink

      public PCCLink(String text, String pageClass, String trailtag, String parentID)
      Creates a new link component with the specified drill down behavior
      Parameters:
      text - The text to display in this link
      pageClass - The fully qualified package name for the page that will be drilled down to
      trailtag - The text to display in the breadcrumb trail upon drill down
      parentID - If non-null, the tab ID (typically specified by the tab-definition in a property file) to switch to before drilling down.
  • Method Details

    • setTrailTag

      public void setTrailTag(String tag)
      Establishes the tag to display in the breadcrumb trail when drilling down.
      Parameters:
      tag - The breadcrumb text
    • getTrailTag

      public String getTrailTag()
      Retrieves the breadcrumb trail text
      Returns:
      The text that will be displayed in the breadcrumb trail when drilling down
    • setPageClass

      public void setPageClass(String tag)
      Specifies the fully qualified name of the PAccountViewPage implementation that should be drilled down to (i.e. "com.portal.app.cc.MyGenericDrillDown". This name will be turned into a Class instance and passed along to the PPageTemplate api.
      Parameters:
      the - fully qualified name of the page to be drilled down to
    • getPageClass

      public String getPageClass()
      Retrieves the name of the page you are drilling down to.
      Returns:
      the fully qualified name of the page to be drilled down to
    • setTabID

      public void setTabID(String id)
      Specifies the tab id that should be switched to prior to performing the drilldown. If null, no tab switch occurs.
      Parameters:
      id - The tab id
    • getTabID

      public String getTabID()
      Returns the tab id. This id identifies the tab that should be switched to prior to performing the drilldown.
      Returns:
      The tab id
    • setModelHandle

      public void setModelHandle(PModelHandle pm) throws RemoteException
      Parameters:
      pm -
      Throws:
      RemoteException
    • getModelHandle

      public PModelHandle getModelHandle() throws RemoteException
      Returns:
      pm
      Throws:
      RemoteException
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Internal listener that performs the drill down on link selection
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class Link
      Parameters:
      e - The action event