public class RedirectInputMap extends javax.swing.ComponentInputMap
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.InputMap |
target |
| Constructor and Description |
|---|
RedirectInputMap(javax.swing.JComponent component,
javax.swing.InputMap target)
Create a new
RedirectInputMap |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.KeyStroke[] |
allKeys() |
void |
clear() |
java.lang.Object |
get(javax.swing.KeyStroke keyStroke) |
javax.swing.KeyStroke[] |
keys() |
void |
put(javax.swing.KeyStroke keyStroke,
java.lang.Object actionMapKey) |
static void |
redirect(javax.swing.JComponent source,
javax.swing.JComponent target)
Redirects the key inputs from one component to an other component
|
void |
remove(javax.swing.KeyStroke key) |
int |
size() |
private final javax.swing.InputMap target
public RedirectInputMap(javax.swing.JComponent component, javax.swing.InputMap target)
RedirectInputMapcomponent - The component the input map will be added totarget - The target input map that should be mirrored.public java.lang.Object get(javax.swing.KeyStroke keyStroke)
get in class javax.swing.InputMappublic javax.swing.KeyStroke[] keys()
keys in class javax.swing.InputMappublic int size()
size in class javax.swing.InputMappublic javax.swing.KeyStroke[] allKeys()
allKeys in class javax.swing.InputMappublic void put(javax.swing.KeyStroke keyStroke, java.lang.Object actionMapKey)
put in class javax.swing.ComponentInputMappublic void remove(javax.swing.KeyStroke key)
remove in class javax.swing.ComponentInputMappublic void clear()
clear in class javax.swing.ComponentInputMappublic static void redirect(javax.swing.JComponent source, javax.swing.JComponent target)
source - The source componenttarget - The target component to send the keystrokes to.