|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.InputMap
javax.swing.ComponentInputMap
org.openbp.jaspira.action.keys.KeyMgr.MultiInputMap
public class KeyMgr.MultiInputMap
Input Map that supports two different parent map. Allows one parent map to be shared between components. Adding and removal of entries is delegated to the true parent.
| Constructor Summary | |
|---|---|
KeyMgr.MultiInputMap(javax.swing.JComponent component)
Creates a new MultiInputMap to a given component and shared parentmap. |
|
| Method Summary | |
|---|---|
javax.swing.KeyStroke[] |
allKeys()
Returns an array of the KeyStrokes defined in this InputMap and its parent. |
void |
clear()
|
java.lang.Object |
get(javax.swing.KeyStroke keyStroke)
Returns the binding for given key, messaging the parent InputMap if the binding is not locally defined. |
javax.swing.JComponent |
getComponent()
|
javax.swing.InputMap |
getParent()
|
javax.swing.KeyStroke[] |
keys()
|
void |
put(javax.swing.KeyStroke keyStroke,
java.lang.Object actionMapKey)
|
void |
remove(javax.swing.KeyStroke key)
|
void |
setParent(javax.swing.InputMap map)
|
int |
size()
|
void |
uninstall()
Uninstalls the multi inout map from the given component and restores the old input map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyMgr.MultiInputMap(javax.swing.JComponent component)
component - Component the map should belong to| Method Detail |
|---|
public void uninstall()
public java.lang.Object get(javax.swing.KeyStroke keyStroke)
get in class javax.swing.InputMapkeyStroke - Key to get the binding for
public javax.swing.KeyStroke[] allKeys()
allKeys in class javax.swing.InputMappublic void clear()
clear in class javax.swing.ComponentInputMapComponentInputMap.clear()public javax.swing.JComponent getComponent()
getComponent in class javax.swing.ComponentInputMapComponentInputMap.getComponent()public javax.swing.InputMap getParent()
getParent in class javax.swing.InputMapInputMap.getParent()public javax.swing.KeyStroke[] keys()
keys in class javax.swing.InputMapInputMap.keys()
public void put(javax.swing.KeyStroke keyStroke,
java.lang.Object actionMapKey)
put in class javax.swing.ComponentInputMapComponentInputMap.put(javax.swing.KeyStroke, java.lang.Object)public void remove(javax.swing.KeyStroke key)
remove in class javax.swing.ComponentInputMapComponentInputMap.remove(javax.swing.KeyStroke)public void setParent(javax.swing.InputMap map)
setParent in class javax.swing.ComponentInputMapComponentInputMap.setParent(javax.swing.InputMap)public int size()
size in class javax.swing.InputMapInputMap.size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||