javax.swing.text
Class DefaultEditorKit.DefaultKeyTypedAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- DefaultEditorKit
public static class DefaultEditorKit.DefaultKeyTypedAction
- extends TextAction
This action is executed as default action when a KEY_TYPED
event is received and no keymap entry exists for that. The purpose
of this action is to filter out a couple of characters. This includes
the control characters and characters with the ALT-modifier.
If an event does not get filtered, it is inserted into the document
of the text component. If there is some text selected in the text
component, this text will be replaced.
- See Also:
- Serialized Form
DefaultEditorKit.DefaultKeyTypedAction
public DefaultEditorKit.DefaultKeyTypedAction()
- Creates a new
DefaultKeyTypedAction
.
actionPerformed
public void actionPerformed(ActionEvent event)
- Performs the
Action
.
- Parameters:
event
- the action event describing the user action