com.borland.primetime.editor
Class CUAActions.SetSubKeymapAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--com.borland.primetime.editor.EditorAction
|
+--com.borland.primetime.editor.CUAActions.SetSubKeymapAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, EditorActions.KeymapSwitchAction, java.util.EventListener, java.io.Serializable
- Enclosing class:
- CUAActions
- public static class CUAActions.SetSubKeymapAction
- extends EditorAction
- implements EditorActions.KeymapSwitchAction
Enables the editor to switch into a subKeymap mode.
To use this class you would:
instantiate an object of this class with the name of a new subKeymap
use EditorManager.CreateKeymap to create a new subKeymap
add actions of type EditorAction.SubKeymapAction
switch to this keymap with actionPerformed
the SubKeymapActions will automatically make the switch back to the
original master keymap, after the action is done
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary |
CUAActions.SetSubKeymapAction(java.lang.String nm)
Create a new action that will force the editor to switch to a new
subKeymap when the actionPerformed method is called. |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Switch the editor over to the subKeymap specified in the constructor
call of this action. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CUAActions.SetSubKeymapAction
public CUAActions.SetSubKeymapAction(java.lang.String nm)
- Create a new action that will force the editor to switch to a new
subKeymap when the actionPerformed method is called.
- Parameters:
nm
- the name of the subKeymap, which should be the exact same name
that was used in the call to CreateKeymap.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Switch the editor over to the subKeymap specified in the constructor
call of this action.
- Overrides:
actionPerformed
in class javax.swing.AbstractAction
- Parameters:
e
- the ActionEvent triggering this call.