public class ContextSensitiveHelpAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
private String |
helpTopic |
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 |
---|
ContextSensitiveHelpAction()
Constructs a new
ContextSensitiveHelpAction for the root help topic. |
ContextSensitiveHelpAction(String helpTopic)
Constructs a new
ContextSensitiveHelpAction for a given help topic. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
setHelpTopic(String relativeHelpTopic)
Sets the help topic.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public ContextSensitiveHelpAction()
ContextSensitiveHelpAction
for the root help topic.public ContextSensitiveHelpAction(String helpTopic)
ContextSensitiveHelpAction
for a given help topic.helpTopic
- The help topicpublic void setHelpTopic(String relativeHelpTopic)
relativeHelpTopic
- the relative help topicpublic void actionPerformed(ActionEvent e)