Extension SDK 10.1.2

oracle.ide.keyboard
Class MultiInputMap

java.lang.Object
  extended byjavax.swing.InputMap
      extended byoracle.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

Field Summary
static javax.swing.Action NULL_ACTION
           
static java.lang.Object NULL_ACTION_BIND
           
 
Constructor Summary
MultiInputMap()
           
MultiInputMap(boolean bTerminator)
           
 
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
 

Field Detail

NULL_ACTION

public static final javax.swing.Action NULL_ACTION

NULL_ACTION_BIND

public static final java.lang.Object NULL_ACTION_BIND
Constructor Detail

MultiInputMap

public MultiInputMap()

MultiInputMap

public MultiInputMap(boolean bTerminator)
Method Detail

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()

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.