Package org.openstreetmap.josm.gui.help
Class ContextSensitiveHelpAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class ContextSensitiveHelpAction extends AbstractAction
This is the standard help action to be used with help buttons for context sensitive help- Since:
- 2289
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
helpTopic
-
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
Constructors Constructor Description ContextSensitiveHelpAction()
Constructs a newContextSensitiveHelpAction
for the root help topic.ContextSensitiveHelpAction(String helpTopic)
Constructs a newContextSensitiveHelpAction
for a given help topic.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
void
setHelpTopic(String relativeHelpTopic)
Sets the help topic.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
ContextSensitiveHelpAction
public ContextSensitiveHelpAction()
Constructs a newContextSensitiveHelpAction
for the root help topic.
-
ContextSensitiveHelpAction
public ContextSensitiveHelpAction(String helpTopic)
Constructs a newContextSensitiveHelpAction
for a given help topic.- Parameters:
helpTopic
- The help topic
-
-
Method Detail
-
setHelpTopic
public void setHelpTopic(String relativeHelpTopic)
Sets the help topic.- Parameters:
relativeHelpTopic
- the relative help topic
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
-