ides.api.utilities
Class GeneralUtils.JOptionPaneKeyBinder.ShortcutHandler

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ides.api.utilities.GeneralUtils.JOptionPaneKeyBinder.ShortcutHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
GeneralUtils.JOptionPaneKeyBinder

protected static class GeneralUtils.JOptionPaneKeyBinder.ShortcutHandler
extends javax.swing.AbstractAction

Handler for the activation of the simplified custom shortcuts.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  java.lang.String buttonText
          The text of the button which has to be activated.
 
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
GeneralUtils.JOptionPaneKeyBinder.ShortcutHandler(java.lang.String buttonText)
          Create a handler which will activate the button with the given text.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Looks up the button with the specified text and calls its the AbstractButton.doClick() method.
 
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

buttonText

protected java.lang.String buttonText
The text of the button which has to be activated.

Constructor Detail

GeneralUtils.JOptionPaneKeyBinder.ShortcutHandler

public GeneralUtils.JOptionPaneKeyBinder.ShortcutHandler(java.lang.String buttonText)
Create a handler which will activate the button with the given text.

Parameters:
buttonText - the text of the button which needs to be activated
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Looks up the button with the specified text and calls its the AbstractButton.doClick() method. The button is looked up in the top-level ancestor of the source (component) of this action.