|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.ActionMap
org.openbp.jaspira.action.keys.KeyMgr.MultiActionMap
public class KeyMgr.MultiActionMap
Action Map that creates new Actions for pressed keys "on the fly". Adding and removal of entries is delegated to the true parent.
| Constructor Summary | |
|---|---|
KeyMgr.MultiActionMap(javax.swing.JComponent component)
Creates a new MultiActionMap for the given Component. |
|
| Method Summary | |
|---|---|
java.lang.Object[] |
allKeys()
Returns an array of the keys defined in this ActionMap and
its parent. |
void |
clear()
|
javax.swing.Action |
get(java.lang.Object key)
Returns the binding for given key, messaging the parent ActionMap if the binding is not locally defined. |
javax.swing.ActionMap |
getParent()
|
java.lang.Object[] |
keys()
|
void |
put(java.lang.Object key,
javax.swing.Action action)
|
void |
remove(java.lang.Object key)
|
void |
setParent(javax.swing.ActionMap map)
|
int |
size()
|
void |
uninstall(javax.swing.JComponent component)
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.MultiActionMap(javax.swing.JComponent component)
component - Component the map should belong to| Method Detail |
|---|
public void uninstall(javax.swing.JComponent component)
public javax.swing.Action get(java.lang.Object key)
get in class javax.swing.ActionMapkey - Key to get the binding for
public java.lang.Object[] allKeys()
ActionMap and
its parent. This method differs from keys() in that
this method includes the keys defined in the parent.
allKeys in class javax.swing.ActionMappublic void clear()
clear in class javax.swing.ActionMapActionMap.clear()public javax.swing.ActionMap getParent()
getParent in class javax.swing.ActionMapActionMap.getParent()public java.lang.Object[] keys()
keys in class javax.swing.ActionMapActionMap.keys()
public void put(java.lang.Object key,
javax.swing.Action action)
put in class javax.swing.ActionMapActionMap.put(java.lang.Object, javax.swing.Action)public void remove(java.lang.Object key)
remove in class javax.swing.ActionMapActionMap.remove(java.lang.Object)public void setParent(javax.swing.ActionMap map)
setParent in class javax.swing.ActionMapActionMap.setParent(javax.swing.ActionMap)public int size()
size in class javax.swing.ActionMapActionMap.size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||