Package com.portal.app.cc
Class PAddOnAction
java.lang.Object
javax.swing.AbstractAction
com.portal.app.cc.PAddOnAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
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:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a PAddOnAction which enables custom actions to be performed within an out-of-box Customer Center page. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when this action is invoked from the Action menu.
Does nothing - subclasses should override and implement their action-specific code.abstract String
Subclasses should override and return the label they wish to appear in the menu item.protected PModelHandle
Retrieves the PModelHandle representing the currently selected item, or null if nothing is selected.protected void
rowSelectionChanged
(int row) Called when the selected item changes.
Does nothing - subclasses should override and implement their action-specific code.protected void
Called when action occurs on the tree.
Does nothing - subclasses should override and implement their action-specific code.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
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
Called when this action is invoked from the Action menu.
Does nothing - subclasses should override and implement their action-specific code. -
getMenuLabel
Subclasses should override and return the label they wish to appear in the menu item.- Returns:
- The menu label
-
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
Called when action occurs on the tree.
Does nothing - subclasses should override and implement their action-specific code.
-