Java javax.swing.text Keymap fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text Keymap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text Keymap.

The text is from its open source code.

Method

voidaddActionForKeyStroke(KeyStroke key, Action a)
Adds a binding to the keymap.
ActiongetAction(KeyStroke key)
Fetches the action appropriate for the given symbolic event sequence.
Action[]getBoundActions()
Fetches all of the actions defined in this keymap.
KeyStroke[]getBoundKeyStrokes()
Fetches all of the keystrokes in this map that are bound to some action.
ActiongetDefaultAction()
Fetches the default action to fire if a key is typed (i.e.
KeyStroke[]getKeyStrokesForAction(Action a)
Fetches the keystrokes that will result in the given action.
KeymapgetResolveParent()
Fetches the parent keymap used to resolve key-bindings.
voidremoveBindings()
Removes all bindings from the keymap.
voidremoveKeyStrokeBinding(KeyStroke keys)
Removes a binding from the keymap.
voidsetDefaultAction(Action a)
Set the default action to fire if a key is typed.