org.openstreetmap.josm.gui.help
Class ContextSensitiveHelpAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ContextSensitiveHelpAction
extends javax.swing.AbstractAction

This is the standard help action to be used with help buttons for context sensitive help

See Also:
Serialized Form

Field Summary
private  java.lang.String helpTopic
          the help topic
 
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
ContextSensitiveHelpAction()
          Creates a help topic for the root help topic
ContextSensitiveHelpAction(java.lang.String helpTopic)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void setHelpTopic(java.lang.String relativeHelpTopic)
          Sets the help topic
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

helpTopic

private java.lang.String helpTopic
the help topic

Constructor Detail

ContextSensitiveHelpAction

public ContextSensitiveHelpAction()
Creates a help topic for the root help topic


ContextSensitiveHelpAction

public ContextSensitiveHelpAction(java.lang.String helpTopic)
Parameters:
helpTopic -
Method Detail

setHelpTopic

public void setHelpTopic(java.lang.String relativeHelpTopic)
Sets the help topic

Parameters:
relativeHelpTopic - the relative help topic

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)


JOSM