Skip navigation links
oracle.ide.keyboard
Class MultiInputMap
java.lang.Object
javax.swing.InputMap
oracle.ide.keyboard.MultiInputMap
- All Implemented Interfaces:
- java.io.Serializable
-
public final class MultiInputMap
- extends javax.swing.InputMap
An InputMap that can handle multiple keys like Ctrl+K, S
- See Also:
- Serialized Form
Method Summary |
void |
clear()
|
java.lang.Object |
get(javax.swing.KeyStroke keyStroke)
|
static boolean |
isInKeySequence()
Returns true if the user typed the start of a valid KeyStroke sequence. |
javax.swing.KeyStroke[] |
keys()
|
void |
put(javax.swing.KeyStroke keyStroke, java.lang.Object actionMapKey)
|
void |
put(KeyStrokes keyStrokes, java.lang.Object actionMapKey)
Same as InputMap.put(KeyStroke,Object) except this one takes KeyStrokes |
void |
remove(javax.swing.KeyStroke key)
|
int |
size()
|
Methods inherited from class javax.swing.InputMap |
allKeys, getParent, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_ACTION
public static final javax.swing.Action NULL_ACTION
NULL_ACTION_BIND
public static final java.lang.Object NULL_ACTION_BIND
MultiInputMap
public MultiInputMap()
MultiInputMap
public MultiInputMap(boolean bTerminator)
isInKeySequence
public static boolean isInKeySequence()
- Returns true if the user typed the start of a valid KeyStroke sequence. Ex: If "Ctrl+K, S" is the shortcut for save, and the user typed "Ctrl+K", this method returns true.
get
public java.lang.Object get(javax.swing.KeyStroke keyStroke)
-
- Overrides:
get
in class javax.swing.InputMap
put
public void put(KeyStrokes keyStrokes,
java.lang.Object actionMapKey)
- Same as InputMap.put(KeyStroke,Object) except this one takes KeyStrokes
put
public void put(javax.swing.KeyStroke keyStroke,
java.lang.Object actionMapKey)
-
- Overrides:
put
in class javax.swing.InputMap
remove
public void remove(javax.swing.KeyStroke key)
-
- Overrides:
remove
in class javax.swing.InputMap
clear
public void clear()
-
- Overrides:
clear
in class javax.swing.InputMap
keys
public javax.swing.KeyStroke[] keys()
-
- Overrides:
keys
in class javax.swing.InputMap
size
public int size()
-
- Overrides:
size
in class javax.swing.InputMap
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.