Class PAddOnAction

java.lang.Object
javax.swing.AbstractAction
com.portal.app.cc.PAddOnAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public abstract class PAddOnAction extends AbstractAction
Serves as a base class for customers to extend from when adding Actions to our Customer Center pages. This class attempts to encapsulate enough information to allow a standalone Action to be plugged into an existing page without exposing every facet of that existing page.
Version:
%version: 3 % %date_modified: Tue May 14 09:11:09 2002 %
See Also:
  • Constructor Details

    • PAddOnAction

      public PAddOnAction()
      Creates a PAddOnAction which enables custom actions to be performed within an out-of-box Customer Center page. Any page that accepts one of these actions will take care of hooking up the appropriate listeners.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Called when this action is invoked from the Action menu.
      Does nothing - subclasses should override and implement their action-specific code.
    • getMenuLabel

      public abstract String getMenuLabel()
      Subclasses should override and return the label they wish to appear in the menu item.
      Returns:
      The menu label
    • getSelectedItem

      protected PModelHandle getSelectedItem()
      Retrieves the PModelHandle representing the currently selected item, or null if nothing is selected.
      Returns:
      null if nothing is selected; else the PModelHandle for the currently selected item.
    • rowSelectionChanged

      protected void rowSelectionChanged(int row)
      Called when the selected item changes.
      Does nothing - subclasses should override and implement their action-specific code.
    • treeValueChanged

      protected void treeValueChanged(TreeSelectionEvent e)
      Called when action occurs on the tree.
      Does nothing - subclasses should override and implement their action-specific code.