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
This is the standard help action to be used with help buttons for
context sensitive help
- Since:
- 2289
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionConstructs a newContextSensitiveHelpActionfor the root help topic.ContextSensitiveHelpAction(String helpTopic) Constructs a newContextSensitiveHelpActionfor a given help topic. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetHelpTopic(String relativeHelpTopic) Sets the help topic.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
helpTopic
-
-
Constructor Details
-
ContextSensitiveHelpAction
public ContextSensitiveHelpAction()Constructs a newContextSensitiveHelpActionfor the root help topic. -
ContextSensitiveHelpAction
Constructs a newContextSensitiveHelpActionfor a given help topic.- Parameters:
helpTopic- The help topic
-
-
Method Details
-
setHelpTopic
Sets the help topic.- Parameters:
relativeHelpTopic- the relative help topic
-
actionPerformed
-