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)
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)
remove
public void remove(javax.swing.KeyStroke key)
clear
public void clear()
keys
public javax.swing.KeyStroke[] keys()
size
public int size()
Copyright © 1997, 2004, Oracle. All rights reserved.