public abstract class PAddOnAction extends AbstractAction
changeSupport, enabled
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 and Description |
---|
PAddOnAction()
Creates a PAddOnAction which enables custom actions to be performed
within an out-of-box Customer Center page.
|
Modifier and Type | Method and Description |
---|---|
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. |
abstract String |
getMenuLabel()
Subclasses should override and return the label they wish to
appear in the menu item.
|
protected PModelHandle |
getSelectedItem()
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 |
treeValueChanged(TreeSelectionEvent e)
Called when action occurs on the tree.
Does nothing - subclasses should override and implement their action-specific code. |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public PAddOnAction()
public void actionPerformed(ActionEvent e)
public abstract String getMenuLabel()
protected PModelHandle getSelectedItem()
protected void rowSelectionChanged(int row)
protected void treeValueChanged(TreeSelectionEvent e)
Copyright © 2003, 2023, Oracle and/or its affiliates.