Package net.simplace.ui
Class FWKeyStrokeAction
java.lang.Object
javax.swing.AbstractAction
net.simplace.ui.FWKeyStrokeAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
This class delegates the called action to the given actionlistener.
- Author:
- Andreas Enders
- See Also:
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionFWKeyStrokeAction(JComponent aComponent, int aCondition, int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Default constructor.FWKeyStrokeAction(JComponent aComponent, int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Default constructor.FWKeyStrokeAction(JDialog aDialog, int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Default constructor.FWKeyStrokeAction(JFrame aFrame, int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent aActionEvent) Delegates the given event to the set listener.voidRemoves the delegate-action.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
FWKeyStrokeAction
public FWKeyStrokeAction(JFrame aFrame, int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Default constructor. -
FWKeyStrokeAction
public FWKeyStrokeAction(JDialog aDialog, int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Default constructor. -
FWKeyStrokeAction
public FWKeyStrokeAction(JComponent aComponent, int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Default constructor. -
FWKeyStrokeAction
public FWKeyStrokeAction(JComponent aComponent, int aCondition, int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Default constructor.
-
-
Method Details
-
actionPerformed
Delegates the given event to the set listener. -
uninstall
public void uninstall()Removes the delegate-action.
-